Skip to content

test(eval): actually isolate eval repositories - #253

Merged
angeloashmore merged 1 commit into
mainfrom
aa/isolate-eval-repos
Aug 4, 2026
Merged

test(eval): actually isolate eval repositories#253
angeloashmore merged 1 commit into
mainfrom
aa/isolate-eval-repos

Conversation

@angeloashmore

@angeloashmore angeloashmore commented Aug 3, 2026

Copy link
Copy Markdown
Member

Resolves:

Description

Evals were sharing a repo inadvertently. Each eval should be using its own repo. This fixes it.

Checklist

  • A comprehensive Linear ticket, providing sufficient context and details to facilitate the review of the PR, is linked to the PR.
  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

How to QA 1

Run the evals and check that each test creates a prismic-cli-isolated-* repository.

🤖 Generated with Claude Code

Footnotes

  1. Please use these labels when submitting a review:
    ❓ #ask: Ask a question.
    💡 #idea: Suggest an idea.
    ⚠️ #issue: Strongly suggest a change.
    🎉 #nice: Share a compliment.

The isolateRepo: true override in evals/it.ts had no effect: vitest's
extend() does not remap dependency references of fixtures defined in an
earlier layer, so the repo fixture still saw isolateRepo: false and every
eval ran against the shared repository. Evals polluted each other's state
(leftover previews, locales, and types), causing spurious failures.

Replace the dead override with it.scoped({ isolateRepo: true }), the one
vitest path that remaps fixture deps. It runs at module scope in
evals/it.ts, which re-executes during each eval file's collection, so
every eval test gets a throwaway repository.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@angeloashmore
angeloashmore force-pushed the aa/isolate-eval-repos branch from d8d1ff2 to bbac8eb Compare August 3, 2026 21:50
@angeloashmore
angeloashmore merged commit ef5dfb8 into main Aug 4, 2026
15 checks passed
@angeloashmore
angeloashmore deleted the aa/isolate-eval-repos branch August 4, 2026 01:14
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.

2 participants