Repository navigation
fix(pr-pipeline): poll the found capture run, record capture misses as blocked, cap capture retention at 30 - #13449
Conversation
…e as blocked, cap capture retention at 30
find-capture lists the capture workflow's runs only until the capture run
shows up, then reads that run's own record (GET actions/runs/{id}) every
3 minutes, re-checking its identity, with the last read at the 35-minute
bound: a full wait costs 13 calls instead of 36.
With merge.verify-capture.app set, every miss (no run, a run that ended
other than success, a run still going at the bound, no artifact, an API
failure, a failed download) now reaches the verdict as capture: blocked
with a reason find-capture builds from a fixed code, a run id and a run
conclusion; no-app now means only that the app is unset. The miss rides
the existing carry output, so the later judge jobs record the same
reason without searching again, and the carried value is pattern-checked
like the ids. A red capture run's artifact is not read.
merge.verify-capture.retention-days now accepts 1 to 30, so the
pr-capture-* retention row's 30 days is the true upper bound.
Refs: #12232
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-ups Refs: #12232 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review (incremental, 61d2842 → 3ae53d4): no security issues foundI read every hunk of all 5 files in the incremental scope. What changed: only four kinds of miss are now carried to the later judge jobs: Checks and results
Spend: after a temporary miss, the later judge jobs now search again inside the same 35-minute bound. That uses a few more GitHub API calls and some included Actions runner time, and changes no billing. critical-findings: 0 |
|
claude-review reviewed Code review: PR #13449, incremental since
|
A carried unreadable, not-started or running miss made a temporary miss final: every later judge job recorded it blocked and never searched again, though it starts at least one judge step later and would find the finished capture. find-capture now carries only malformed, no-artifact, mismatch and ended misses, and accepts only those (or the ids) as FOUND_CAPTURE. A miss that can change still writes its blocked reason for this job's verdict but no carry, so a later job searches again under the same bound and records its own reason. Refs: #12232 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #12232 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Refs: #12232
Summary
PR 13053 put the capture workflow on main, switched off, and listed three fixes to make before
merge.verify-capture.appis set. This PR makes those three fixes.find-capture.mjsre-listed the capture workflow's runs, up to 10 pages, once a minute for up to 35 minutes.no-app. With the app set, every miss reached the verdict asno-app("no app check ran"): a red capture run, a run that never started, a timeout, a missing artifact, an API failure.pr-capture-*retention row records 30 days, butmerge.verify-capture.retention-daysaccepted 1 to 90.Fix
GET actions/runs/{id}every 3 minutes, re-runs theisCaptureRunidentity checks, and confirms the id still matches. The last read lands on the 35-minute bound. A full wait now costs 13 calls instead of 36; a run that finishes at 3 minutes costs 3 instead of 5.workflow_runevent, which would remove the wait. check-trusted-trigger and the verdict's run record rest on pr-verify's current trigger, the trust basis the owner's Q1 decision kept (issuecomment-6620015178). Changing that is the owner's call. Basis: judgment, onpr-verify.yml:13-15.capture: blocked.no-appmeans only that the app is unset.carryoutput, and a carried value must match an anchored pattern.captureEvidence, so secret screening and the length cap still apply.prompt.md:85already tells the judge to proceed without ablockedcapture. No verdict outcome or merge gate reads the capture field: the verdict comes from the model output (write-verdict.mjs:383), and a grep of.github/scripts/pr-merge/andbabysit_verify_evidence.pyfinds no reader.maximum,pr-pipeline.yaml, the README, and the retention row's reason.CAPTURE_BLOCKEDenv lines on the judge jobs' verdict steps, and the retention bound. Triggers, permissions,persist-credentials, the probe, secret placement and step order are unchanged.Verification
node --teston each.github/scripts/pr-verify/*.test.mjs: 290 pass, 0 fail. find-capture's tests pin the call counts and cover each miss:scripts/check-artifact-retention.shpasses (95 upload steps, 66 families).check-changelog-fragments.sh --check-requiredpasses.actionlinton both workflows reports only thecache-modekey that main already has.Related
merge.verify-capture.app: claude-codein a follow-up PR.no-appwhile the app is set.🤖 Generated with Claude Code