Skip to content

fix: name a tsconfig variant as TypeScript configuration instead of unknown - #155

Merged
adityankale190895 merged 1 commit into
DiffCI:mainfrom
tyza66:fix/141-tsconfig-variant-reason
Nov 17, 2026
Merged

adityankale190895 merged 1 commit into
DiffCI:mainfrom
tyza66:fix/141-tsconfig-variant-reason

Conversation

@tyza66

@tyza66 tyza66 commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Fixes #141.

A change to only tsconfig.base.json (the file a monorepo shares through extends) or a standalone
tsconfig.test.json fell back with Unknown changed file: <path>. Running everything is right — a
compiler configuration decides every file's types — but the reason read like a gap in DiffCI rather
than a decision, and these files are common.

What changed

  • CONFIG_PATTERNS gains tsconfig\.[^/]+\.json and jsconfig\.[^/]+\.json, anchored at the root.
  • toolConfigurationSubject names them, so the reason is
    Tool configuration changed: TypeScript configuration (tsconfig.base.json); full validation required.
  • The pattern is deliberately narrower than type-program.ts's tsconfig[^/]*\.json, as @Kin230k
    pointed out: tsconfig-paths.json is a package's config file and stays unknown. The root
    tsconfig.json keeps its existing generic configuration reason — this change moves no existing
    classification, it only adds the variants.

Fixtures (tests/repo/tsconfig-variant-reason.test.ts), asserting both halves as agreed in the
thread — every test still runs, and the reason names the file as a TypeScript configuration:

  • tsconfig.base.json beside a tsconfig.json that extends it, a standalone tsconfig.test.json, and
    one jsconfig.test.json: FULL, every test selected, nothing skipped, the named reason present, no
    Unknown changed file for that path.
  • tsconfig.json itself: still Configuration file(s) changed…, never the new reason.
  • tsconfig-paths.json: still Unknown changed file, which pins the matching boundary.

tests/repo/config-patterns.test.ts pairs the two new patterns with real file names in order and now
asserts tsconfig-paths.json matches nothing; release-files.json and the docs/using-diffci.md
Fallback reasons table move with it.

Validation

  • npm run typecheck, npm run audit:boundary (384 files) pass.
  • npm test: 1108 pass. The 9 failures are the Rust/Cargo selection tests and the Python end-to-end
    test, the same set main fails here (8–9 depending on the run, the shared temp fixtures race);
    tests/repo/python-adapter.test.ts passes when run alone, and nothing here touches an adapter.
  • No CHANGELOG edit; commits signed off.

Narrowing on extends stays a follow-up, as agreed.

…nknown

`tsconfig.json` changes were already configuration, but `tsconfig.base.json`
(the file a monorepo shares through `extends`) and per-target variants such as
`tsconfig.test.json` fell through to `Unknown changed file: …`. The full run is
right either way — a compiler configuration decides every file's types — but
the reason made a decision read like a gap in DiffCI.

`CONFIG_PATTERNS` gains `tsconfig\.[^/]+\.json` and `jsconfig\.[^/]+\.json`
anchored at the root, and `toolConfigurationSubject` names them:
`Tool configuration changed: TypeScript configuration (tsconfig.base.json);
full validation required`. The pattern is deliberately narrower than
`type-program.ts`'s `tsconfig[^/]*\.json`, which would also match the package
name `tsconfig-paths.json`; that name, and the root `tsconfig.json`, keep their
current reasons.

Fixes DiffCI#141

Signed-off-by: tyza66 <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 17, 2026 00:45

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@adityankale190895
adityankale190895 merged commit f9877ec into DiffCI:main Nov 17, 2026
13 checks passed
@adityankale190895

Copy link
Copy Markdown
Member

Thanks @tyza66, merged. The pattern is narrower than the one in type-program.ts, tsconfig-paths.json stays unknown, and the fixtures check both halves. That's exactly what #141 needed. The extends follow-up is still open if you want it.

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.

tsconfig.base.json and tsconfig.*.json changes fall back as an unknown file

3 participants