fix(scripts): read the image matrix without PyYAML
Dry run 2453 ran the bump post-upgrade task in the Renovate image and it failed with ModuleNotFoundError: yaml, so every bump PR would have opened without the version bump. matrix_of() is now a small block-style reader that fails closed on anything else; a test compares it with PyYAML on the real image.yml and another forbids importing yaml in the scripts. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
c8c23687e2
commit
eaa38cb03a
3 files changed
+141
-51
No files matched your search
@@ -124,7 +124,7 @@ protection, or create tags: those are the operator's.
|
||||
the required `Lint` and `Build` never start, automerge cannot work); (4) that bot PRs are held by
|
||||
`main`'s required status checks (check the branch protection). Also confirm in the log: Renovate clones
|
||||
blobless with full history, so `origin/main` exists for the script (source-based); `python3` is in the
|
||||
image; `github.head_ref` is populated (the gate fails closed on an empty one, via `EVENT_NAME`). Safety
|
||||
image (no PyYAML: the scripts the bump step imports use the standard library only, dry run 2453); `github.head_ref` is populated (the gate fails closed on an empty one, via `EVENT_NAME`). Safety
|
||||
net: a failing or disallowed post-upgrade command opens the PR WITHOUT the bump plus a red
|
||||
`renovate/artifacts` status, and `check_image_versions.py bump` then fails lint.
|
||||
- **The workflow holds the runner's slot:** the `kamino-runner` host has a single slot (the label is
|
||||
|
||||
Reference in new issue
Block a user