Checkbox is a testing framework used to validate device compatibility with Ubuntu Linux. It’s the testing tool developed for the purposes of the Ubuntu Certification program.
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:
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-rev
snapd/snap-revert-{type}-{name}-from-stable-rev
snapd/snap-refresh-{type}-{name}-to-base-rev
snapd/snap-revert-{type}-{name}-from-base-rev
Cert-blocker Test Case
To Reproduce
Launch the snap refresh/revert jobs on a device slow enough to fail the test.
Environment
Relevant log output
No response
Additional context
No response