Skip to content

test: preserve data-file fallback alongside Yarn changes - #67

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
KingEmma7:test/data-file-fallback-default
Nov 1, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
KingEmma7:test/data-file-fallback-default

Conversation

@KingEmma7

Copy link
Copy Markdown
Contributor

Adds the ordinary data-file regression requested in #63 (comment). Production behavior is unchanged.

The synthetic repository has one source-importing test and one test that reads a CSV through a path supplied at runtime. The public CLI keeps the full suite when the CSV changes, both alone and alongside source and comment-only Yarn lockfile changes. The control with only source and lockfile changes remains selective. Actual Node test runs confirm the narrow subset passes while the full selection catches the changed CSV.

To check that the regression is meaningful, I temporarily changed changedPath === this.dependencyLockfile to this.dependencyLockfile in an isolated copy, leaking the lockfile allowance to other changed files. All 594 existing tests passed with that fault; the new case failed because the mixed change produced SELECTIVE instead of FULL. That mutation is not included here and is not a defect observed on main.

Validation on macOS, Node 24.11.1 / npm 11.6.2:

  • npm ci --offline --cache ../npm-cache --no-audit --fund=false
  • npm run typecheck
  • npm test — 595 passed, 0 failed or skipped
  • npm run build
  • npm run audit:boundary

Codex-assisted implementation and review; all fixtures are synthetic. This verifies the default reader policy through the CLI and actual test execution, not every possible runtime file-read pattern. Windows and other supported Node versions remain for hosted CI.

@adityankale190895
adityankale190895 merged commit 996518f into DiffCI:main Nov 1, 2026
7 checks passed
@adityankale190895

Copy link
Copy Markdown
Member

Merged — thanks @KingEmma7! This closes the allowNoReaders follow-up from #63 exactly as hoped. Running the real CLI and real node --test end to end makes it a much stronger regression than a unit-level check, and the mutation you described (all 594 existing tests still passing while this one failed) is a great demonstration that it covers a real gap.

The remaining follow-up from #63 is the unsupportedLayout probe: check the repository inventory before reading, so a yarn.lock change doesn't trigger up to 18 git show calls. If you'd rather take on something new, #49 (pnpm lockfile) follows the same pattern as your Yarn work.

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