Skip to content

chore(cli): stop leaving e2e scratch as untracked "fixtures" - #662

Merged
beyondnetPeru merged 1 commit into
mainfrom
chore/ignore-e2e-fixture-scratch
Aug 23, 2026
Merged

chore(cli): stop leaving e2e scratch as untracked "fixtures"#662
beyondnetPeru merged 1 commit into
mainfrom
chore/ignore-e2e-fixture-scratch

Conversation

@beyondnetPeru

Copy link
Copy Markdown
Contributor

src/sdk/cli/test/fixtures/ holds no authored fixture. Every directory in it — drift-repo, test-repo, empty-repo, arch-repo, sdlc-core, parity-test — is built by an fs.ensureDir in the e2e that uses it, and most are removed again in afterAll. Nothing under the path has ever been tracked.

They survive only when a run is interrupted before its teardown, and then sit as untracked forever. Today's working tree carried drift-repo/evolith.yaml and a drift-history.json stamped 2026-08-21T20:36, left by a run that died before afterAll.

That is the exact shape the root .gitignore already warns about two entries up — CLI artefacts that "se commitearon por accidente una vez y fosilizaron como si fueran taxonomia". This closes the same hole one directory over.

The comment names the trap in the other direction too: an authored fixture dropped in here would be ignored silently, so it belongs in test-project/ or needs a deliberate force-add.

Verified

Recreated the scratch tree (drift-repo/evolith.yaml + .evolith/drift-history.json) in a clean worktree:

  • git status --porcelain reports only src/sdk/cli/.gitignore
  • git check-ignore -v attributes it to the new rule, not to a broader accident
  • the tracked specs under src/sdk/cli/test/ are untouched by the pattern — it is scoped to test/fixtures/

🤖 Generated with Claude Code

`src/sdk/cli/test/fixtures/` holds no authored fixture. Every directory in
it — drift-repo, test-repo, empty-repo, arch-repo, sdlc-core, parity-test —
is built by an `fs.ensureDir` in the e2e that uses it, and most are removed
again in `afterAll`. Nothing under the path has ever been tracked.

They survive only when a run is interrupted before its teardown, and then
sit as untracked forever: today's tree carried drift-repo's generated
evolith.yaml and a drift-history.json stamped 2026-08-21. That is the exact
shape the root .gitignore already warns about two entries up — CLI artefacts
that "se commitearon por accidente una vez y fosilizaron como si fueran
taxonomia".

The comment names the trap in the other direction too: a real committed
fixture dropped in here would be ignored silently, so it belongs in
test-project/ or needs a deliberate force-add.

Verified by recreating the scratch tree: `git status` reports only this
file, `git check-ignore -v` names the rule, and the tracked specs under
`test/` are untouched by the pattern.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@beyondnetPeru
beyondnetPeru requested a review from a team as a code owner August 23, 2026 02:49
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@github-actions

Copy link
Copy Markdown

📊 Bilingual Coverage Impact

PR Changes

  • Paired EN/ES files modified: 0
  • New EN files needing ES translation: 0

Repository Coverage

Metric Value
Total EN files 527
Total ES files 497
Paired files 0
Coverage 0%

Good: All EN changes have ES counterparts.


Generated by GitHub Actions

@beyondnetPeru
beyondnetPeru merged commit da323db into main Aug 23, 2026
50 checks passed
@beyondnetPeru
beyondnetPeru deleted the chore/ignore-e2e-fixture-scratch branch August 23, 2026 03:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant