Commit 547541c
#3010 fixed five load-sensitive flaky tests that all shared one root cause —
an unbounded module load billed against a bounded window — and found one file
that had already been "fixed" once by raising its timeout to 15s (and still
blew it at 15021ms under full load). Without writing the rule down, the next
agent reaches for the same band-aid.
Adds a `测试纪律` subsection to §9 covering: assert-behind-a-lazy-boundary ->
import at module scope (the import phase has no test/hook timeout); why
`beforeAll` is the wrong warm-up spot (`hookTimeout` 10s is *narrower* than
`testTimeout` 15s); that raising a timeout or adding a file to `heavyDomTests`
is forbidden as a flake fix; how to read the two tells (a Suspense fallback in
the dump, and a failed *file* with 0 failed *tests*); and the stale-install
trap that makes a wall of local parity failures look like a regression.
Docs only — no code, no changeset.
Co-authored-by: Jack Zhuang <277994282+os-zhuang@users.noreply.github.com>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
1 parent a045a32 commit 547541c
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
152 | 165 | | |
153 | 166 | | |
154 | 167 | | |
| |||
0 commit comments