ci: run Molecule on every same-repo pull request and print the Renovate report shape
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
This commit is contained in:
1 parent
6f9d9c8a9d
commit
a6583db5d5
3 files changed
+16
-10
No files matched your search
@@ -103,6 +103,15 @@ 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", "")))
|
||||
|
||||
Reference in new issue
Block a user