You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
flake: scripts/repo-scan-timeout.test.ts > unit · a scripts test that reads the tree declares the repo-scan budget > every one of them names REPO_SCAN_TIMEOUT_MS #1265
bun run x -- test unit --workers 4 --isolate -- --randomize --seed=4213420217
bun run x -- test unit --workers 4 --isolate -- --randomize --seed=2879767910
bun run x -- test unit --workers 4 --isolate -- --randomize --seed=3435136434
The file alone, same seed — order across files is lost, so green here is not a fix:
bun test ./scripts/repo-scan-timeout.test.ts --randomize --seed=4213420217
What Bun printed:
- []
+ [
+ "scripts/typecheck-locked.test.ts",
+ ]
- Expected - 1
+ Received + 3
at <anonymous> (/home/runner/work/ultimate/ultimate/scripts/repo-scan-timeout.test.ts:144:7)
::error file=scripts/repo-scan-timeout.test.ts,line=144,col=7,title=error: these read the real tree on Bun's 5000ms default — add `setDefaultTimeout(REPO_SCAN_TIMEOUT_MS)` after the imports%2C or pass REPO_SCAN_TIMEOUT_MS as the test's third argument::- []%0A+ [%0A+ "scripts/typecheck-locked.test.ts",%0A+ ]%0A%0A- Expected - 1%0A+ Received + 3%0A%0A at <anonymous> (/home/runner/work/ultimate/ultimate/scripts/repo-scan-timeout.test.ts:144:7)
Fixed on main by a22539b (#1261), which carried later commits than the hunted a5733be.
Cause: not order dependence: scripts/typecheck-locked.test.ts read the real tree without declaring REPO_SCAN_TIMEOUT_MS, so the repo-scan guard failed on every run. The fix adds setDefaultTimeout(REPO_SCAN_TIMEOUT_MS).
Evidence
Restoring the a5733be version of scripts/typecheck-locked.test.ts on main makes this test fail again under --randomize --seed=4213420217. With main's version it passes.
The test passes on the current tip 0700715 under all three seeds from the failing hunt (4213420217, 2879767910, 3435136434), run file by file with CI=true.
Hunt 44447976868 on a22539b was green in all six rounds (unit and live, three fresh seeds each).
Activity
sebyx07 commentedon Nov 19, 2026
Fixed on main by a22539b (#1261), which carried later commits than the hunted a5733be.
Cause: not order dependence:
scripts/typecheck-locked.test.tsread the real tree without declaringREPO_SCAN_TIMEOUT_MS, so the repo-scan guard failed on every run. The fix addssetDefaultTimeout(REPO_SCAN_TIMEOUT_MS).Evidence
scripts/typecheck-locked.test.tson main makes this test fail again under--randomize --seed=4213420217. With main's version it passes.CI=true.