Repository navigation
fix: old queued runs no longer hide a complete queue listing - #77
Conversation
A queue_wait case ends when its job is gone from two whole listings of its repository (#76). A listing counted as whole only when it returned fewer than the 30 runs it asked for. dashpay/platform carries 31 runs that GitHub still calls queued, 29 of them left over since September, and dashpay/rust-dashcore 40, so their listings never counted and the rule never applied to the repositories with most of the waiting jobs. Ask for 100 runs and go by GitHub's own total: a listing is whole when it holds every run with that status. Only runs created in the last day are looked into, as before, so the number of requests does not change. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Follow-up to #76, found on the live console minutes after it was deployed (dashpay/infra#99).
Problem
A
queue_waitcase ends when its job is gone from two whole listings of its repository. A listing counted as whole only if it returned fewer than the 30 runs it asked for.dashpay/platformhas 31 runs that GitHub still callsqueued. Two were created in the last day; the other 29 are leftovers, the oldest from 2026-09-13.dashpay/rust-dashcorehas 40, one of them recent. So the first poll after the deploy listed six repositories as covered and left out exactly the two where most jobs wait. Their cases would only end on GitHub's record of the job starting on one of our runners, or after a day.Change
The poller asks for 100 runs per status (GitHub's maximum) and goes by
total_count: a listing is whole when it holds every run with that status. Without a count, a full page is still treated as cut.Only runs created in the last 24 hours are looked into, as before, so the number of API requests per poll is unchanged.
Tested
server/ci.test.js: 40 runs queued for two months beside 2 recent ones, with a matching total, are covered; a total above what was returned, and a full page without a total, are not.Prepared by Claude (infraclaw) at latte's request.
🤖 Generated with Claude Code
Summary by CodeRabbit