Repository navigation
fix(ci): stop skipping lint on changed root tests - #135123
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 6:56 AM ET / 10:56 UTC. ClawSweeper reviewWhat this changesThe PR makes changed root TypeScript tests and support files run targeted type-aware lint using the canonical root-test TypeScript program. Merge readinessKeep open for normal maintainer landing review: current main still lacks the root-test lint scheduling, while the verified test merge applies this focused repair cleanly. No introduced correctness or security defect was found; exact-head CI remains in progress. Priority: P2 Review scores
Verification
How this fits togetherThe changed-file checker maps modified paths to focused validation commands for local development and CI. Root test files should receive both their typecheck lane and type-aware lint, while fixtures and files outside the canonical program remain excluded. flowchart LR
A[Changed paths] --> B[Path classification]
B --> C[Changed-check planner]
C --> D[Canonical root-test program]
D --> E[Targeted type-aware lint]
C --> F[Other validation lanes]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +259, Docs +1, Other +44. Total +304 across 9 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the canonical root-test membership and bounded scheduling after exact-head CI confirms the supplied focused regression coverage. Do we have a high-confidence way to reproduce the issue? Yes—source comparison shows the former planner did not schedule root-test lint, and the added regression exercises the actual changed-check command for single, mixed, and nine-file cases. The review did not execute repository code because this is a read-only review. Is this the best way to solve the issue? Yes—the repair derives explicit lint targets from the canonical root-test program instead of duplicating exclusion rules or widening broad lint, which preserves the intended membership boundary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4602a60032f4. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer review and focused proof are complete for The remaining items in ClawSweeper's review are addressed:
Local integrated proof passed399 tests across six files and two sequential shards (5+394), including current main's Swift-routing and CI-selector controls. The focused semantic/routing regression passed20 tests. Both root/scripts typechecks, explicit4source/3test type-aware lint, committed whitespace check and the actual nine-path changed gate passed. That gate linted852 script files and exactly3 changed root-test files. All14 recorded commands completed with exit0, unchanged source and no outer timeout/signals. Exact owner/sibling command (with node scripts/run-vitest.mjs test/scripts/changed-lanes.test.ts test/scripts/changed-path-facts.test.ts test/scripts/changed-lanes-generated-extension-lint.test.ts test/scripts/run-oxlint.test.ts test/scripts/oxlint-config.test.ts src/scripts/ci-changed-scope.test.ts --reporter=verbose --maxConcurrency=1Exact changed gate: node scripts/check-changed.mjs --base 833a38b92555cbbac7d8763b2a57378b12cdca90 -- docs/ci.md scripts/changed-lanes.mts scripts/check-changed.mts scripts/lib/changed-path-facts.mjs scripts/run-oxlint.mts test/scripts/changed-lanes.test.ts test/scripts/oxlint-config.test.ts test/scripts/run-oxlint.test.ts test/tsconfig.jsonThe warning-only temp-helper migration aid was inspected rather than suppressed: this fixture uses the existing registered suite cleanup owner, failed removals propagate, cleanup hooks passed, and no fixture directories remained. Application/Gateway/channel behavior is unchanged. This is real local tooling/CLI proof plus hosted CI, not a claim of a live-channel or full-application run. The root repair is one canonical membership/discovery flow; no copied exclusion policy, whole-tree lint fallback, dependency change or baseline relaxation is included. |
|
Merged via squash.
|
Closes #135104
What Problem This Solves
Fixes an issue where developers running the changed-file checks could get a successful result without type-aware lint running on changed TypeScript tests and support files under
test/. The omission also affected mixed changes that selected the all-lane plan, and a bounded targeted path must not silently drop the ninth or later file.Why This Change Was Made
The changed-check finalizer now schedules every existing changed root-test member in bounded batches. It uses the existing canonical root-test configuration to select members rather than copying its exclusion rules. The discoverable
test/tsconfig.jsoninherits that same configuration, so native tsgolint discovery uses the intended source aliases and ambient declarations.Both boundaries matter: Oxlint's
--tsconfigcontrols import resolution, not the native semantic project's discovery, and explicitly naming a file bypasses TypeScript project exclusions for lint selection. The repair therefore aligns native project discovery and explicit target membership. It removes the divergent test-config include/exclude lists and avoids unnecessary plugin-declaration preparation for source-backed root lint. Plugin lint retains its declaration prerequisite.Provenance: the dedicated root-test lane was added as a typecheck-only lane in the root-test typecheck change, authored and merged by @steipete on July 11, 2026. The raw parent-to-commit patch confirms that shape; it does not establish that lint coverage was removed in that change. The later TypeScript migration carried that behavior forward.
User Impact
Developers get real type-aware lint for changed
.ts,.tsx,.d.mts, and.d.ctsfiles within the canonical root-test program. Unchanged files, deleted files, fixtures, ordinary.mts/.ctsfiles outside that program, and the existing excluded built-artifact Docker clients are not swept into targeted root lint. There is no application-runtime or channel behavior change, new dependency, lint rule, product configuration option, or baseline relaxation.The change adds 44 net tooling-source lines, removes 3 net tooling-configuration lines, adds 262 net test lines, and adds one documentation line. The source growth supplies the previously missing bounded lint scheduling and canonical membership check; it does not introduce a second semantic checker or a copied exclusion policy.
Evidence
Pre-integration native proof used the repository-pinned Node 24.15.0, TypeScript 6.0.3, Oxlint 1.79.0, and tsgolint 7.0.2001:
.tsand.tsx, plus actual declaration-module project membership.Current-main integration is committed as
bc1b382bb3b0530b78015398dc15bf6ca60a870f, based on833a38b92555cbbac7d8763b2a57378b12cdca90. The rebase was conflict-free and range-diff preserved the repair. All 14 integrated commands passed on the unchanged commit, including the normal frozen installation refresh. The complete six-file run passed 399 tests (5 + 394), adding main's three Swift-routing and two CI-selector controls to the earlier total. The focused regression passed 20 tests; both typechecks, explicit lint and the actual nine-path changed gate passed. The integrated gate linted 852 script files and exactly the three changed root-test files.Exact integrated commands:
Fresh restricted P0 review and independent full P0-P3 source review of the integrated commit are clean, with no outstanding required local proof gaps. Hosted CI and the normal native landing gates remain required. A warning-only temp-helper migration aid flags the new fixture's use of the existing registered suite helper. Its canonical
afterEachcleanup ran successfully and left no fixture directories; no warning suppression or cleanup bypass was added.