Skip to content

test: skip unused compiler setup in routing fixtures - #147194

Merged
steipete merged 1 commit into
mainfrom
codex/skip-unused-native-fixtures
Sep 13, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/skip-unused-native-fixtures

Conversation

@steipete

@steipete steipete commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The changed-lane routing table creates a complete native compiler installation for each of its 16 cases, although those cases only inspect planned commands and verify excluded paths.

User Impact

Reduces unnecessary CI fixture copying while retaining all tests, assertions, CLI calls, and worker limits. Production behavior is unchanged.

Why This Change Was Made

The shared fixture now creates its ordinary tools directory. The real lint table and native discovery case explicitly prepare their own native compiler, preserving the checkout-local input boundary established in #138742 and the canonical lint coverage from #135123. Plan-only fixtures need no compiler installation; their planner resolves JavaScript TypeScript from the script's checkout.

Evidence

An original-source probe ran four existing cases in source order. The three routing fixtures spent 1.5235 seconds of 1.8051 seconds of setup copying unused native compiler packages. CLI execution and cleanup were measured separately; this is local setup attribution, not a prediction of total CI savings.

All 20 affected cases pass: three real lint failure/repair cases, one native discovery case, and all 16 routing cases. Targeted test-root types, lint, formatting, and diff checks pass. Independent P2 review found no actionable findings. The change adds three test lines and removes one; production LOC is unchanged.

Exact-head CI passed for 7f6c7c2, including the required startup corpus.

@steipete steipete self-assigned this Sep 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 13, 2026
@steipete
steipete marked this pull request as ready for review September 13, 2026 16:45
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 13, 2026
@clawsweeper

clawsweeper Bot commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 13, 2026, 1:08 PM ET / 17:08 UTC (Revision 2).

ClawSweeper review

What this changes

The PR avoids copying native compiler packages into routing-test fixtures while retaining local compiler installations for tests that execute lint or inspect native projects.

Merge readiness

✅ Ready for maintainer review

This remains a useful, narrowly scoped optimization absent from current main. No actionable correctness findings remain; the compiler-dependent coverage is preserved, and exact-head CI passed.

Priority: P3
Reviewed head: 7f6c7c225fcac4999057fe7142989683a2cc33b4

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, well-supported test optimization with preserved coverage and no actionable findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The maintainer-authored test-only PR is exempt from external-contributor runtime proof; its affected fixture cases have reported passing validation and verified successful exact-head CI.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The maintainer-authored test-only PR is exempt from external-contributor runtime proof; its affected fixture cases have reported passing validation and verified successful exact-head CI.
Evidence reviewed 7 items Verified introduced change: The pinned merge-base-to-head diff moves compiler preparation from the shared fixture into the real lint table and native discovery test; it changes no assertions or production code.
All fixture consumers accounted for: The three callers comprise three real lint cases, one discovery case, and 16 routing cases. The first two callers explicitly install the compiler; routing cases use dry-run planning and execute excluded paths without selecting native lint.
Planner does not need the fixture compiler: Root-test membership uses JavaScript TypeScript resolved relative to the checker module. Dry-run returns before executing planned commands. The unchanged compiler fixture helper preserves existing lint links when installing into an ordinary local tools directory.
Findings None None.
Security None None.

How this fits together

OpenClaw’s changed-file checker selects validation commands from changed paths. These fixtures verify command routing, excluded files, and real type-aware lint behavior.

flowchart TD
  A[Changed test paths] --> B[Shared fixture setup]
  B --> C{Test needs compiler?}
  C -->|No| D[Routing and exclusion checks]
  C -->|Yes| E[Install fixture compiler]
  E --> F[Real lint and project discovery]
  D --> G[Existing assertions]
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +2. Total +2 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 3 1 +2
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 3 1 +2

Review metrics

Metric Value Why it matters
Compiler fixture preparation 20 → 4 installations across the affected cases Removes unnecessary package copying from 16 routing cases while retaining all compiler-dependent coverage.

Technical review

Best possible solution:

Keep compiler preparation explicit at the tests that consume it while preserving the existing routing and lint assertions.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a product bug: source inspection confirms unnecessary compiler setup in routing fixtures, and the PR supplies setup measurements.

Is this the best way to solve the issue?

Yes. Moving preparation to the two compiler-consuming callers is a narrow solution that retains the existing helper, isolation boundary, and assertions.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 47cd6033a1fd.

Labels

Label justifications:

  • P3: This is a low-risk test setup optimization with no application behavior change.
  • 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: The maintainer-authored test-only PR is exempt from external-contributor runtime proof; its affected fixture cases have reported passing validation and verified successful exact-head CI.

Evidence

What I checked:

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.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-13T16:51:56.276Z sha 7f6c7c2 :: needs maintainer review before merge. :: none

@steipete
steipete merged commit 80a1260 into main Sep 13, 2026
116 checks passed
@steipete
steipete deleted the codex/skip-unused-native-fixtures branch September 13, 2026 17:10
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Sep 13, 2026
* commit '201f11afefdb19a9c75e9d3542bf7425c80df7a7': (141 commits)
  fix: keep catalog discovery scoped and execution lazy (#147159)
  fix: serialize reclamation worker shutdown with foreground writes (#147178)
  test(sessions): cover abrupt committed transcript recovery (#143984)
  fix: stop transcript storms during context overflow recovery (#147202)
  fix: reduce CPU overhead for small history and usage reads (#147205)
  fix: resume tasks after tools finish and the model times out (#147203)
  refactor(scripts): share SQLite reliability message waits (#146900)
  feat(exec): configure approval reviewer thinking and fastMode (#147192)
  test: remove redundant Bonjour module headers (#146981)
  refactor: share streaming media tail boundary update (#146989)
  refactor(tui): classify resume candidates once (#146983)
  improve: skip unused toast dismissal work (#147196)
  fix(linux): recover saved remote connections without replacing active sessions (#146047)
  fix: doctor stays silent when Windows state dir is under OneDrive (#123720)
  feat: announce successful Daybreak retries (#147146)
  feat(code-mode): reuse results across code cells (#147154)
  refactor(test): reuse CLI plugin fixture writer (#147186)
  test: skip unused compiler setup in routing fixtures (#147194)
  test: reuse LINE webhook runtime fixture (#146710)
  fix(code-mode): check automation and process result types (#147143)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS 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.

1 participant