Lower the pull request `PYRIGHT_TIME_BUDGET` to 280 s now that CI runs `pyright` with 3 workers and a 6 GB heap

Merged
DO
1mo ago
+5-1

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 runsnminmedianp90p95p99maxover 280 s
pull request146145 s231 s251 s254 s267 s288 s1
merge queue20153 s236 s252 s261 s283 s288 s1 (not enforced)
main15158 s235 s245 s247 s250 s251 s0
all181145 s231 s251 s254 s274 s288 s2

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-commit on ci.yml (YAML, zizmor).
  • This PR's own quality checks run 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 current at baf38ace.

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.