ci(renovate): drop the report shape dump and record what the report cannot tell
Run 2597 printed it: a branch entry holds branchName, prNo, prTitle, result and upgrades, with no field for a failed post-upgrade task. The protection against an unbumped pull request stays the red renovate/artifacts status and the bump check in Lint. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm
This commit is contained in:
1 parent
23face54cf
commit
b0e7932a76
2 files changed
+3
-10
No files matched your search
@@ -103,15 +103,6 @@ jobs:
|
||||
problems = list(report.get("problems", []))
|
||||
for repo in report.get("repositories", {}).values():
|
||||
problems.extend(repo.get("problems", []))
|
||||
# The shape of the report, once, so that a check on a failed post-upgrade task can be
|
||||
# written against a real field: top-level keys, then per branch its keys and short values.
|
||||
print("Renovate report keys: " + ", ".join(sorted(report)))
|
||||
for name, repo in report.get("repositories", {}).items():
|
||||
print("repository " + name + " keys: " + ", ".join(sorted(repo)))
|
||||
for branch in repo.get("branches", []):
|
||||
print(" branch: " + ", ".join(
|
||||
k + "=" + str(v)[:60].replace("\n", " ") for k, v in sorted(branch.items())
|
||||
if k != "upgrades"))
|
||||
bad = [p for p in problems if p.get("level", 0) >= 50]
|
||||
for p in bad:
|
||||
print("::error::Renovate problem: " + str(p.get("msg", "")))
|
||||
|
||||
@@ -154,7 +154,9 @@ protection, or create tags: those are the operator's.
|
||||
blobless with full history, so `origin/main` exists for the script (source-based); `python3` is in the
|
||||
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.
|
||||
`renovate/artifacts` status, and `check_image_versions.py bump` then fails lint. The job itself stays green:
|
||||
the JSON report only records `branchName`, `prNo`, `prTitle`, `result` and `upgrades` per branch (run 2597),
|
||||
with no field for a failed post-upgrade task, so the report check cannot see it.
|
||||
- **The workflow holds the runner's slot:** the `kamino-runner` host has a single slot (the label is
|
||||
`kamino-docker`), and the Renovate job may run up to 30 minutes (`timeout-minutes`) from 03:17 UTC, so
|
||||
Lint, Build and Molecule checks queue behind it.
|
||||
|
||||
Reference in new issue
Block a user