Raise the pull request `PYRIGHT_TIME_BUDGET` to 320 s so runner variance no longer fails a passing Pyright run
This pull request was posted by Claude Code using claude-opus-5-5 on behalf of David.
Why we make these changes
PYRIGHT_TIME_BUDGET fails a passing Pyright run that outlasts it, so a change that makes Pyright slow fails its own PR. At 260 s it now trips on runner variance. On 2026-10-27, 23 of 375 pull request runs failed Type-check with Pyright only on the budget: both Pyright invocations reported 0 errors, and Pyright took 260.8 to 290.1 s. Each trip costs a rerun. The trips include a docstring-only change (#11631, run, 262.9 s) and a uv.lock-only bump (#11609, run, 265.8 s).
Across all 375 runs the step took 127 to 292 s (median 236 s, p90 259 s). 320 s is about 1.1x that maximum. It still fails a regression like #8077's, whose five main runs took 328 to 490 s.
New public surface
None.
Verification
- Durations come from the Actions API:
CIruns onpull_request, created 2026-10-27 00:06Z to 19:28Z. Each budget trip was confirmed from its job log. ci.ymlruns from the PR's merge ref, so this PR's ownCIrun checks the new value.
What changes for existing users
Nothing. CI only.
The 23 budget trips on 2026-10-27
| Run | Branch | Pyright s |
|---|---|---|
| 40538561282 | clai2-delegate-model-and-directory | 260.8 |
| 40439376541 | canonical-system-replay | 261.1 |
| 40567448687 | canonical-system-replay | 262.4 |
| 40556893444 | agent/clai2-11589-docstring | 262.9 |
| 40545839392 | azure-gpt56-caching | 261.4 |
| 40440654405 | core-compaction-hook | 262.4 |
| 40558202943 | aditya/computer-use-openai | 263.0 |
| 40494026598 | aditya/named-combined-capability | 263.5 |
| 40492065991 | aditya/cache-cold-compaction | 263.5 |
| 40484673561 | boxd-sandbox | 262.9 |
| 40544491417 | dependabot/uv/dnspython-2.9.0 | 265.8 |
| 40568058157 | fix-wrap-run-teardown-cancel | 265.8 |
| 40560063442 | vercel-sandbox | 265.8 |
| 40537202608 | core-native-compaction | 266.0 |
| 40558183419 | aditya/computer-use-workspace | 269.3 |
| 40558192246 | aditya/computer-use-capability | 271.3 |
| 40449312544 | function-model-cache-prefix-check | 272.6 |
| 40569440939 | core-native-compaction | 272.9 |
| 40442495697 | function-model-cache-prefix-check | 277.9 |
| 40539167207 | fix-10249-generator-exit-teardown | 283.7 |
| 40540800569 | canonical-system-replay | 286.8 |
| 40548101969 | aditya/workspace-spans | 288.0 |
| 40564533134 | agent/clai2-11596-cap | 290.1 |
PR decisions
2026-10-27 · pre-push review 1 of 3 at 5383a3292241c5aa8abba71bea5f1415f72a8396 · iter -
- Decision: dispatched (light tier, claude -p haiku from policy-base checkout); outcome pending
- Why: tree c39669092b9945fbd3d64ffd5eea2db481853aee; scope 6eb3142d6943026149f14a5f383c2f72230ca1d1..5383a3292241c5aa8abba71bea5f1415f72a8396 (full branch, first review)
- Source: https://github.com/pydantic/pydantic-ai/tree/raise-pyright-time-budget
2026-10-27 · pre-push review 1 of 3 at 5383a3292241c5aa8abba71bea5f1415f72a8396 · iter -
- Decision: no findings (current at 5383a3292241c5aa8abba71bea5f1415f72a8396)
- Why: tree c39669092b9945fbd3d64ffd5eea2db481853aee; scope 6eb3142d6943026149f14a5f383c2f72230ca1d1..5383a3292241c5aa8abba71bea5f1415f72a8396; first review
- Source: https://github.com/pydantic/pydantic-ai/tree/raise-pyright-time-budget
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.