ci(lint): validate renovate.json in the pinned Renovate image
Add a renovate-config job to Lint that runs renovate-config-validator --strict --no-global in a copy of renovate.yml's Renovate image, so the config is checked by the Renovate that runs it and the check can be required. The ci image stays without Node. check_bot_pr_diff.py now lets a bot pull request move the tag and digest of the renovate/renovate image line in renovate.yml and lint.yml, in place, keeping the name and the -full flavour. A test holds the two pins equal. Refs: #188 Assisted-by: Claude Code
This commit is contained in:
1 parent
d1db4fb0db
commit
763ec5dfd3
4 files changed
+145
-11
No files matched your search
@@ -39,7 +39,8 @@ issue.
|
||||
while a content check must see the content it is given. *Held:* review (`CODEOWNERS`).
|
||||
- **A pull request from a `renovate/` branch changes only version, tag, digest and pin lines**
|
||||
(tool pins with their lock entries and hashes, hook `rev:` lines, Dockerfile `FROM` tags and
|
||||
digests, `job_image:` pins, consumer image pins). In `pyproject.toml` only a pin's version
|
||||
digests, `job_image:` pins, consumer image pins, and the tag and digest of the Renovate image
|
||||
line of `renovate.yml` and of its copy in `lint.yml`). In `pyproject.toml` only a pin's version
|
||||
moves; in `uv.lock` only apm-cli moves, to that pin, with its files from PyPI by sha256, and
|
||||
every other package stays as it is.
|
||||
*Why:* the bot's minor and patch pull requests automerge, so they must not be able to change
|
||||
@@ -71,6 +72,12 @@ issue.
|
||||
- **Triggers:** both run on pull requests to `main` and on manual dispatch; Build also runs on
|
||||
`v*` tags, where it checks the tag against `galaxy.yml`. *Why:* the tag is what consumers
|
||||
install. *Held:* review.
|
||||
- **Lint's `renovate-config` job runs `renovate-config-validator --strict --no-global` on
|
||||
`renovate.json`, in the same Renovate image as `renovate.yml`, on every run with no `if:`.**
|
||||
Renovate moves both pins in one pull request. *Why:* the config is checked by the Renovate
|
||||
that runs it, and a check that always reports can be required. *Held:* control:
|
||||
`test_the_renovate_image_pins_are_the_same` in `tests/scripts/test_check_bot_pr_diff.py` for
|
||||
the equal pins; review for the job.
|
||||
|
||||
## Molecule
|
||||
|
||||
|
||||
Reference in new issue
Block a user