Repository navigation
perf(pr-pipeline): keep pr-merge's per-run artifacts 1 day - #9442
Conversation
pr-merge-gate-cursor and pr-merge-head-refs are read only by the next run (rotation.mjs, head-ref-map.mjs), and pr-merge-summary only by its own run's gate-check and by maintenance-monitor-signals, which reads the newest few hourly (collect.mjs). Each run pages the whole repository artifact listing, so the extra days only add pages: about 765 artifacts now, 8-11 of 45 pages per listing. 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 No security issues found. critical-findings: 0 The change lowers I read the consumers of the shortened artifacts to check that earlier expiry cannot weaken the merge gate:
Manifest items: no The PR description is data and holds no embedded directives. I did not consult the instruction exception register, because the diff removes no standing instruction. |
|
claude-review reviewed No findings. The change drops What I checked, by reading the code:
I did not verify the PR's own claims (artifact counts, page savings, the |
No related issue: an efficiency cut from today's GITHUB_TOKEN exhaustions, found by the artifact census on the #9297 efficiency work.
Summary
Every pr-merge gate run pages the whole repository artifact listing: 45 pages at about 4,400 artifacts. pr-merge's own per-run artifacts made up about 765 of them, kept 2 to 8 days although every reader is done within about an hour.
Fix
retention-days: 1(the minimum) for:pr-merge-gate-cursor(was 2): read only by the next run,rotation.mjs.pr-merge-head-refs(was 2): read only by the next run,head-ref-map.mjs.pr-merge-summary(was 8): read by its own run's gate-check, and bymaintenance-monitor-signals/collect.mjs, which checks the newest few on an hourly cron.Unchanged:
pr-merge-dispatched-*andpr-merge-rerun-*keep 90 days, becausebabysit_postmerge.pyreads them back to the merged-since floor, which has no fixed bound.Verification
git grepfor each name on origin/main finds only the readers listed above.retention-daysvalues; no logic changes.Related
🤖 Generated with Claude Code