Skip to content

fix(ci): stop skipping lint on changed root tests - #135123

Merged
steipete merged 1 commit into
mainfrom
steipete/autoqa-root-test-lint-20260901
Sep 1, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/autoqa-root-test-lint-20260901

Conversation

@steipete

@steipete steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

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.json inherits that same configuration, so native tsgolint discovery uses the intended source aliases and ambient declarations.

Both boundaries matter: Oxlint's --tsconfig controls 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.cts files within the canonical root-test program. Unchanged files, deleted files, fixtures, ordinary .mts/.cts files 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:

  • The final regression tests produced nine intended failures against the earlier divergent owners, then passed all 20 selected checks against the repaired owners with identical test-file hashes.
  • Real native semantic probes detected one versus eight intended Promise violations before/after the discovery repair. The passing form proves source aliases and ambient declarations in both .ts and .tsx, plus actual declaration-module project membership.
  • Explicitly passing the excluded Docker clients still produced diagnostics. The repaired changed-check flow proves those paths are not passed to lint, rather than assuming config exclusions suppress explicit input.
  • The complete six-file owner/sibling command passed 394 tests. Both typechecks, explicit source/test lint, and the actual nine-path changed gate passed. The gate included scripts lint over 844 files and root lint over the three changed test files.
  • Independent full source review closed the semantic-project discovery finding and its proof gap with no actionable P0-P3 findings. Separate restricted P0 autoreview was clean.

Current-main integration is committed as bc1b382bb3b0530b78015398dc15bf6ca60a870f, based on 833a38b92555cbbac7d8763b2a57378b12cdca90. 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:

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=1
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.json

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 afterEach cleanup ran successfully and left no fixture directories; no warning suppression or cleanup bypass was added.

@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review September 1, 2026 10:48
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation scripts Repository scripts size: M maintainer Maintainer-authored PR labels Sep 1, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 6:56 AM ET / 10:56 UTC.

ClawSweeper review

What this changes

The PR makes changed root TypeScript tests and support files run targeted type-aware lint using the canonical root-test TypeScript program.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep 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
Reviewed head: bc1b382bb3b0530b78015398dc15bf6ca60a870f

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-backed validation repair with direct command-boundary regression coverage and no identified correctness finding.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored tooling PR is exempt from the external-contributor proof gate. Its body reports direct changed-check execution and the source regression exercises that entrypoint, but this read-only review did not execute repository code.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored tooling PR is exempt from the external-contributor proof gate. Its body reports direct changed-check execution and the source regression exercises that entrypoint, but this read-only review did not execute repository code.
Evidence reviewed 7 items Introduced scheduling repair: The planner selects existing root-test source paths, filters them through the canonical TypeScript program, and schedules bounded targeted Oxlint commands.
Canonical membership boundary: The root-test program includes TypeScript sources and declaration modules while excluding fixtures and two built-artifact Docker clients; the changed path facts feed that boundary into lane selection.
Boundary regression coverage: The added test runs the actual changed-check script against one root test, a mixed all-lane input, and nine root-test paths, asserting failures before repair and bounded command batches after repair.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

  • Resolve merge risk (P1) - Direct TypeScript package-source inspection could not be completed because this dependency-less review checkout has no TypeScript package and outbound GitHub DNS is unavailable; this is a reviewer limitation, not an introduced defect.
  • Resolve merge risk (P1) - Exact-head CI was incomplete in the captured review context, so merge readiness is not yet established.
  • Complete next step (P2) - This active maintainer-authored PR has no mechanical repair finding; wait for exact-head CI and routine maintainer review.
Agent review details

Security

None.

PR surface

Tests +259, Docs +1, Other +44. Total +304 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 288 29 +259
Docs 1 1 0 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 4 49 5 +44
Total 9 338 34 +304

Review metrics

Metric Value Why it matters
Production versus test delta tooling source +44, tooling configuration -3, tests +262, docs +1 The added scheduling and canonical-membership check account for the production growth; regression coverage is substantially larger and directly exercises the changed command boundary.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #135104
Summary: This PR is the explicit candidate repair for the open issue describing the same missing root-test lint path.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Land the canonical root-test membership and bounded scheduling after exact-head CI confirms the supplied focused regression coverage.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best 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.

Labels

Label changes:

  • add P2: This repairs missing developer and CI validation for root tests without an application-runtime or channel-delivery impact.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored tooling PR is exempt from the external-contributor proof gate. Its body reports direct changed-check execution and the source regression exercises that entrypoint, but this read-only review did not execute repository code.

Label justifications:

  • P2: This repairs missing developer and CI validation for root tests without an application-runtime or channel-delivery impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored tooling PR is exempt from the external-contributor proof gate. Its body reports direct changed-check execution and the source regression exercises that entrypoint, but this read-only review did not execute repository code.

Evidence

What I checked:

  • Introduced scheduling repair: The planner selects existing root-test source paths, filters them through the canonical TypeScript program, and schedules bounded targeted Oxlint commands. (scripts/check-changed.mts:502, bc1b382bb3b0)
  • Canonical membership boundary: The root-test program includes TypeScript sources and declaration modules while excluding fixtures and two built-artifact Docker clients; the changed path facts feed that boundary into lane selection. (test/tsconfig/tsconfig.test.root.json:8, bc1b382bb3b0)
  • Boundary regression coverage: The added test runs the actual changed-check script against one root test, a mixed all-lane input, and nine root-test paths, asserting failures before repair and bounded command batches after repair. (test/scripts/changed-lanes.test.ts:753, bc1b382bb3b0)
  • Current-main comparison: Current main retains the earlier finish-plan implementation without root-test lint scheduling and the prior discoverable test configuration, so the central problem is not already implemented there. (scripts/check-changed.mts:497, 4602a60032f4)
  • Verified merge applicability: The locally recorded test merge has the stated base and PR-head parents, and its delta contains the same nine introduced paths. (b610d4698188)
  • Feature-history routing: The earlier merged root-test typecheck lane is commit provenance for the affected feature area; the supplied related PR context identifies its merged PR as chore(tooling): typecheck root test/** with a dedicated tsgo lane #104475. (fe261b0f59aa)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Maintainer review and focused proof are complete for bc1b382bb3b0530b78015398dc15bf6ca60a870f.

The remaining items in ClawSweeper's review are addressed:

  • Dependency-source inspection: I directly inspected installed TypeScript 6.0.3's lib/typescript.js: getParsedCommandLineOfConfigFile at line42600, parseJsonConfigFileContentWorker at43312, and getFileNamesFromConfigSpecs at43926. These expand inherited roots/options/errors without constructing a semantic Program. The independent full source reviewer separately checked the same contract. Tagged Oxlint1.79.0 and tsgolint7.0.2001 source inspection confirms that --tsconfig affects import resolution, while native semantic-project discovery and explicit-file lint selection are separate boundaries. Actual native fixtures verify both boundaries, including TS/TSX ambient and source-alias diagnostics and excluded Docker inputs.
  • Exact-head CI: CI run33499311972 completed successfully, and the required openclaw/ci-gate is SUCCESS on this head. The earlier draft run was skipped normally and is not used as passing evidence.
  • Routine maintainer review: complete. Fresh restricted P0 autoreview and independent full P0-P3 review have no actionable findings or required local proof gaps. The native review artifacts are bound to this exact PR/head and validated. No re-review is needed for this unchanged head.

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 OPENCLAW_VITEST_MAX_WORKERS=1):

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=1

Exact 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.json

The 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.

@steipete
steipete merged commit ebd3f9a into main Sep 1, 2026
222 of 230 checks passed
@steipete
steipete deleted the steipete/autoqa-root-test-lint-20260901 branch September 1, 2026 11:09
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: changed-file checks omit type-aware lint for root tests

1 participant