Repository navigation
test(regressions): add missing regressions for build cache, Files scope, worktree focus and agy temp links - #4550
Conversation
|
No actionable comments were generated in the recent review. Summary
Merge Risk:
|
|
Merged through Test-only PR. Reviews that ran: a gate review by omo-native-gate-reviewer (APPROVE: each new test re-run red with its fix reverted, A1 run 24 times in parallel without a flake). CodeRabbit hit its review limit on the first head. The one Fast checks failure (server/file-view.test.ts open-descriptor count, a file this PR does not touch) passed on rerun. |
What
Test bundle B5 of the test-suite plan: regression tests for four fixes that went in without one (two of them regressed before). Tests only; no production file changes.
scripts/build-cache.tsre-checks the cache after taking the lockscripts/build-cache.test.ts: two realbuild-cache.tsjobs on one key, ordered by gate files (fs.watch, no sleep). Job 2 misses the cache, meets job 1's lock, and is paused just before its retry; job 1 stores its build and releases. Both exit 0, one build in total, job 2'sdist/restored from the cache.src/components/FilesDialog.test.tsx: renderFilesDialog, pick Branch, compare withmain, rerender with anotherpaneId, then the stale pane's answer arrives: Branch stays pressed and the stale file is not shown.src/components/WorktreeDialog.test.tsx: in create mode focus is on the Branch input with its suggested value fully selected./var -> /private/var)server/agy.test.ts: a new row of the WAL-catalog table runs the reader withTMPDIR/TEMP/TMPpointing at a symlink.Evidence: each test goes red when its fix is reverted
Each mutation was written into the production file, the test run, and the original bytes restored (sha256 checked; production diff is empty).
if (owner && restored())->if (false && ...)(no look under the lock)[1, 1]instead of[1, 0]key={${machineId}:${paneId}}on<RepoChanges>(the key cbdcafa removed)ref={first}from the Branch input to the Name input (pre-#1222)snapshot = realpathSync(snapshot)inserver/agy.tsAgyUnavailable; the other three rows stay green. This reproduces on Linux too: SQLite'sSQLITE_OPEN_NOFOLLOWrefuses a path with a symlinked directory component, so Linux CI guards #2030.Validation
bun test scripts/build-cache.test.ts src/components/FilesDialog.test.tsx src/components/WorktreeDialog.test.tsx server/agy.test.ts: all new tests pass.bun scripts/typecheck.ts: exit 0.bun run check fast(P620, 241 s): typecheck, build, generated files ok; unit 24,890 pass, 160 skip, 1 fail:scripts/conventions.test.ts"waits marked fixed" onscripts/relay-new-pc-press-regression.ts:180, which fails onorigin/mainitself (1d71a71) and is fixed by test(relay): the new-PC press check polls for a join instead of a fixed wait #4547; this PR does not touch that file. The branch takes main in once test(relay): the new-PC press check polls for a join instead of a fixed wait #4547 lands.file-viewer-regression,files-panel-demo-regression,repo-diff-browser-qa,ui-regression,phone-worktree-sheet-regression, ...): not run locally since no component code changes; they run in this PR's Integration and browser job (CI runner image).