forked from canonical/checkbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure that jobs that have an "after suspend" counterpart are run bef…
…ore suspend (New) (canonical#1037) Some jobs should be run before *and* after suspend. To take this into account, the `siblings` field was developed[1], along with the `also-after-suspend` and `also-after-suspend-manual` flags[2]. These would let Checkbox spawn a similar job with an added dependency on the suspend job (either the manual or the automated version of it). The problem is that the original job did not have any dependency to force it to be run *before* the suspend job. This was not an issue for test plans organized manually, using regular expressions, because you could have an include section that looks like: storage_.* com.canonical.certification::suspend/suspend_advanced_auto after-suspend-storage.* However, now that template ids can be added in test plans[3], this is a problem. This patch will make sure the jobs that need to run before suspend are added as dependencies of their related suspend job, so that regardless of the order in the test plan, they will be run in the proper order. Documentation is updated to mention guarantee of job running before suspend in Job Unit reference page. Fix: canonical#1010 [1] https://checkbox.readthedocs.io/en/stable/reference/units/job.html#job-siblings-field [2] https://checkbox.readthedocs.io/en/stable/reference/units/job.html#also-after-suspend-flag [3] https://checkbox.readthedocs.io/en/latest/reference/units/test-plan.html
- Loading branch information
Showing
7 changed files
with
298 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.