You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI3 note can't read its window: time to a PR's result is unknown and the cause is discarded (follow-up of #781, #784) #1291
Bug: the first real CI3 note (#780, comment 7002763613) reported the time to a PR's result as unknown. The collector said "CI3 unavailable: the window's PR heads and runs could not be read whole." So the note had no p50/p95, no regression check and no biggest bucket, and it filed no improvement issues. CI3's loop has nothing to steer by until this works. The minutes alert worked.
What the code shows (tools/collector/collect_ci.py, ci3()): it runs the CI3 collect and measure with stderr sent to a discarded buffer (contextlib.redirect_stderr(io.StringIO())). Any exception in FAILS returns the same generic unavailable fact. The real reason, whether a failed or short GitHub read, a run that changed mid-read, a rate limit, or something else, is thrown away. The note can't say which, and nobody can fix it from the note alone.
Also seen in that run: the first check hit a 15-minute local wall-clock cap. The second, uncapped run produced the finding above. A 7-day window may be too heavy to read whole in one pass.
Fix, in order:
Keep the CI3 collector's own failure reason (its bench:/ci3: message) and show it in the fact's prerequisites and the note, failing closed as now. A test, red first: an injected short or failed read surfaces its named reason, not the generic line.
Run the collect for the note's window once with the reason visible, and fix the actual cause (likely a read bound, pagination or a rerun-in-window rule). It gets its own test, red first.
If the window is too heavy to read whole, decide with the orchestrator whether to read it in smaller slices that are each read whole. Never drop heads to make the measure "known".
Test rule (#687): (1) catches "a CI3 read failure is reported without its cause". (2) catches whatever the real cause turns out to be.
Builder question: the owned path tools/collector/ no longer exists in OpenWiz. #1775 deleted it on main (6f01e3d), and #1776 made WizRoom's tools/collector/ the collector's own copy (WizRoom's AGENTS.md: WizRoom owns it; no longer byte-identical to OpenWiz). ci3() in collect_ci.py and the CI3 reader now live only there.
Options:
Recommended: move this ticket's owned path to tools/collector/ in openwizdev/WizRoom, one PR against WizRoom main, gated on WizRoom's required checks (ci, privacy). Drop changes/1291.md: the collector is no longer an OpenWiz product path, and WizRoom has no changelog.
Builder diagnosis (read-only, against WizRoom tools/collector/ at 4cb22b5; no edits yet):
Fix 1's cause is confirmed in the code.ci3() catches FAILS and returns the fixed UNAVAILABLE['ci3'] line, so the Fail text (e.g. gh api ... failed (exit 1): <gh's first stderr line>) is lost. ci3_check.read_measure passes on only prerequisites.
The window's data reads clean, phase by phase (2026-11-12 05:00 to 2026-11-19 05:00 UTC, all responses cached, re-read from disk):
PR list: 158 PRs, no forks (the fork refusal would have failed the whole window).
Push activity: no branch at the 100-push bound; 349 heads, none without a sha.
25 heads sampled evenly across the window: all 25 read and measure (result() ok), at about 4 REST calls per head.
Merge groups: 192 merge_group runs per workflow, under the 1,000 API limit.
Likely cause: the read's cost against the REST budget. A whole read is about 1,800 sequential calls: ~700 per-head head_sha run lookups, ~700 per-attempt job pages, ~400 for merge groups. At ~0.3 s per call that is 10+ minutes, which fits the first run's 15-minute cap. The first, capped run plus the second run is ~3,600 calls in an hour, on top of a fleet that today used 2,888 of 5,000 calls in the first 27 minutes of the hour. So the second run most likely ran out mid-read, and the hidden reason was a rate limit. Not proven: confirming it needs one whole live read (~1,800 calls), and I won't spend that while the fleet is on pace to run dry. Fix 1 makes the next run name its cause either way.
Proposed fix 2 (needs the path answer above): cut the read to a few hundred calls without dropping a head:
List each required workflow's pull_request runs once for the window (created= range, paged and read whole, ~10 calls), and pick each head's first run from that list. Today that's one head_sha query per head per workflow (~700 calls).
Read each run's jobs once with jobs?filter=all (already used by ci3_check.estimate_minutes) and split them by run_attempt, not one page per attempt.
Name a rate-limit or short read as its own reason in the fact (fix 1), failing closed as now.
Each gets a fixture test, red first, with a fake reader that counts calls. No live GitHub in tests. Slicing the window (step 3 of the ticket) shouldn't be needed after this; I'd raise it only if the cheaper read still doesn't fit.
Planner ruling, 2026-11-21: yes to all three. The collector moved to WizRoom (#1775, #1776), so this ticket's owned path is tools/collector/ in openwizdev/WizRoom, with one PR against WizRoom main. There is no changes/1291.md, because WizRoom has no changelog. Green means WizRoom's required checks, ci and privacy, at the exact head. Build both fixes red first with a call-counting fake reader: keep the real error text in the fact while still failing closed, and cut the read's cost (one PR-run list per workflow for the window, and each run's jobs read once with filter=all), naming a rate limit or short read as its own reason. Don't spend a whole live read to prove cause 2; the call counts in the fixtures are the proof, and the next real CI3 note is the live check. The needs-info is answered.
Builder: the PR is openwizdev/WizRoom#37 at head 9da5f502433f69fa3bd401af391b7b2c3fed2ece (red at a040c02). CI is pending; the gate is WizRoom ci and privacy at that exact head.
Planner: fixed by openwizdev/WizRoom#37, merged at 2026-11-21 ~03:40Z pinned to its approved head 4adbb00464ebaf6ef9a66a36168f90a2ab1f6a22 (merge commit 2606232f2f9108c10ba203d96d76dab5c60a8e8f; APPROVE 7056676920 after the orchestrator's decisions on #37). The collector keeps each fail-closed fact's real cause from a fixed allow-list and reads the CI3 window far more cheaply. The next real CI3 note is the live check. Follow-ups: #2080 (the shared page reader), #2100, #2118. Closing by hand, since a WizRoom merge can't close an OpenWiz issue.
Activity
jparker2006 commentedon Nov 21, 2026
Builder question: the owned path
tools/collector/no longer exists in OpenWiz. #1775 deleted it on main (6f01e3d), and #1776 made WizRoom'stools/collector/the collector's own copy (WizRoom's AGENTS.md: WizRoom owns it; no longer byte-identical to OpenWiz).ci3()incollect_ci.pyand the CI3 reader now live only there.Options:
tools/collector/inopenwizdev/WizRoom, one PR against WizRoommain, gated on WizRoom's required checks (ci,privacy). Dropchanges/1291.md: the collector is no longer an OpenWiz product path, and WizRoom has no changelog.Meanwhile I'm diagnosing the cause read-only (step 2), with no edits to any path until this is answered.
jparker2006 commentedon Nov 21, 2026
Builder diagnosis (read-only, against WizRoom
tools/collector/at 4cb22b5; no edits yet):Fix 1's cause is confirmed in the code.
ci3()catchesFAILSand returns the fixedUNAVAILABLE['ci3']line, so theFailtext (e.g.gh api ... failed (exit 1): <gh's first stderr line>) is lost.ci3_check.read_measurepasses on onlyprerequisites.The window's data reads clean, phase by phase (2026-11-12 05:00 to 2026-11-19 05:00 UTC, all responses cached, re-read from disk):
result()ok), at about 4 REST calls per head.merge_groupruns per workflow, under the 1,000 API limit.Likely cause: the read's cost against the REST budget. A whole read is about 1,800 sequential calls: ~700 per-head
head_sharun lookups, ~700 per-attempt job pages, ~400 for merge groups. At ~0.3 s per call that is 10+ minutes, which fits the first run's 15-minute cap. The first, capped run plus the second run is ~3,600 calls in an hour, on top of a fleet that today used 2,888 of 5,000 calls in the first 27 minutes of the hour. So the second run most likely ran out mid-read, and the hidden reason was a rate limit. Not proven: confirming it needs one whole live read (~1,800 calls), and I won't spend that while the fleet is on pace to run dry. Fix 1 makes the next run name its cause either way.Proposed fix 2 (needs the path answer above): cut the read to a few hundred calls without dropping a head:
pull_requestruns once for the window (created=range, paged and read whole, ~10 calls), and pick each head's first run from that list. Today that's onehead_shaquery per head per workflow (~700 calls).jobs?filter=all(already used byci3_check.estimate_minutes) and split them byrun_attempt, not one page per attempt.Each gets a fixture test, red first, with a fake reader that counts calls. No live GitHub in tests. Slicing the window (step 3 of the ticket) shouldn't be needed after this; I'd raise it only if the cheaper read still doesn't fit.
jparker2006 commentedon Nov 21, 2026
Planner ruling, 2026-11-21: yes to all three. The collector moved to WizRoom (#1775, #1776), so this ticket's owned path is
tools/collector/inopenwizdev/WizRoom, with one PR against WizRoommain. There is nochanges/1291.md, because WizRoom has no changelog. Green means WizRoom's required checks,ciandprivacy, at the exact head. Build both fixes red first with a call-counting fake reader: keep the real error text in the fact while still failing closed, and cut the read's cost (one PR-run list per workflow for the window, and each run's jobs read once withfilter=all), naming a rate limit or short read as its own reason. Don't spend a whole live read to prove cause 2; the call counts in the fixtures are the proof, and the next real CI3 note is the live check. Theneeds-infois answered.jparker2006 commentedon Nov 21, 2026
Builder: the PR is openwizdev/WizRoom#37 at head 9da5f502433f69fa3bd401af391b7b2c3fed2ece (red at a040c02). CI is pending; the gate is WizRoom
ciandprivacyat that exact head.jparker2006 commentedon Nov 21, 2026
Planner: fixed by openwizdev/WizRoom#37, merged at 2026-11-21 ~03:40Z pinned to its approved head
4adbb00464ebaf6ef9a66a36168f90a2ab1f6a22(merge commit2606232f2f9108c10ba203d96d76dab5c60a8e8f; APPROVE 7056676920 after the orchestrator's decisions on #37). The collector keeps each fail-closed fact's real cause from a fixed allow-list and reads the CI3 window far more cheaply. The next real CI3 note is the live check. Follow-ups: #2080 (the shared page reader), #2100, #2118. Closing by hand, since a WizRoom merge can't close an OpenWiz issue.