From b0e7932a76f876b4e17bfe7f4f040d38045a2736 Mon Sep 17 00:00:00 2001 From: Defame1297 Date: Mon, 26 Oct 2026 20:22:20 +0000 Subject: [PATCH] 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 Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm --- .gitea/workflows/renovate.yml | 9 --------- CLAUDE.md | 4 +++- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.gitea/workflows/renovate.yml b/.gitea/workflows/renovate.yml index 65b4621..6514296 100644 --- a/.gitea/workflows/renovate.yml +++ b/.gitea/workflows/renovate.yml @@ -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", ""))) diff --git a/CLAUDE.md b/CLAUDE.md index 4be36ec..9bcaee4 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -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. -- 2.43.0