From d718a37c10a75ef239c58a402db16d02bb738a65 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 1 Sep 2026 03:25:47 +0000 Subject: [PATCH] ci: make a clean maintenance-watch run show its work MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The first run printed "Nothing outstanding" and nothing else. That was the correct answer, but the output is indistinguishable from a run whose checks silently did nothing — which is the exact failure this workflow was added to replace, and the same shape as a nightly that goes green because a broken package aged out of its window. Now every run logs what it examined: how many open PRs, how many of the last seven scheduled registry runs failed and the latest result, and the local version against npm. An all-clear is auditable instead of asserted. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01NBQQpA86yYzwJUiVz8ph2R --- .github/workflows/maintenance-watch.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/maintenance-watch.yml b/.github/workflows/maintenance-watch.yml index f2ccff1..94a1893 100644 --- a/.github/workflows/maintenance-watch.yml +++ b/.github/workflows/maintenance-watch.yml @@ -73,6 +73,7 @@ jobs: # two arrived and went unnoticed for two days. prs=$(api "https://api.github.com/repos/$REPO/pulls?state=open&per_page=50") expect_array "$prs" "open pull requests" + pr_count=$(echo "$prs" | jq '[.[] | select(.draft==false)] | length') stale="" for n in $(echo "$prs" | jq -r '.[] | select(.draft == false) | .number'); do opened=$(echo "$prs" | jq -r --argjson n "$n" '.[] | select(.number==$n) | .created_at') @@ -118,6 +119,12 @@ jobs: findings="${findings}- \`packages/context/package.json\` is ${local_v}, npm latest is ${npm_v}"$'\n\n' fi + # An all-clear has to show its work. "Nothing outstanding" with no + # detail is indistinguishable from a check that silently did nothing, + # which is the failure this workflow exists to replace. + echo "Examined ${pr_count} open PR(s); ${failed} of the last 7 scheduled" \ + "registry runs failed (latest: ${latest}); version ${local_v} vs npm ${npm_v}." + { echo "findings<