Fix snap refresh verification job dependency (bugfix) #1519
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
When implementing changes for the gadget/snapd/kernel snap refresh, one of the job dependencies was not updated properly.
The
snapd/reboot-after-snap-refresh-{type}-{name}-to-stable-rev
job does not exist anymore, so thesnapd/snap-verify-after-refresh-{type}-{name}-to-stable-rev
should depend on the refresh job itself (which was modified in the aforementioned PR to do the reboot itself).Resolved issues
An issue that showed up while testing a customer project:
https://certification.canonical.com/hardware/202302-31257/submission/393904/test-results/?term=cascade-kernel-to-base-rev
See discussion on MM for more information.
Documentation
Tests
Running
checkbox-cli list-bootstrapped com.canonical.certification::snap-refresh-revert
on my laptop yield the following results:Before this patch:
After this patch:
(the last 4 jobs are now present that are verifying the snap after an update to stable channel, and then running extra revert and verification steps)