Repository navigation
chore(release): comment on the tracker only when a release needs a human (#724) - #867
Merged
Merged
Conversation
…man (#724) `proxy-release` commented on the rolling tracking issue on every run. Since #727 removed the hand-off it was built for, every one of those comments has ended with "Nothing to do here" -- and has been right 13 times out of 13, which is every pin PR the flow has ever produced. A thread whose every entry says there is nothing to do buries the rare entry that does not, and sits in the open-issue list competing with work that is genuinely blocked. The tracker is now an ESCALATION thread. One new step writes to it, and only when the run actually needs somebody: - auto-merge could not be armed; - a superseded chore/proxy-image-bump-* PR was left open; - RELEASE_PAT is expiring (<30d), expired, rejected or unparseable; - the run fell back to the #703 manual hand-off. On the happy path nothing is written and the run summary is the whole record, so an empty thread now means every release since went through untouched. Two things this had to get right: - The resolve step CREATED the issue when missing, so closing it merely respawned it on the next release. It now only finds an already-open one; the escalation step creates it on demand. - The title changes with the semantics ("proxy release needs a human"). The old title belonged to the rolling log, and reusing it would have reopened the very thread being retired. The expiry classifier is table-tested against all five renderings the token step can emit: "no expiration set" and ">30 days" stay silent, while "day(s)" (<30), "rotate" (expired) and "unparseable" escalate. Note the healthy case renders "days" and the warning case "day(s)", which is what the match turns on. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #724.
Why
proxy-releasecomments on the rolling tracking issue on every run. #727 removed the hand-off that was built for, so since then every comment has ended with "Nothing to do here" — and has been correct 13 times out of 13, which is every pin PR the flow has ever produced:chore/proxy-image-bump-*PRs, all timeA thread whose every entry says there is nothing to do buries the rare entry that does not, and it sits in the open-issue list competing with work that is actually blocked.
What changes
The tracker becomes an escalation thread. A single new step writes to it, only when the run genuinely needs somebody:
chore/proxy-image-bump-*PR was left open;RELEASE_PATis expiring (<30d), expired, rejected or unparseable;gh pr createone-liner).On the happy path nothing is written — the run summary is the whole record. Silence now carries information: an empty thread means every release since went through untouched.
Two traps this had to avoid
proxy release needs a human). The old title belonged to the rolling log — reusing it would have reopened the very thread being retired.Verification
The expiry classifier is table-tested against all five renderings the token step can emit:
EXPIRYrenderingexpiry not reported by the API (no expiration set…)expires in 200 days (`2027-04-08`)**expires in 12 day(s)** … rotate …rotate the release environment secret …(expired)expiry unparseable (`garbage`)Note the healthy case renders
daysand the warning caseday(s)— that is what the match turns on.Also: YAML parses, and
bash -nis clean on everyrunblock in the file.One correction to what I claimed on the issue: I said the 30-day warning "cannot fire". That was wrong — the logic is sound, and it distinguishes "no expiration set" from "could not read it" explicitly. The token simply has no expiry date configured, so there is nothing to warn about.
🤖 Generated with Claude Code
https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr