ci(molecule): run every scenario nightly
A pull request runs only the scenarios of the roles it changes, so drift in the others (a package mirror, the runner's molecule venv) would wait for the next push to main. A nightly run of everything bounds that. It is scheduled after Renovate's run, since the runner has a single slot. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG
This commit is contained in:
1 parent
792b3414d3
commit
25bca2ebff
2 files changed
+6
-1
No files matched your search
@@ -36,6 +36,11 @@ on: # yamllint disable-line rule:truthy
|
||||
- 'meta/**'
|
||||
- 'galaxy.yml'
|
||||
- '.gitea/workflows/molecule.yml'
|
||||
# Every scenario, nightly: a pull request runs only the scenarios of the roles it changes, so
|
||||
# drift in the others (a package mirror, the runner's molecule venv) would otherwise wait for
|
||||
# the next push to main. After Renovate's 03:17 run, which can take 30 minutes of the one slot.
|
||||
schedule:
|
||||
- cron: "43 4 * * *"
|
||||
workflow_dispatch: {}
|
||||
|
||||
permissions:
|
||||
|
||||
@@ -63,7 +63,7 @@ Single-context: `GLOSSARY.md` and `docs/adr/` at the root, both created lazily.
|
||||
What a pull request runs is chosen by `scripts/select_molecule_scenarios.py`, run from the base branch's copy
|
||||
(a pull request cannot edit its own rules): only the scenarios of the roles it changes, none for a diff of
|
||||
only its IGNORED paths, a failure for a changed role with no scenario, and every scenario for any other file,
|
||||
for every push to `main` and for manual dispatch. A new file outside `roles/<role>/` runs everything until it
|
||||
for every push to `main`, for manual dispatch and for the nightly run (04:43 UTC, after Renovate's). A new file outside `roles/<role>/` runs everything until it
|
||||
is added to IGNORED, which is right only when no scenario reads it. A new commit cancels the pull request's
|
||||
running Molecule run, and the step first removes containers a cancelled run left; two runs never overlap
|
||||
because the runner has a single slot, so raising its capacity needs a lock or a shared concurrency group.
|
||||
|
||||
Reference in new issue
Block a user