Merge ~sylvain-pineau/checkbox-ng:classic-session-autorestart into checkbox-ng:master
Status: | Merged |
---|---|
Approved by: | Sylvain Pineau |
Approved revision: | c76786e789a1869b1e02ff3af88cbdd031fa90c2 |
Merge reported by: | Sylvain Pineau |
Merged at revision: | c76786e789a1869b1e02ff3af88cbdd031fa90c2 |
Proposed branch: | ~sylvain-pineau/checkbox-ng:classic-session-autorestart |
Merge into: | checkbox-ng:master |
Diff against target: |
143 lines (+45/-14) 3 files modified
plainbox/impl/session/assistant.py (+8/-1) plainbox/impl/session/remote_assistant.py (+8/-3) plainbox/impl/session/restart.py (+29/-10) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Devices Certification Bot | Needs Fixing | ||
Sylvain Pineau (community) | Approve | ||
Review via email:
|
Description of the change
This patchset allows checkbox classic snaps to run test plans like com.canonical.
This method is not the best as upon resume (on a Ubuntu server image) the tester won't get any information about the progress of the stress tests and won't get any UI to interact with the running session.
The best solution is to switch to checkbox remote and use an external launcher to drive the tests from another machine.
But still, checkbox classic snaps were missing the ability to run such test plans. To workaround the lack of session feedback I've tweaked the systemd unit to redirect all I/O to /dev/console, example: https:/
The main fix below is a change in the allowed call sequence from session assistant as the logic to determine the best restart strategy now requires knowledge about the kind of session to resume (local vs remote basically).
Tested using checkbox- snappy- classic with this launcher (remotely and not but still with the remote service enabled):
[launcher] certification: checkbox- test
app_id = com.canonical.
launcher_version = 1
stock_reports = text, submission_files
[test plan] certification: :warm-boot- stress- test
unit = com.canonical.
forced = yes
[test selection]
forced = no
[ui] and-attachment
output = hide-resource-
[environment] BOOT_ITERATIONS =2 BOOT_WAIT_ DELAY=10 BOOT_WAKEUP_ DELAY=15
STRESS_
STRESS_
STRESS_