Commit 7090ed9
Remote assistant refactoring (new) (#2057)
* Full refactoring backported to remote_assistant.py
* Backport controller refactoring
Forgotten removed api
* Fix unit tests by renaming apis and changing whats_up response
* Refactored allowed_when and _state -> state
Decorator was moved to top level of the module, state now has a
non-private property (that logs transitions) and was changed accordingly
Minor fix: use .state and not ._state in decorator
* Renamed resume_session to prepare_resume_session
Minor: forgotten 2 state comparison to str instead of new enum
* Missing bootstrap_and_continue
* Remove outdated resume machanism
* Check that all states have a connection_strategy
* Support optional parameters of interaction
* Include test plan in session metadata
* Move functions, rename functions that continue with _continue
* Default value of resume_by_id should be empty dict
* Propagate prepare_resume_session
* Also update name in the test
* Don't finalize the session until resume is decided
This removes session finalization in all branches. It was added because
the start_new_sesison function starts a new session, so it fails on the
second iteration. The correct solution to this was not to spam finalize
everywhere but to split that function up into start and select_test_plan
(thanks me, I know you did this to me)
* Port renames and new _continue process to tests
* Also fix local changes to subcommands
* Test test plan selection function
Minor: use new continue session function
* Disable fail-fast
* Update checkbox-ng/checkbox_ng/launcher/controller.py
Co-authored-by: Fernando Bravo <[email protected]>
---------
Co-authored-by: Fernando Bravo <[email protected]>1 parent 0c78444 commit 7090ed9
File tree
10 files changed
+575
-512
lines changed- .github/workflows
- checkbox-ng
- checkbox_ng/launcher
- plainbox/impl/session
10 files changed
+575
-512
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
18 | 17 | | |
19 | 18 | | |
20 | 19 | | |
21 | | - | |
22 | 20 | | |
23 | 21 | | |
24 | 22 | | |
| |||
95 | 93 | | |
96 | 94 | | |
97 | 95 | | |
| 96 | + | |
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | 149 | | |
163 | 150 | | |
164 | 151 | | |
| |||
184 | 171 | | |
185 | 172 | | |
186 | 173 | | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | 174 | | |
207 | 175 | | |
208 | 176 | | |
| |||
0 commit comments