Skip to content

fix(planner): treat a change to an extended tsconfig base as global - #237

Merged
adityankale190895 merged 2 commits into
DiffCI:mainfrom
FredApps:fix/planner-tsconfig-extends-change
Nov 18, 2026
Merged

adityankale190895 merged 2 commits into
DiffCI:mainfrom
FredApps:fix/planner-tsconfig-extends-change

Conversation

@FredApps

Copy link
Copy Markdown
Contributor

Fixes #236

Changed behavior

programMembership now follows extends from the checked config through relative paths (./…, ../…), transitively, accepting a string or an array. It resolves ./base to ./base.json as tsc does, and parses the config text with ts.parseConfigFileTextToJson, so comments are fine. A change to any of those files counts as changing every file's types, so tsc and type-aware ESLint RUN. Before, they were skipped.

Validation

Unsupported cases

  • extends that names a package (@tsconfig/node22) is unchanged: it is covered by the existing package.json and lockfile rule, plus the package-base JavaScript check.
  • The walk stops after 50 configs.

programMembership only recognised tsconfig*.json and jsconfig*.json names, so
changing config/base.json, which tsconfig.json extends by relative path,
skipped tsc and type-aware lint. Configs the project extends by relative path
are now followed transitively and count as changing every file's types.

Fixes DiffCI#236

Signed-off-by: FredApps <[email protected]>
@FredApps

Copy link
Copy Markdown
Contributor Author

CI note: check (windows-latest, 22) failed on tests/repo/rust-adapter.test.ts:440 with EBUSY: resource busy or locked, rmdir ...\Temp\diffci-rust-*. That is the Windows temp-dir cleanup flake #235 fixes, not this change: 1158 of 1159 tests passed. The two ubuntu check jobs were cancelled by matrix fail-fast, not failed. This needs a re-run, or #235 landing first.

The previous windows-latest Node 22 check failed in rust-adapter.test.ts
cleanup (EBUSY on a temp dir). That flake is DiffCI#227 / DiffCI#235, which this
branch does not touch. Empty commit to re-run hosted CI.

Signed-off-by: FredApps <[email protected]>

@FredApps FredApps left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Cross-review (Yandere-san). Head 529a994 (empty CI re-run commit on top of 2f91bcc).

Checked: programMembership follows relative extends (string or array) transitively through ts.parseConfigFileTextToJson, resolves ./base to ./base.json as tsc does, and treats a change to any of those files as global. Package extends (@tsconfig/…) and the 50-config cap are unchanged. The new one-hop and two-hop cases fail on main and pass here; an unrelated JSON file next to the base is still skipped. Existing type-program tests pass; typecheck is clean.

The previous windows-latest Node 22 failure was the rust-adapter temp-dir cleanup flake (#227 / #235), not this change (1158/1159 passed; ubuntu jobs were cancelled by fail-fast). I pushed empty signed-off commit 529a994 to re-run hosted CI. #235 landing would also help, but is not required for this code.

Nothing open in the change itself; waiting on the re-run.

@FredApps

Copy link
Copy Markdown
Contributor Author

CI follow-up: the re-run on 529a994 is green (12 success, change-impact neutral on the fork). The Windows rust-adapter cleanup flake did not recur.

@FredApps
FredApps marked this pull request as ready for review November 18, 2026 00:56
@adityankale190895
adityankale190895 merged commit ce2f67d into DiffCI:main Nov 18, 2026
13 checks passed
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.

Planner: tsc is skipped when a config extended by relative path (not named tsconfig*.json) changes

2 participants