ci: run Molecule on every same-repo pull request and print the Renovate report shape #46

Merged
Defame1297 merged 1 commits from ci/molecule-on-all-prs into main 2026-10-26 20:14:15 +00:00
Owner

Why

  • Molecule skipped renovate/ branches and used a path filter, so a Renovate pin PR for the molecule image merged without a scenario having run on it (#35 and #44): the first test of a new image was main. That is how a 26.04 base bump reached main under a 24.04 name.
  • The Renovate job stays green when a post-upgrade task fails (the PR opens without the bump). The report check cannot see that because the report field is unknown.

What

  • molecule.yml: runs on every same-repo pull request, bot branches included; the paths: filter on pull_request is gone (the push filter stays), so Molecule can be a required check without blocking PRs that never start it. A fork pull request is skipped (and the repository takes none). A bot PR stays limited to pin and version lines by the bot-diff gate (Lint), so it adds no capability a pusher does not already have: anyone who can push a branch can run Molecule from a branch with another name.
  • renovate.yml: the job prints the shape of its JSON report once (top-level keys, per-branch fields with short values), so a check that fails the job on a failed post-upgrade task can be written against a real field. No behaviour change otherwise.
  • CLAUDE.md: the new Molecule behaviour.

After the merge (operator)

Add Molecule / molecule (pull_request) as a required check in main's branch protection. Until then Molecule runs on bot PRs but nothing waits for it.

Verified / not verified

  • Verified: hooks; the report-shape snippet against a fake report.
  • Not verified: the first bot PR with Molecule running; the report-shape lines in a real Renovate run; the runner's single slot under the extra load (about 1.5 minutes per PR).

🤖 Generated with Claude Code

## Why - Molecule skipped `renovate/` branches and used a path filter, so a Renovate pin PR for the molecule image merged without a scenario having run on it (#35 and #44): the first test of a new image was `main`. That is how a 26.04 base bump reached `main` under a 24.04 name. - The Renovate job stays green when a post-upgrade task fails (the PR opens without the bump). The report check cannot see that because the report field is unknown. ## What - `molecule.yml`: runs on every same-repo pull request, bot branches included; the `paths:` filter on `pull_request` is gone (the push filter stays), so Molecule can be a required check without blocking PRs that never start it. A fork pull request is skipped (and the repository takes none). A bot PR stays limited to pin and version lines by the bot-diff gate (Lint), so it adds no capability a pusher does not already have: anyone who can push a branch can run Molecule from a branch with another name. - `renovate.yml`: the job prints the shape of its JSON report once (top-level keys, per-branch fields with short values), so a check that fails the job on a failed post-upgrade task can be written against a real field. No behaviour change otherwise. - `CLAUDE.md`: the new Molecule behaviour. ## After the merge (operator) Add `Molecule / molecule (pull_request)` as a required check in `main`'s branch protection. Until then Molecule runs on bot PRs but nothing waits for it. ## Verified / not verified - Verified: hooks; the report-shape snippet against a fake report. - Not verified: the first bot PR with Molecule running; the report-shape lines in a real Renovate run; the runner's single slot under the extra load (about 1.5 minutes per PR). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Claude added 1 commit 2026-10-26 20:10:03 +00:00
ci: run Molecule on every same-repo pull request and print the Renovate report shape
Build / build (pull_request) Successful in 11s
Lint / lint (pull_request) Successful in 13s
Molecule / molecule (pull_request) Successful in 1m2s
a6583db5d5
Molecule skipped bot branches and used a path filter, so a Renovate pin pull request for the
molecule image merged without a single scenario having run on it (#35, then #44): the first test
of a new image was main. Now it runs on every same-repo pull request, bot branches included, and
with no path filter it can be a required check. A bot pull request stays limited to pin and
version lines by the bot-diff gate, so it adds no capability a pusher does not already have.

The Renovate job prints the shape of its JSON report (top-level keys, per-branch fields) once, so
a check that fails the job on a failed post-upgrade task can be written against a real field.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
Defame1297 scheduled this pull request to auto merge when all checks succeed 2026-10-26 20:13:34 +00:00
Defame1297 merged commit a565050451 into main 2026-10-26 20:14:15 +00:00
Defame1297 deleted branch ci/molecule-on-all-prs 2026-10-26 20:14:15 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Kamino#46