Skip to content

Commit 59c99dc

Browse files
authored
Skip snapshot seed file commits (anomalyco#28405)
1 parent a8f7c5e commit 59c99dc

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

packages/opencode/test/snapshot/snapshot.test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ const initialize = Effect.fn("SnapshotTest.initialize")(function* (dir: string)
4444
const bContent = `B${unique}`
4545
yield* write(`${dir}/a.txt`, aContent)
4646
yield* write(`${dir}/b.txt`, bContent)
47-
yield* exec(dir, ["git", "add", "."])
48-
yield* exec(dir, ["git", "commit", "-m", "init"])
4947
return { aContent, bContent }
5048
})
5149

perf/test-suite.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ Repeated setup work, long sleeps/timeouts, serial integration tests, filesystem/
8585
| Oversized snapshot batch tests only need to cross the 100-file boundary | Reduced large diff/revert fixture sizes while keeping each case above the batch boundary | 4.32s | 3.66s | keep | Three affected snapshot tests; after median from three reruns (4.32, 3.66, 3.66) while still crossing the 100-file boundary. |
8686
| Prompt tests without LLM calls do not need the test LLM server | Added a no-server runner and moved obvious non-LLM prompt/shell cases to it | 25.41s | 21.03s | keep | Full prompt file after simplify pass median from three reruns (20.66, 21.03, 21.64); LLM-backed tests stay on original runner. |
8787
| CLI run subprocess cases can run independently | Marked `run-process.test.ts` subprocess cases concurrent | 11.87s | 4.13s | keep | Newest-dev single baseline; after median from three reruns (4.13, 4.17, 4.11). Each case has an isolated temp home and LLM port. |
88+
| Snapshot initialization does not need to commit seeded files in the source repo | Removed extra `git add`/`commit` from the snapshot test `initialize()` helper | 22.22s | 20.23s | keep | Newest-dev single baseline; after median from three reruns (20.23, 22.59, 20.11). Fixture still creates a git repo root commit. |
8889

8990
## Profiling Results
9091

0 commit comments

Comments
 (0)