Repository navigation
fix(work-unblock): sweep every 15 minutes so one lands after the token reset - #18731
Draft
kyle-sexton wants to merge 1 commit into
Draft
kyle-sexton wants to merge 1 commit into
kyle-sexton wants to merge 1 commit into
Conversation
…n reset The scheduled sweep ran once an hour at :54, on the assumption that the GITHUB_TOKEN core window resets at :40-:50. The reset minute drifts from day to day: between 2026-11-10 and 2026-11-24 it sat at :38, :48, :53, :58, :14, :18, :22, :34, :42, :46, :50, :56 and :12. A :54 sweep now lands about 40 minutes into the window, where the budget start gate's 21-minute projection stopped 36 of the last 68 lane starts it reached; the only re-fire batches that worked followed hand-dispatched sweeps just after the reset. Four sweeps a quarter-hour apart (:04, :19, :34, :49) put one within 15 minutes of any reset. A sweep costs 8 to 15 core calls, so the three extra runs an hour cost about 30 calls, 0.6% of the 5,000 pool. publish-lane-level still decides once an hour: it runs on the :49 entry only, matched by its schedule string. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
No related issue: admission starvation diagnosis from the hub's metrics (36 of 68 lane starts budget-stopped in 24 h).
Hold: the 15-minute cadence differs from the owner's approved :16 schedule; it waits on the owner's choice.
Summary
The scheduled
work-unblocksweep is the only scheduled path that re-fires deferred issues. It ran at :54 on the assumption that the GITHUB_TOKEN core window resets at :40-:50. The reset minute drifts from day to day, so the sweep now lands late in the window, where the start gate's 21-minute projection stops the starts it would make.Fix
4,19,34 * * * *plus49 * * * *, so one sweep runs within 15 minutes of any reset, whatever minute it drifts to.publish-lane-level(hourly by owner decisions Q111 and Q113) runs only on the49 * * * *entry, matched withgithub.event.schedule.Basis:
label-unblocked.mjs(readmitReady,rescanSplitParents, keyed on the UTC hour) already run several times an hour through theworkflow_runsweeps, so extra scheduled sweeps in the same hour change no outcome.publish-lane-level's carry reads the newest scheduled run that kept alane-level-stateartifact, searching up to 10 runs (.github/scripts/pr-merge/rotation.mjs:42-43). With four scheduled runs an hour it skips the three that keep none. That leaves about 2.5 hours of cover before it falls back to the published level, against 10 hours before.Verification
scripts/check-affected.sh --testson the change: see the run below.Related
🤖 Generated with Claude Code