Commit fd968df
committed
test(spec): 给 13 个 compiler-API 导出面 pin 一个符合真实工作量的超时 (#4796)
这一族 pin 都要对全部 16 个公共入口建一次 ts.createProgram,天然秒级。
实测:空闲机器 ~2-3s;CI 分片上 turbo 把 spec#build 与 #test 并发跑在
同 4 vCPU 上,争抢推到 5.0-5.6s —— 恰好骑在 vitest 默认 5s 线上。
一个上午三条 pin 超时(state-machine / sync-retirement / tenant),
每次都把不相干的 PR 踢出合并队列,并曾被误诊为构建 OOM(#4845)。
30s 约为实测争抢峰值 5 倍;真挂死仍由 10 分钟 stall guard 兜底。
长期修法(导出面做成构建期产物、pin 只比对)在 #4796 跟踪。
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0176qgxgCXTJCUv4YFLtusP91 parent f4847a6 commit fd968df
2 files changed
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
10 | 24 | | |
11 | 25 | | |
12 | 26 | | |
| |||
0 commit comments