test(host-service): reduce git subprocesses when preparing fixtures
PR
2h ago+13+13+01234567890123456789-5-5-0123456789
What & why
Each temporary repository spawned three git config processes before its initial commit. Write the same repository-local identity and signing settings in one append, then stage the files for each fixture commit in one git add invocation. The tests still exercise real repositories and commits.
How I tested it
- On this branch, macOS arm64 with Bun 1.4.3 and TERM=dumb: from packages/host-service,
bun test test/integration/project-setup.integration.test.ts test/integration/sparse-checkout.integration.test.ts— 13 pass, 0 fail. - This patch was also part of the combined macOS verification for #9625: all 30 repository test tasks passed in one uncached run, with default workers and timeouts. Repo-wide lint and typecheck passed on that combined checkout.
Checklist
- Conventional PR title
- Lint and typecheck passed on the combined verification checkout
- Allow maintainer edits
- Signed CLA
Summary by cubic
Reduces the number of git subprocesses spawned while preparing test fixtures in packages/host-service.
- Replaces three separate
git configcalls with a single append to the repository's config file. - Stages all files for a fixture commit in one
git addinvocation instead of one per file.
Summary by CodeRabbit
- Tests
- Improved test Git fixture setup and file staging reliability.