oracle-gaps: mutant copies resolve bare imports from --package, not from the original file (288 setup-errors)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 40/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- testing-qa, tooling
Research direction
Start at check.mjs near line 1007, where mutant copies are said to resolve imports like the original file, and at the wrapper plugin's resolveId and load hooks that serve those copies. Reproduce by running oracle-gaps against the tests/realtime-oracles oracle file, which should fail with 'Cannot find package fast-check'. Done means copies resolve bare imports from the original file's directory or baseline refuses early, and setup errors are excluded from the gap count and get their own directive.
Written by the indexing model from the issue text.
Description
Reported from an adopter's first session, at c58b0c2. Not yet reproduced here.
Problem. 288 of 388 mutants were setup-error: "Cannot find package 'fast-check' imported from tests/realtime-oracles/src/.oracle-gaps-5482-10-ordered-live-results.oracle.test.ts". The baseline loads the same import from tests/realtime-oracles/node_modules/fast-check. The comment at check.mjs:1007 says copies are placed beside the file "so that its imports resolve as the file's do". But the copy is virtual: the wrapper plugin serves it through resolveId and load. So its bare imports seem to resolve from --package, the repo root, which has no fast-check.
Two more problems follow from that:
- setup errors count toward the headline gap count, which came out as 307 gaps;
- they get the directive "Run an owner test that loads this module", which doesn't apply.
Proposal.
- Resolve a copy's imports from the original file's directory. Alternatively, refuse at baseline when the oracle file's imports don't resolve from
--package. - Either way, keep setup errors out of the gap count. A harness failure stops the run and is never charged to a mutant (decision LA-v20-1, cleanup plan Phase 2 A2). Give them their own directive.
This issue was written by Isaac.
- Dominant language
- JavaScript
- Stars
- 5
- Forks
- 1
- Avg merge
- 6h
- Merged PRs (30d)
- 56
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TanStack/oracles
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
TanStack/oracles#120 · 1 comment ·
Maintainers usually reply within 1 day
-
windows
Difficulty 4/5 3-5 days Newbie friendliness 48/100
TanStack/oracles#118 · 1 comment ·
Maintainers usually reply within 1 day
All issues in TanStack/oracles
Similar issues
-
Edit: Telemante [YT]Openchannels:edit check:passed
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
fix
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
idean3885/claude-ops-agent#1083 ·
Maintainers usually reply within 1 day
-
入群码过期Open
Difficulty 1/5 Under an hour Newbie friendliness 84/100
aliyun/ai-agent-handbook#29 · 1 comment ·
-
docs documentation need-triage SaaS
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
apache/cloudstack#14719 ·
Maintainers usually reply within 1 day