Lower the pull request `PYRIGHT_TIME_BUDGET` to 280 s now that CI runs `pyright` with 3 workers and a 6 GB heap
Why we make these changes
#11806 runs CI's Pyright step with 3 workers and a 6 GB Node heap. Douwe approved lowering the pull-request PYRIGHT_TIME_BUDGET from 320 s, set in #11652, to about 280 s once timings after that merge confirmed it. This PR lowers it in .github/workflows/ci.yml: PYRIGHT_TIME_BUDGET: ${{ github.event_name == 'pull_request' && '280' || '' }}. Related: #8182.
The figures below are Type-check with Pyright step durations from every completed CI run created between the merge (2026-10-29T23:18Z) and 2026-10-30T23:50Z. Only runs whose log shows uv run pyright --threads 3 count. Six pull-request runs on stale merge refs still used --threads auto; they took 181 to 301 s and are excluded.
| passing runs | n | min | median | p90 | p95 | p99 | max | over 280 s |
|---|---|---|---|---|---|---|---|---|
| pull request | 146 | 145 s | 231 s | 251 s | 254 s | 267 s | 288 s | 1 |
| merge queue | 20 | 153 s | 236 s | 252 s | 261 s | 283 s | 288 s | 1 (not enforced) |
main | 15 | 158 s | 235 s | 245 s | 247 s | 250 s | 251 s | 0 |
| all | 181 | 145 s | 231 s | 251 s | 254 s | 274 s | 288 s | 2 |
At 280 s the budget sits about 10% above the p95. One of the 146 passing pull-request runs (0.7%) would have failed it, against 23 of 375 (6%) at 260 s on 2026-10-27. The 21 failing pull-request steps took 35 to 237 s, so they failed on type errors, not on the budget. A regression like #8077's (328 to 490 s) still fails. The timer in scripts/typecheck_changed.py wraps both Pyright commands, so it matches the step duration to within about a second.
New public surface
None.
Verification
- The CI step timings above, collected through the GitHub API. No local Pyright run.
pre-commitonci.yml(YAML,zizmor).- This PR's own
quality checksrun enforces the new budget.
What changes for existing users
Nothing; only CI's pull-request Pyright budget changes.
PR decisions
- 2026-10-30: Douwe approved lowering the budget to about 280 s once post-merge timings confirmed it; a p95 of 254 s leaves about 10% headroom.
- 2026-10-30: pre-push review 1 of 3 ran out of context without a verdict. Review 2 of 3 returned
currentatbaf38ace.
Checklist
- No breaking changes in accordance with the version policy.
- Any permitted compatibility impact has a label, warning, migration and release note, and an exact API-check waiver if the gate reports it.
- PR title is fit for the release changelog.