Raise the pyright-rs `PYRIGHT_TIME_BUDGET` to 70 s to match its current runtime
This pull request was posted by Claude Code using claude-opus-5-5 on behalf of Douwe.
The quality job type-checks pull requests with pyright-rs, and hands the check to Pyright when pyright-rs fails or passes over its 55 s PYRIGHT_TIME_BUDGET. That budget was set on 2026-11-12, when pyright-rs took a median 40 s. It now sits at about the 90th percentile of its runs, so on a slow runner a clean pyright-rs pass falls back to a 6 to 8 minute Pyright run, which can then fail Pyright's own 370 s budget with no type errors at all.
Douwe asked for this change, including the .github workflow change, as part of the CI speed work.
pyright-rs step duration over 319 pull request CI runs from 2026-11-28 to 2026-11-30:
| percentile | seconds |
|---|---|
| 10th | 40 |
| 50th | 47 |
| 75th | 53 |
| 90th | 55 |
| 95th | 56 |
| max | 59 |
- Raises the pyright-rs budget from 55 s to 70 s, about 1.5x the current median, the margin the budget used to describe: a 1.5x jump, such as a new generic signature that is slow to solve (#8177), still exceeds it and hands the check to Pyright.
- In that window, 12 runs fell back to Pyright only because pyright-rs passed in 55.4 to 59 s. Three of those Pyright runs then failed its 370 s budget, in 378 to 504 s, with no errors. A 70 s budget would have kept all 12 on pyright-rs.
- Deliberate trade-off: the 55 s budget was Pyright's 370 s budget divided by the 6.6x Pyright/pyright-rs ratio measured on 2026-11-12, so a pyright-rs pass implied a Pyright run within its budget. A pass between 55 and 70 s no longer implies that, and the comment says so. Pyright's own 370 s budget is unchanged here.
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.
š¤ Generated with Claude Code
Summary by cubic
Raises the pyright-rs PYRIGHT_TIME_BUDGET in CI from 55 s to 70 s. The 55 s budget was set in November when pyright-rs took a median 40 s; it now sits at the 90th percentile of runs, so on slow runners a clean pyright-rs pass fell back to the much slower Pyright check and could fail Pyright's 370 s budget with no type errors.
The 70 s budget keeps the original rule of thumb (about 1.5x the median runtime), so a slowdown of that size, such as one caused by a new slow-to-solve generic signature, still exceeds it and defers to Pyright. The accompanying workflow comment now states the trade-off: a pyright-rs pass of up to 70 s no longer implies Pyright will finish within its own budget. Pyright's own 370 s budget is unchanged.