Skip to content

fix(ci): reuse group exchange for hosted push plans - #157967

Merged
vincentkoc merged 1 commit into
mainfrom
fix/ci-hourly-group-exchange
Sep 25, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/ci-hourly-group-exchange

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Sep 25, 2026 •

Copy link
Copy Markdown
Member

Related: #157821

What Problem This Solves

Hosted push CI can exceed its job limit while compatible capacity remains in existing jobs.

User Impact

CI can retain complete test coverage without adding an avoidable job. No product runtime behavior changes.

Why This Change Was Made

Reuse the existing admission-checked group exchange already used for GitHub pull-request plans. The job cap, time budget, prerequisite and sibling-family constraints remain intact; hosted-tooling packing remains pull-request-only. Blacksmith and hybrid behavior is unchanged.

Evidence

  • Deterministic probes on two frozen inventories reduced 70 to 63 and 71 to 63 jobs while preserving each inventory's exact group and file descriptors. These snapshots do not guarantee future fit or workflow speedup.
  • C10 native proof covers the unchanged 199 planner cases, hosted-tail check, production lint and scripts types.
  • C11 focused renewal verifies the final paired fixture: both push/PR cases, test lint and root-test types passed. The other 199 cases were intentionally filtered. Both runs verified their source hashes; C10 and C11 are distinct proof inputs.
  • The approved head 2a32bde398534560f062d79f09daec4a21f190cd was checked again with the canonical planner in GitHub push mode, the workflow's release-only exclusions, and cap 70: 63 jobs, 185 groups, 10,816 files, 3.272 seconds planning time. The exact descriptor SHA-256 6db947f322cee04fdcc33455428657633591973a4c300bee74ded9dd5fc7d4a3 matches the original inventory; all jobs remain serial with at most ten groups. This satisfies the current-inventory evidence and rank-up request for the approved head; it is not a claim about later main inventories.
  • Measured changed-test command wall time: 10.358 seconds for the two corrected cases in C11 (199 intentionally filtered). The original full 201-case file took 112.101 seconds in C10; its unchanged-case evidence is retained separately.
  • Independent source review and fresh review of the signed candidate found no actionable defects.

Counts above come from native command receipts; a Testbox Actions status can reflect lease cleanup. Full hosted CI must pass before merge.

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

clawsweeper Bot commented Sep 25, 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 labels Sep 25, 2026
@clawsweeper clawsweeper Bot added 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. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Sep 25, 2026
@clawsweeper

clawsweeper Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 25, 2026, 3:16 AM ET / 07:16 UTC (Revision 2).

ClawSweeper review

What this changes

The branch enables the existing test-group exchange for GitHub-hosted push CI, adds paired push and pull-request planner coverage, and updates the runner documentation.

Merge readiness

✅ Ready for maintainer review

Keep open. Current main still lacks the hosted push optimization, and this focused PR supplies a distinct repair. I found no actionable patch defect.

Priority: P2
Reviewed head: 2a32bde398534560f062d79f09daec4a21f190cd

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A small owner-level change has paired contract coverage and specific current-inventory evidence, with no actionable defect found.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: The MEMBER-authored PR is exempt from the contributor proof gate. Its body reports an approved-head run of the canonical planner in hosted push mode with 63 admitted jobs and unchanged descriptors; the linked Testbox logs were unavailable to this reviewer, and full hosted CI remains a separate gate. No stored-data contract changes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The MEMBER-authored PR is exempt from the contributor proof gate. Its body reports an approved-head run of the canonical planner in hosted push mode with 63 admitted jobs and unchanged descriptors; the linked Testbox logs were unavailable to this reviewer, and full hosted CI remains a separate gate. No stored-data contract changes.
Evidence reviewed 7 items Introduced planner change: The introduced hunk enables the existing exchange for the GitHub runner backend; the verified introduced delta contains only the planner, its test, and runner documentation.
Exchange admission: The shared packer validates both complete replacement bins before committing an exchange.
Paired regression coverage: The new fixture covers hosted push and pull-request plans, exact group descriptors, the predicted time budget, serial execution, and the group-count limit.
Findings None None.
Security None None.

How this fits together

OpenClaw's Node test planner turns discovered tests and timing estimates into a bounded GitHub Actions job matrix. The workflow supplies the event mode and runner backend, then runs the emitted jobs.

flowchart LR
  A[Push or pull request] --> B[Test inventory and timings]
  B --> C[Node test planner]
  C --> D{Group admission and exchange}
  D --> E[Bounded job matrix]
  E --> F[GitHub Actions tests]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +45, Docs 0, Other +4. Total +49 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 46 1 +45
Docs 1 1 1 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 5 1 +4
Total 3 52 3 +49

Review metrics

Metric Value Why it matters
Reported hosted push fit 63/70 jobs; 185 groups; 10,816 files The approved-head inventory reported in the PR body fits the workflow cap while retaining the same group and file descriptors.

Technical review

Best possible solution:

Keep the shared admission-checked exchange in the Node planner and preserve complete test coverage within the hosted job cap as inventories change.

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

Yes. Current-main source shows why hosted push plans skip the exchange, and the paired fixture provides a focused planner path; this read-only review did not execute it.

Is this the best way to solve the issue?

Yes. Reusing the existing packer and its admission rules is the narrowest owner-level repair shown by the source.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 04fb3c8e35b3.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded CI-capacity repair with no reported product-runtime impact.
  • merge-risk: 🚨 automation: The changed planner determines CI matrix grouping, so a packing regression could affect test admission after merge.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The MEMBER-authored PR is exempt from the contributor proof gate. Its body reports an approved-head run of the canonical planner in hosted push mode with 63 admitted jobs and unchanged descriptors; the linked Testbox logs were unavailable to this reviewer, and full hosted CI remains a separate gate. No stored-data contract changes.

Evidence

What I checked:

  • Introduced planner change: The introduced hunk enables the existing exchange for the GitHub runner backend; the verified introduced delta contains only the planner, its test, and runner documentation. (scripts/lib/ci-node-test-plan.mts:4496, 2a32bde39853)
  • Exchange admission: The shared packer validates both complete replacement bins before committing an exchange. (scripts/lib/ci-node-test-plan.mts:3894, 2a32bde39853)
  • Paired regression coverage: The new fixture covers hosted push and pull-request plans, exact group descriptors, the predicted time budget, serial execution, and the group-count limit. (test/scripts/ci-node-test-plan.test.ts:4775, 2a32bde39853)
  • Current main remains distinct: The fetched main revision still passes the pull-request-only hosted-tooling condition to the exchange packer, so the central push behavior is not yet implemented there. (scripts/lib/ci-node-test-plan.mts:4504, 04fb3c8e35b3)
  • Workflow capacity contract: The CI workflow supplies a 70-row Node matrix limit outside pull-request mode. (.github/workflows/ci.yml:1914, 2a32bde39853)
  • Previous review request addressed: The prior ClawSweeper review requested a current-inventory hosted push plan. The subsequently updated PR body reports 63 of 70 jobs, 185 groups, and 10,816 files with an unchanged descriptor digest for the approved head. The linked Testbox run logs could not be opened through this review host's network allowlist; that inspection limit is not a contributor proof deficiency. (2a32bde39853)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • joshavant: 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-25T06:54:24.542Z sha 2a32bde :: blocked before merge. :: none

@vincentkoc
vincentkoc marked this pull request as ready for review September 25, 2026 07:08
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 25, 2026
@vincentkoc
vincentkoc merged commit 921b1df into main Sep 25, 2026
236 checks passed
@vincentkoc
vincentkoc deleted the fix/ci-hourly-group-exchange branch September 25, 2026 07:30
@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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦞 diamond lobster Very strong PR readiness with only minor 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.

1 participant