Skip to content

fix(ci): avoid full tooling runs for single-config selections - #195147

Merged
vincentkoc merged 1 commit into
mainfrom
perf/ci-tooling-subset-20261108
Nov 8, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
perf/ci-tooling-subset-20261108

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

PRs selecting one isolated tooling or Docker test still execute both complete tooling configs. A one-file selection expands to 18 test files.

User Impact

CI runs the selected files under their existing config and isolation policy. This changes internal CI scheduling only. Full validation and mixed-config fallback coverage remain intact.

Why This Change Was Made

Narrow the existing paired owner only when all selected files resolve to one canonical config. Reuse the existing exact-file projection and timing identity; keep the complete owner for mixed configs, unknown ownership, and build-artifact descriptors. No runner sizing, cancellation, or bail policy changes.

Evidence

  • Matched deterministic replay of the real pathset from test: make Docker build interruption readiness durable #185034 on base 4c1101322dcb715cfddf46ef1a8c1146fb61c730: tooling files 18 → 1 (17 fewer; 94.44% of this owner). Total Node jobs 4 → 4; every other job/group identical. Config exclusions are applied consistently, so the denominator is 18, not the 19 raw include entries.
  • This is selected test-file volume, not measured runtime or billing savings. No standalone benchmark or extra CI campaign was run. The older six-path locale change in https://github.com/openclaw/openclaw/actions/runs/42210879841 remains mixed on current source and does not benefit from this patch.
  • Both single-config cases and the existing QA companion projection fail against the original full-pair behavior; the mixed-config safety case passes. Candidate complete changed-plan suite: 95 passed, 101.53s Vitest / 102.74s wrapper on a local Node runtime. This existing file exercises full planner ownership and packing contracts; no test-execution timing saving is inferred from its duration.
  • Tooling test typecheck, scoped lint, formatting, and diff checks passed. Added exactly 31 test lines with a separate 31-line allocation for the distinct owner and mixed-config regressions. Ratchet: 6,576,292 lines / 6,576,323 ceiling.
  • Independent read-only review and local ClawSweeper review of 4c1101322dcb715cfddf46ef1a8c1146fb61c730..633e6a26f7daab797573f99a0238bde018defe6f: no actionable correctness or security findings.

Download recovery integration

Rebased the identical selector patch onto the landed Bun recovery f89b123d7fee after ordinary CI 42470587131 hit the old release downloader's repeated HTTP504 failures before Node tests. This is a source update to include the fix, not a retry of the unchanged run. Dependency inputs and touched selector/config/executor sources on the base are unchanged. Earlier 95-test proof remains labeled prior-head; new focused selection/fallback proof and exact-head CI cover the refreshed branch.

At refreshed head 4b1508daf1e8, four focused selection/mixed-fallback/QA-companion cases pass (6.65s Vitest / 7.68s wrapper). Stable patch ID is unchanged: 2d89fa9bbd2fcbd45cfe2b6f06470fc7e9a039af. Current-head hosted CI is pending.

Final CI attribution

Exact-head CI 42471249265 completed all ten selected Node jobs successfully. Its sole failed nonaggregate job was extension lint stripe 3, where two parity subshards failed to stage Bun before checking source. The CI gate failed downstream.

The actual tested merge 24acd936f6b9 has ordered parents f89b123d7fee and this exact PR head 4b1508daf1e8. Workflow, parity resolver, and stager sources are byte-identical to the baseline. The preparation repair has now landed in #195155 as ea133a4a4d40, with all eight corresponding extension lint subshards passing in normal CI. Landing attribution retains the failed CI result and does not waive independent security or review requirements.

The 18→1 file-execution reduction remains a deterministic replay result for the documented single-config input; no new whole-PR runtime or billing saving is claimed.

@vincentkoc vincentkoc self-assigned this Nov 8, 2026
@clawsweeper

clawsweeper Bot commented Nov 8, 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 scripts Repository scripts size: S labels Nov 8, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 8, 2026
@clawsweeper

clawsweeper Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR narrows selected tooling tests to their canonical config while preserving complete mixed-config coverage.

Example: CI selects test/scripts/docker-build-helper.test.ts.

  • Before: The complete Docker and isolated tooling configs execute.
  • After: Only the selected file executes under vitest.tooling-docker.config.ts.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-supported patch with meaningful planner regressions; supplied validation is planner-level, and broad hosted tests are skipped on the draft.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; its supplied evidence exercises planner selection and packing rather than emitted test execution.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Contributors wait for unrelated tooling tests when CI selects files belonging to only one config.
Reason: The maintainer-authored direction removes concrete unnecessary work without adding configuration, changing resource policy, or weakening mixed-config coverage.

Merge readiness

✅ Ready for maintainer review

Keep this useful maintainer-authored draft open: current main still expands single-config selections to the complete tooling pair, and the focused patch has no actionable correctness or security findings.

Priority: P2
Reviewed head: 633e6a26f7daab797573f99a0238bde018defe6f

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The supplied evidence does not show an emitted single-config group executing through the CI shard executor.
Agent review details

How this fits together

The CI planner converts selected test paths into executable shard groups; the shard executor consumes their configs, file includes, environment, and process policies.

flowchart LR
  A[Changed paths] --> B[Canonical test ownership]
  B --> C[Selected shard planner]
  C --> D[Single config projection]
  C --> E[Complete mixed pair]
  D --> F[CI shard executor]
  E --> F
Loading

Technical review

Best possible solution:

Use the existing projection owner for single-config selections and retain the complete paired owner whenever selected files span both configs.

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

Current main's unconditional isWholeToolingPair guard demonstrably retains both complete configs for a canonical single-file selection; the PR reports a matching planner replay, but this read-only review executed no target code.

Is this the best way to solve the issue?

The patch is the smallest complete fix: reuse existing config resolution, exact-file projection, and timing identity while preserving artifact and mixed-pair boundaries.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 3a25991e37c4.

Provenance checked

  • Complete paired-tooling retention changes intended behavior with a stated reason (24100ea: The allocation projection retained opaque paired owners to preserve canonical process and inventory boundaries; the earlier paired-descriptor repair prevented broad full-suite fallback.)
  • Private-QA companion routing expectations keeps the original intent (3ae944b: Moved existing repository-backed routing cases into the shared planner suite without changing behavior; the revised expectation preserves preparation and worker contracts while reflecting narrower selection.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit b71324b adds scripts/lib/ci-node-test-plan.mts:1656 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b71324b29114; files: scripts/lib/ci-node-test-plan.mts)

PR surface

Tests +31, Other +3. Total +34 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 36 5 +31
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 8 5 +3
Total 3 44 10 +34

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: Avoids unnecessary CI test execution with limited impact outside internal scheduling.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Avoids unnecessary CI test execution with limited impact outside internal scheduling.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 8, 2026, 4:41 AM ET / 09:41 UTC.

@vincentkoc
vincentkoc marked this pull request as ready for review November 8, 2026 10:14
@vincentkoc
vincentkoc force-pushed the perf/ci-tooling-subset-20261108 branch from 633e6a2 to 4b1508d Compare November 8, 2026 10:23
@vincentkoc
vincentkoc enabled auto-merge (squash) November 8, 2026 10:29
@vincentkoc
vincentkoc disabled auto-merge November 8, 2026 10:52
@vincentkoc
vincentkoc merged commit 8027d2d into main Nov 8, 2026
116 of 122 checks passed
@vincentkoc
vincentkoc deleted the perf/ci-tooling-subset-20261108 branch November 8, 2026 10:56
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

vincentkoc added a commit that referenced this pull request Nov 8, 2026
…tooling-lint-selection-20261108

* commit 'b0e90e6a4b359fff7756698067fdce4758b1907b': (38 commits)
  fix(android): Talk button demands a realtime provider on a native Talk setup (#191194)
  chore: trace first-run Gateway work and verify later replies (#195185)
  fix(knowledge): keep deleted messages out of reply previews (#195126)
  fix(agents): preserve streamed replies across Gateway restarts (#195164)
  perf(ci): reuse SDK transport path boundaries (#195180)
  fix(sandbox): avoid pauses for unchanged command checkpoints (#195120)
  fix(test): make retention checks portable across runtimes (#195091)
  fix(knowledge): clarify temporal kind filters (#194995)
  improve: reduce Gateway allocation while draining SQLite receipts (#195129)
  fix: reduce streaming CPU after reply and voice directives (#195145)
  fix: reduce Markdown reparsing during streamed tool-call checks (#195161)
  fix: restore the main dead-export gate (#195158)
  improve(ci): pack small UI selections into fewer jobs (#195107)
  fix(muse): quota and sign-in failures end with no reply (#195148)
  fix: allow first release push with shipped patch bytes (#195174)
  fix(ci): narrow single-config tooling selections (#195147)
  fix(packaging): reject incompatible prepublish plugin cohorts (#195152)
  fix(ci): prepare verified Bun before parity checks (#195155)
  fix: Incognito agent turns stall before execution (#195005)
  fix: credentialed search and speech providers work without picking a provider (#195169)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: S 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