Framework: an exact selector for a fixed-seed unit (Rerun lines are coarse -t filters today)

Open
#78 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
testing

Research direction

Start with how ORACLE_UNIT is read for a random unit during path replay in oracle-property.ts (assertReplayUnit) and oracle-environment.ts, then find where the fixed-seed Rerun line is built. Add an ORACLE_FIXED_UNIT selector read the same way, with an oracle RED/GREEN test written first. Done when a Rerun line for Q"1 runs only that unit and not Q21.

Written by the indexing model from the issue text.

Description

Follow-up from #58 (Windows CI). A failing fixed-seed unit prints a Rerun command that is a coarse -t filter: a sibling test whose name matches the same anchored pattern also runs. Example: a unit named fixture Q"1 replay and a sibling fixture Q21 replay share a filter that a regular-expression wildcard in the name can match.

The framework has no selector for a fixed-seed unit. ORACLE_UNIT is read only for a random unit during a path replay (oracle-property.ts assertReplayUnit, oracle-environment.ts), so a fixed unit cannot be selected exactly by an environment variable.

Proposed: a framework selector for a fixed-seed unit (for example ORACLE_FIXED_UNIT, read the same way as ORACLE_UNIT), with a Rerun line that uses it, and an oracle RED/GREEN for it (framework changes are oracle-first, P9). Acceptance: a Rerun line for Q"1 runs that unit only, and not Q21.

Recorded as a Limit on #58 until this lands.

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from TanStack/oracles

All issues in TanStack/oracles

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.