Repository navigation
fix: name the tool configuration behind a fallback instead of "Unknown changed file" - #144
Conversation
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
…allback `.nvmrc`, `.node-version` and `.npmrc` decide which Node version is installed and how, so a change to one of them has to fall back to the full suite. It did, but the reason was `Unknown changed file: .nvmrc`, which reads like a gap in DiffCI rather than a decision. The three are now configuration, and the reason names them: `Tool configuration changed: Node version (.nvmrc); full validation required`. A recognised tool configuration keeps that reason even when some file happens to reference it, because a reader cannot prove which tests notice a change to the runner's settings. `.mocharc.*` follows in its own pull request, as the maintainer asked. Fixes DiffCI#142 Signed-off-by: tyza66 <[email protected]>
2725263 to
db40153
Compare
|
Narrowed to the first group, as you suggested: Worth flagging for that second PR: |
|
Hi @tyza66, thank you, this is merged. "Tool configuration changed: Node version (.nvmrc)" says what actually happened, and the fixture covering all three files in a real Jest project made it an easy review. Thanks too for claiming the issue first and splitting it the way we discussed. The Two small asks, both optional:
You'll also be listed on diffci.com/contributors. Tell me if you'd rather not be, or want a different name or link. |
Moves the bundled Core engine to a35ef31, so this release ships the contributor fixes merged since 0.3.49 (#144-#152). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: adityankale190895 <[email protected]>
Fixes #142, first group only (
.nvmrc/.node-version/.npmrc), as you suggested in the issue:.mocharc.*will follow in its own PR.A change to only one of these has to fall back to the full suite — each decides which Node version is installed and how. That was already right, but the reason was
Unknown changed file: .nvmrc, which reads like a gap in DiffCI rather than a decision.What changed
CONFIG_PATTERNS(src/git/git-diff.ts) gains.nvmrc,.node-versionand.npmrc.toolConfigurationSubject(src/repo/impact.ts) names what a file controls, and every fallback site that produced "Unknown changed file" now uses it:Tool configuration changed: Node version (.nvmrc); full validation required.applyGlobalRiskRulessplits named tool configuration out of the genericConfiguration file(s) changedsentence, so the reason a reader sees is the specific one rather than both.Fixture (
tests/repo/tool-config-reasons.test.ts) covers the three files in a Jest project: FULL mode, every test selected, nothing skipped, the named reason present, and noUnknown changed filefor the same path. All three fail onmainwithUnknown changed file.tests/repo/config-patterns.test.ts(the table pairing each pattern with a real file name) andrelease-files.json(the boundary audit requires every file to be listed) move with it.Validation
npm run typecheck,npm run build,npm run audit:boundary(376 files) all pass.npm test: the Cargo/Rust selection tests andPython repositories end to endfail on this machine. They also fail onmainwith the change stashed — 9 failures there, 8 or 9 here depending on how the shared temp fixtures race — andtests/repo/python-adapter.test.tspasses when run alone. Nothing here touches an adapter.tests/fallback-reasons-docs.test.tspasses: the new reason is in thedocs/using-diffci.mdFallback reasons table.One commit, signed off with
git commit -s.