Skip to content

fix(ci): avoid full-suite fallback for Docker tooling changes - #148979

Merged
vincentkoc merged 3 commits into
mainfrom
fix/ci-paired-tooling-selection-20260915
Sep 16, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
fix/ci-paired-tooling-selection-20260915

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

Closes #148975

What Problem This Solves

Fixes full-suite CI fallback when Docker or isolated tooling tests belong to the existing paired group.

User Impact

Changed-test CI can select that complete canonical group instead of rejecting it and falling back broadly. Full/manual FRV and runtime product behavior are unchanged; no measured speedup is claimed.

Why This Change Was Made

Admit only the known Docker/isolated two-configuration descriptor and retain the whole group once. Its containing job, preparation, serial concurrency, two-worker limit, timing identity, and budget remain authoritative. Single-configuration groups keep their existing narrowing; unknown and ambiguous ownership still fails closed.

The changed-test self-coverage prerequisite landed through #148946 in baf188fe6b882550ac808b4288ca43a1a8368398. The delivery-cache integration preserves the changed private-QA test, all three consumers, and their preparation requirements.

Evidence

  • Two actual planner cases returned null before repair: direct Docker-tooling selection and the four changed paths from fix(e2e): use a maintained ClawHub install fixture #148902.
  • The corrected combined candidate passed all 233 tests across both full planner owners on the prior proof pin. Coverage includes all three backends, complete metadata, duplicate/mixed members, encoded plans, prerequisites, and refusal controls.
  • The three candidate files and production resolver are byte-identical to the independently reviewed combined proof. The prerequisite regressions remain intact alongside main's additional first-sign-in test and runtime prerequisite; that intervening owner change was reviewed. Canonical P0-P2 review completed with no actionable findings.
  • Script/test-root types, scoped lint, formatting, docs sanity, script erasability, coercion, Docker boundary, and raw HTTP/2 guards passed. Script, production, and full-tree export scans passed with zero entries.
  • The publication tree adopts the landed prerequisite and contains only the three reviewed files. Their bytes and dependency contracts are unchanged; the retained 233-test proof was not repeated and is not an exact-head test claim.
  • Exact-head CI is blocked by an inherited plugin-contract failure: https://github.com/openclaw/openclaw/actions/runs/34953200709/job/104329208829. Group B had 368 passes and one strict-equality failure in registry.contract.test.ts:191; expected Copilot objects lack two credentialOnly: true properties and the first channelLogin: {}. Group A passed all 759 tests. These owner expectations are outside this three-file patch and remain stale on the independently inspected main 140ae965.
  • The existing repair is test(plugins): align Copilot auth-choice registry expectations #148981, not yet adopted at that source check. This PR remains unmerged and unchanged while awaiting its adoption, followed by a justified base refresh and fresh exact-head CI/review. No duplicate repair, same-head retry, CI cancellation, or gate bypass was performed.
  • This is planning proof, not execution of emitted Docker/private-QA workloads. No live provider, full FRV, or new fixture installation was run.

@vincentkoc vincentkoc self-assigned this Sep 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 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 docs Improvements or additions to documentation scripts Repository scripts size: S maintainer Maintainer-authored PR labels Sep 15, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 15, 2026 09:33
@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 15, 2026
@clawsweeper

clawsweeper Bot commented Sep 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 10:46 PM ET / September 16, 2026, 02:46 UTC (Revision 2).

ClawSweeper review

What this changes

The PR lets precise CI selection retain the complete Docker and isolated-tooling test group, with regression coverage and routing documentation.

Merge readiness

✅ Ready for maintainer review

This remains a useful, focused fix: current main still rejects the paired tooling owner. No actionable patch defects were found, and the merged prerequisites do not supersede it.

Priority: P2
Reviewed head: 8d0568bbf196bc745213d7325cae7a3e052aba7d

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with meaningful planner regression coverage and no supported correctness or security findings.
Proof confidence 🌊 off-meta tidepool Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR. Captured validation exercises the planner's selection contract; it does not demonstrate execution of emitted Docker/private-QA workloads or a measured speedup.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The external-contributor proof gate does not apply to this MEMBER-authored PR. Captured validation exercises the planner's selection contract; it does not demonstrate execution of emitted Docker/private-QA workloads or a measured speedup.
Evidence reviewed 9 items Current main still has the reported restriction: The selected-test planner requires one configuration per canonical group and returns null when no unique group matches; the existing Docker/isolated owner has two configurations.
Narrow exception preserves the canonical owner: The introduced predicate matches only the named Docker/isolated pair. Selection still rejects ambiguous ownership and native shard arguments, and returns the complete existing group without changing its timing identity.
Real CI caller and executor contracts: CI calls the changed-test planner and chooses the compact fallback on null. The executor consumes each retained group's config array and intersects worker limits; this patch does not alter those execution contracts.
Findings None None.
Security None None.

How this fits together

OpenClaw's CI planner converts changed repository paths into test jobs. It preserves each test group's preparation, isolation, runner, and timing requirements before passing the plan to the test executor.

flowchart TD
  A[Changed repository paths] --> B[Resolve affected tests]
  B --> C[Match canonical test owners]
  C --> D[Retain complete Docker and isolated group]
  C --> E[Narrow supported single-config groups]
  C --> F[Fallback for unsupported selections]
  D --> G[CI test executor]
  E --> G
  F --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +171, Docs 0, Other +9. Total +180 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 178 7 +171
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 11 2 +9
Total 3 190 10 +180

Review metrics

None.

Technical review

Best possible solution:

Keep precise selection within the existing canonical planner, preserving complete paired configs and their execution metadata while retaining conservative fallback for unsupported owners.

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

Yes, source inspection establishes that selecting a Docker-tooling test reaches a two-config owner rejected by current main's single-config restriction. The supplied report describes failing planner calls; this review did not execute them.

Is this the best way to solve the issue?

Yes. Retaining the complete known pair reuses its established isolation and timing owner without generalizing support to arbitrary multi-config groups.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: Unnecessary broad CI fallback is a bounded developer-workflow defect with no demonstrated product-runtime outage.
  • 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 external-contributor proof gate does not apply to this MEMBER-authored PR. Captured validation exercises the planner's selection contract; it does not demonstrate execution of emitted Docker/private-QA workloads or a measured speedup.

Evidence

What I checked:

  • Current main still has the reported restriction: The selected-test planner requires one configuration per canonical group and returns null when no unique group matches; the existing Docker/isolated owner has two configurations. (scripts/lib/ci-node-test-plan.mts:2929, e853a4b9012d)
  • Narrow exception preserves the canonical owner: The introduced predicate matches only the named Docker/isolated pair. Selection still rejects ambiguous ownership and native shard arguments, and returns the complete existing group without changing its timing identity. (scripts/lib/ci-node-test-plan.mts:2912, 8d0568bbf196)
  • Real CI caller and executor contracts: CI calls the changed-test planner and chooses the compact fallback on null. The executor consumes each retained group's config array and intersects worker limits; this patch does not alter those execution contracts. (.github/workflows/ci.yml:1555, 8d0568bbf196)
  • Regression coverage matches the changed behavior: The inspected tests cover direct Docker selection, the fixture PR's changed paths, three backends, duplicate and mixed targets, complete job metadata, encoded descriptors, foreign-checkout refusal, unsupported targets, and private-QA preparation. No tests were executed during this read-only review. (test/scripts/ci-changed-node-test-plan.test.ts:174, 8d0568bbf196)
  • Captured proof and review continuity: The supplied body snapshot, sourceRevision cea0464919d8b7df263c087834cd94a7ccbc9f4bf2ebd3b3ad8be7b8ac0a4876, reports two failing planner cases before repair and 233 passing planner tests on a prior equivalent proof pin. It explicitly disclaims exact-head retesting and emitted-workload execution. The previous completed review covered the same head and retained no findings or published rank-up moves. (8d0568bbf196)
  • Related merged work is prerequisite or adjacent: GitHub verifies fix(ci): keep changed tests when selecting their consumers #148946 merged as baf188f; its changed-test self-coverage repair is already the introduction base. GitHub also verifies test(plugins): align Copilot auth-choice registry expectations #148981 merged as 2b8c9f1, resolving the separately reported Copilot assertion mismatch.

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: 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-15T10:07:39.622Z sha 8d0568b :: needs maintainer review before merge. :: none

@vincentkoc vincentkoc closed this Sep 16, 2026
@vincentkoc vincentkoc reopened this Sep 16, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@vincentkoc
vincentkoc merged commit fa67da6 into main Sep 16, 2026
222 of 225 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-paired-tooling-selection-20260915 branch September 16, 2026 02:57
@vincentkoc

Copy link
Copy Markdown
Member 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: 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.

[Bug]: Docker tooling changes trigger full-suite CI fallback

1 participant