Repository navigation
perf(test): remove obsolete structural snapshots - #23777
Conversation
|
| @@ -1721,7 +1721,6 @@ | |||
| "src/main/git/remove-worktree-branch-cleanup.test.ts": 163, | |||
| "src/main/git/remove-worktree-clean-preflight.test.ts": 125, | |||
| "src/main/git/remove-worktree.test.ts": 159, | |||
| "src/main/git/repo-api-parity.test.ts": 194, | |||
| "src/main/git/repo-branch-conflict-batched-probe.test.ts": 73, | |||
There was a problem hiding this comment.
Deleted test timing remains Removing the timing for
repo-api-parity.test.ts leaves a 504 ms entry for the also-deleted terminal-pane-hook-order-parity.test.ts. Sharding still works, but that obsolete value is included when calculating the fallback weight for tests without timings, including the new quick-command test. Please remove the remaining stale entry so the baseline reflects the discovered suite.
7892a6f to
599c34f
Compare
There was a problem hiding this comment.
ℹ️ Minor suggestions only.
Reviewed changes
- Removed
TerminalPanestructural snapshots — deletedterminal-pane-hook-order-parity.test.ts(hook-order hash/count and extracted-file census) and its AST helperrefactor-hook-contract.test-support.ts; moved the sole behavioral check (quick-command host work deferred until the context menu opens) verbatim to a newterminal-pane-quick-command-initialization.test.ts. - Removed the
repoexport-surface snapshot — deletedrepo-api-parity.test.ts, which pinnedObject.keys(repo)rather than behavior. - Trimmed dead task-page helper exports — dropped
TASK_PAGE_REFACTOR_SOURCE_FILES,readTaskPageRefactorSourceFamily,readFlattenedTaskPageHookFacts,readFlattenedTaskPageHookOrder, and the extracted-files set fromtask-page-source-family.test-support.ts. Verified no remaining references repo-wide; the retainedreadTaskPageSource/readTaskPageSourceFamilyare still used by four task-page tests. - Converted the first Claude trust-dialog
describeto fake timers —vi.useFakeTimers()withadvanceTimersByTimeAsync, mirroring the pre-existing seconddescribethat already uses fake timers onmain. All 11 scenarios and the15_000/6_500budgets are retained, andpromise.catch(() => {})is attached before advancing so the expected timeout cannot surface as an unhandled rejection.
One leftover: the timing entry for the deleted terminal-pane-hook-order-parity.test.ts remains (ci-shard-timings.json:7352), noted inline.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏
| @@ -1721,7 +1721,6 @@ | |||
| "src/main/git/remove-worktree-branch-cleanup.test.ts": 163, | |||
| "src/main/git/remove-worktree-clean-preflight.test.ts": 125, | |||
| "src/main/git/remove-worktree.test.ts": 159, | |||
| "src/main/git/repo-api-parity.test.ts": 194, | |||
There was a problem hiding this comment.
This removes the timing entry for the deleted repo-api-parity.test.ts, but the entry for the other test deleted in this PR is still present at line 7352:
"src/renderer/src/components/terminal-pane/terminal-pane-hook-order-parity.test.ts": 504,It's harmless — ci-shard-timings.md documents that deleted files never enter discovery, so it can't affect balancing — but it contradicts the PR's goal of leaving no references to removed tests. Worth deleting in this pass.
There was a problem hiding this comment.
ℹ️ No new changes — the new head is content-identical to the previously reviewed one.
Reviewed changes
- New head
599c34fversus the prior reviewed head7892a6f: the PR diff is byte-identical (the commit was rebuilt with no content change), so there is nothing new to review. - The single finding from the prior review still stands at
599c34f:config/scripts/ci-shard-timings.json:7352lists the deletedterminal-pane-hook-order-parity.test.ts. Harmless for shard balancing (deleted files never enter discovery), but inconsistent with the siblingrepo-api-parity.test.tsentry this PR removed. Not repeated inline.
DeepSeek Flash (free via Pullfrog for OSS) | 𝕏

ELI5
CI spent several seconds checking old refactor details and waiting on real clocks. This cleanup removes tests that only preserved historical implementation shape and makes the remaining transcript checks deterministic.
What Changed
repoexport enumeration snapshot; git behavior remains covered by the git test suite.Why
The removed tests asserted implementation structure or export enumeration rather than user-visible behavior. They created maintenance work and could fail during harmless refactors. The timer conversion keeps the same 11 scenarios but avoids waiting 6.5–15 seconds for real poll timeouts.
Testing
Visual Proof
N/A — test-only cleanup.
Linked Issue
N/A — internal CI performance work.
Review
The deleted snapshots did not exercise runtime behavior. The retained source-boundary and behavioral tests continue to cover quick-command initialization, task-page draft handling, and git behavior.
Checklist