From 25bca2ebffe261cfaf826aac05ba88c83e3275c8 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Sat, 14 Nov 2026 11:06:59 +0000 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_014uGZTNmHMc85bomfevwUDG --- .gitea/workflows/molecule.yml | 5 +++++ CLAUDE.md | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/molecule.yml b/.gitea/workflows/molecule.yml index 6ff87c2..7a69038 100644 --- a/.gitea/workflows/molecule.yml +++ b/.gitea/workflows/molecule.yml @@ -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: diff --git a/CLAUDE.md b/CLAUDE.md index 362fca5..cfe8e1a 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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//` 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//` 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.