-
Notifications
You must be signed in to change notification settings - Fork 77
snap refresh/revert script may fail, but the job is marked as passed regardless #1615
Description
Bug Description
Problem found while testing a device in the lab (Jenkins sample runs: run 1, run 2).
The job snapd/snap-refresh-kernel-.*-to-base-rev is run.
However, it takes so long that it times out... but somehow it is marked as passed. (this is because the job reboots regardless of the test outcome. It's the issue that needs to be fixed)
Because it was marked as passed, the job snapd/snap-revert-kernel-.*-from-base-rev is erroneously executed, and it fails because it cannot find the revision to revert into (because the device never reached that state).
All the snap refresh/revert jobs that launch the snap_update_test.py script and then reboot the device should first check the return code of the script and bail out (exit 1) if the script fails. These jobs are impacted:
snapd/snap-refresh-{type}-{name}-to-stable-revsnapd/snap-revert-{type}-{name}-from-stable-revsnapd/snap-refresh-{type}-{name}-to-base-revsnapd/snap-revert-{type}-{name}-from-base-rev
Cert-blocker Test Case
- cert-blocker
To Reproduce
Launch the snap refresh/revert jobs on a device slow enough to fail the test.
Environment
- Hardware: Tillamook
Relevant log output
No response
Additional context
No response