Repository navigation
perf(pr-pipeline): sweep only recently updated issues hourly, every open issue once a day - #13494
Conversation
…pen issue once a day Label events already mirror each status change, so the hourly sync-status sweep only needs what they missed. It now lists open issues updated in the last two hours (REST issues `since`), and reads every open issue once a day in the 04:00 UTC run. The first full sweep spent 430 calls. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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-review reviewed Code review (incremental, blocking only):
|
|
claude-security-review reviewed Security review: PR #13494 (incremental, 2dba68a → d7620e3)I found no security issues in this push. I read every hunk of the 3 files in scope: What changed: the single What I checked:
critical-findings: 0 |
The full sweep ran only when a scheduled run started inside the 04 UTC hour, so a late or dropped 04:47 run skipped it for the day. The schedule now has its own daily entry (47 4 * * *), the job passes the firing entry as SCHEDULE, and the script sweeps in full when that entry fired. Comments describing the hourly run now say it covers recently updated issues. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Post-merge mutation testingKilled 5, survived 2, timeout 0, no coverage 0, invalid 0, not run 0.
Surviving mutants
The run's summary has the full report. |
No related issue: a hub efficiency follow-up to #13491, the Work status catch-all mirror, which is already done, asked for event-driven work and frugal GitHub calls.
Summary
The hourly
sync-statussweep inwork-unblock.ymlread every open issue each run. The first run spent 430 lanes App calls, about 10k a day, for a backstop: label events already mirror each status change as it lands. The sweep now reads only issues updated in the last two hours, and reads every open issue once a day.Fix
sweep()takes an optionalsince(ISO time) and passes it to the REST issues listing (sincefilters onupdated_at, and a label change updates an issue).sweepSince(now)returns now minus two hours, a window that covers a late scheduled run. In theFULL_SWEEP_HOUR(04 UTC) run it returns undefined, for a full sweep that catches any other drift.Verification
node --test .github/scripts/work-unblock/sync-status.test.mjs: 10 of 10. The new cases cover the window and the daily full hour, and check that a windowed sweep sendssincewhile the full sweep does not.check-affectedpassed.Related
#13491 (closed; evidence comments), #7577 (parent).
🤖 Generated with Claude Code