Skip to content

fix(ci): finish release E2E with bounded parallel shards - #133109

Merged
steipete merged 1 commit into
mainfrom
codex/frv-repo-e2e-parallel
Aug 30, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/frv-repo-e2e-parallel

Conversation

@steipete

@steipete steipete commented Aug 30, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where full release verification exhausted the repository E2E job's 90-minute deadline before completing Control UI coverage. In the failed release-check run, setup took nine minutes and all four Gateway partitions passed over the next 49 minutes. The standalone agent-plugin Gateway test passed, then UI cases were still passing when GitHub cancelled the job. This was sequential workload exceeding the job budget, not a hung test.

Why This Change Was Made

The reusable workflow now schedules the existing commands as nine matrix jobs: four native Gateway shards, four duration-weighted Control UI shards, and the standalone agent-plugin Gateway test. The matrix runs at most six jobs at once and drains every row after a failure. Each row retains the selected source SHA, full private-QA build, Chromium and sandbox prerequisites, existing worker limits, and 90-minute deadline. Local pnpm test:e2e is unchanged.

The workflow owns this scheduling problem. No product code, test assertions, exclusions, retries, or timeouts were weakened. Existing Vitest discovery and sequencers still own membership. Shared build artifacts were deliberately not introduced: the normal CI artifact profile is not interchangeable with this full private-QA build. The tradeoff is nine builds and eight additional jobs per invocation. Full release callers use GitHub-hosted runners, adding no Blacksmith registrations; standalone Blacksmith dispatches can register nine runners, with six concurrent. The live organization registration bucket had all 10,000 registrations available during this change.

Also fixes three adjacent runner assertions that could silently match a later job because their regex crossed job boundaries. They now inspect the parsed owning jobs and preserve the existing 32/32/8-core assignments.

User Impact

No runtime or configuration behavior changes. Maintainers receive independent failures and complete E2E results without waiting for Gateway and UI suites to run sequentially. Actual elapsed-time improvement still needs the fresh full hosted run after landing; no speedup number is claimed yet.

Evidence

  • The prior terminal log records 1,776 passing Gateway tests across 199 files, the successful standalone agent-plugin test, and 909 passing UI case records before cancellation. The one observed UI quota failure was separately repaired in fix(ui): preserve selected session ownership in the composer #133085.
  • Using Vitest 4.1.11's actual discovered specifications and configured sequencers on frozen product commit 868d728005f3d0b3e5b7719d70ec205013ed086f: Gateway partitions are 50/50/50/49 files and exactly match all four original hosted partitions. UI partitions are 81/82/82/82 files. Both unions equal their complete inventories with zero duplicate or omitted files. This was collection-only proof, not a full test pass.
  • The existing workflow guard fails against the prior sequential job and passes with the matrix. It checks all shard commands, unique job names, failure draining, concurrency, selected source, worker limits, and prerequisites.
  • 500 focused workflow, runner, and release evidence contract tests passed (two pre-existing skips). Workflow security/structure checks and the complete changed-file gate passed, including test-root typechecking and scripts lint. A private pnpm fixture also verified shard arguments reach the UI script's final Vitest command.
  • Independent managed Codex review passed on the final four-file diff with no actionable P0/P1/P2 findings.
  • Production runtime LOC: +0/-0. Workflow: +25/-1; tests: +36/-13; documentation: +15/-0. The workflow growth expresses the fixed matrix using native Actions scheduling; no new planner or runtime path.

Provenance: the sequential command is present in the frozen failing source. The original introduction of the timeout is not attributed to a commit; growth in aggregate suite time exposed it. The existing runner sizes are intentional and unchanged.

ClawSweeper disposition: no correctness or security findings. Its hosted-matrix rank-up move will be completed immediately after landing in a fresh all-group Full Release Validation pinned to the landed tooling commit and frozen product commit above. I am choosing the review's post-merge integration option under the operator's autonomous landing request, rather than running a duplicate full E2E matrix before the required main-lineage tooling pin exists. The exact-head PR CI gate remains required before merge; no release or publication is authorized or performed. Hosted nine-row completion and timing are still pending and will be attached when observed.

Landed as 00f8d76e573402e818a7bb67c73aa2a0c250fdab after exact-head CI and all 128 reported checks passed. The fresh all-group full verification is now running with that tooling commit and product 868d728005f3d0b3e5b7719d70ec205013ed086f; evidence reuse is disabled and all package/Telegram coverage is enabled. Its result and nine-row timings are pending.

Validation correction: the isolated 868d728 assembly was rejected by the unchanged source-Telegram trust gate before its Telegram build. Its diagnostic collector continues, but it cannot supply a green full result. The authoritative replacement is full run 33297344670, using the earliest existing main commit containing all landed repairs, b7f745ced2b4562a456ef8757f556f2d100beaab, and the same pinned tooling 00f8d76e573402e818a7bb67c73aa2a0c250fdab. That source is not byte-equivalent to the isolated assembly; the replacement runs every group fresh with no evidence reuse. The unchanged Telegram provenance check passed before dispatch. A focused MiniMax run on the replacement also completed both model routes through prompt/read/exec/image after the earlier run saw explicit provider refusals; no prompt, assertion, retry, or timeout change was made.

Hosted matrix proof is complete: all nine rows in release checks 33296719912 passed on Code 868d728005f3d0b3e5b7719d70ec205013ed086f and landed Tooling 00f8d76e573402e818a7bb67c73aa2a0c250fdab. The complete six-concurrent wave ran from 06:23:32Z to 07:04:09Z: 40m37s, versus the previous combined job cancelling at 90m14s while still executing UI coverage. This fulfills the nine-row rank-up proof; it is not a green full-release claim, since that parent independently failed the unchanged Telegram provenance gate. The replacement main-ancestor candidate still runs all groups fresh.

Row Result Job duration
Agent plugin Gateway Passed 7m59s
Gateway 1/4 Passed 17m47s
Gateway 2/4 Passed 20m10s
Gateway 3/4 Passed 20m49s
Gateway 4/4 Passed 18m55s
UI 1/4 Passed 22m45s
UI 2/4 Passed 22m19s
UI 3/4 Passed 20m53s
UI 4/4 Passed 21m29s

@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S maintainer Maintainer-authored PR labels Aug 30, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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 Aug 30, 2026
@clawsweeper

clawsweeper Bot commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 2:15 AM ET / 06:15 UTC.

ClawSweeper review

What this changes

This PR runs existing Gateway, Control UI, and agent-plugin release E2E commands as nine bounded parallel jobs and documents the resulting CI behavior.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep open for normal maintainer handling. The patch appears to replace the current sequential release E2E invocation with a complete, bounded matrix without a blocking correctness finding; a hosted run remains the relevant integration confirmation.

Priority: P2
Reviewed head: ecf51aed83992a2e3bee13a51911a874915a1a06

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A narrow, well-guarded workflow scheduling repair with no identified functional or security defect.
Proof confidence 🌊 off-meta tidepool Not applicable: This is a member-authored CI workflow PR, so the external-contributor proof gate does not apply; the supplied prior-run trace and focused workflow tests support the diagnosis, while a hosted post-change run remains the automation integration check.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This is a member-authored CI workflow PR, so the external-contributor proof gate does not apply; the supplied prior-run trace and focused workflow tests support the diagnosis, while a hosted post-change run remains the automation integration check.
Evidence reviewed 7 items Current-main behavior remains sequential: Current main still runs the combined sequential repository E2E command in the reusable job, so the central scheduling problem is not already solved.
Introduced matrix preserves the job boundary: The PR adds nine static matrix commands, retains the selected-SHA checkout, two-worker setting, private-QA build, browser setup, sandbox setup, and the 90-minute per-job limit.
Existing command owners retain test membership: The combined script already delegates separately to Gateway, agent-plugin Gateway, and UI E2E commands; the PR schedules those established entry points rather than introducing another test selector.
Findings None None.
Security None None.

How this fits together

The reusable release workflow checks out a selected revision, builds a private QA environment, then runs repository E2E coverage before release validation proceeds. This change affects only how those existing E2E commands are scheduled and reported.

flowchart LR
A[Release caller] --> B[Selected source revision]
B --> C[Reusable E2E workflow]
C --> D[Gateway test shards]
C --> E[Control UI test shards]
C --> F[Agent-plugin Gateway test]
D --> G[Release validation results]
E --> G
F --> G
Loading

Before merge

  • Resolve merge risk (P1) - This changes release automation fanout; static guards cannot replace the first hosted exact-head invocation confirming that all nine jobs start, retain complete coverage, and report independently.
Agent review details

Security

None.

PR surface

Tests +23, Docs +15, Config +24. Total +62 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 36 13 +23
Docs 1 15 0 +15
Config 1 25 1 +24
Generated 0 0 0 0
Other 0 0 0 0
Total 4 76 14 +62

Review metrics

Metric Value Why it matters
Production versus test LOC production runtime +0/-0; workflow +25/-1; tests +36/-13; docs +15/-0 The production growth is declarative GitHub Actions scheduling and workflow-contract coverage; no user runtime code changes.

Merge-risk options

Maintainer options:

  1. Verify the hosted matrix before merge (recommended)
    Run the reusable release E2E workflow against the exact head and confirm all nine named jobs complete with no omitted or duplicated test surface.
  2. Accept scheduled-run validation
    Merge based on the guarded workflow structure and use the next scheduled release run as the integration confirmation.

Technical review

Best possible solution:

Retain the reusable-workflow matrix and confirm its first hosted release invocation completes all nine rows with the expected per-surface results.

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

Yes. Current main still runs the sequential repository E2E command, and the supplied failed release-run evidence identifies its 90-minute job deadline as the observed failure; this read-only review did not rerun that workload.

Is this the best way to solve the issue?

Yes. Scheduling belongs in the reusable workflow while the existing package commands and Vitest configurations continue to own discovery and shard membership; adding a second custom test planner would create duplicate ownership.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 98fe750bd258.

Labels

Label changes:

  • add P2: This repairs release-validation reliability with limited direct user impact.
  • add merge-risk: 🚨 automation: The PR changes the release workflow from one sequential job to a nine-row GitHub Actions matrix.
  • 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 is a member-authored CI workflow PR, so the external-contributor proof gate does not apply; the supplied prior-run trace and focused workflow tests support the diagnosis, while a hosted post-change run remains the automation integration check.

Label justifications:

  • P2: This repairs release-validation reliability with limited direct user impact.
  • merge-risk: 🚨 automation: The PR changes the release workflow from one sequential job to a nine-row GitHub Actions matrix.
  • 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 is a member-authored CI workflow PR, so the external-contributor proof gate does not apply; the supplied prior-run trace and focused workflow tests support the diagnosis, while a hosted post-change run remains the automation integration check.

Evidence

What I checked:

  • Current-main behavior remains sequential: Current main still runs the combined sequential repository E2E command in the reusable job, so the central scheduling problem is not already solved. (.github/workflows/openclaw-live-and-e2e-checks-reusable.yml:1078, 98fe750bd258)
  • Introduced matrix preserves the job boundary: The PR adds nine static matrix commands, retains the selected-SHA checkout, two-worker setting, private-QA build, browser setup, sandbox setup, and the 90-minute per-job limit. (.github/workflows/openclaw-live-and-e2e-checks-reusable.yml:1038, ecf51aed8399)
  • Existing command owners retain test membership: The combined script already delegates separately to Gateway, agent-plugin Gateway, and UI E2E commands; the PR schedules those established entry points rather than introducing another test selector. (package.json:1919, ecf51aed8399)
  • Shard routing is bounded at the existing test owners: The Gateway wrapper treats an explicit shard as one Vitest invocation, while the UI configuration supplies its duration-weighted sequencer only when Vitest has a shard configuration. (scripts/run-vitest.mts:637, ecf51aed8399)
  • Workflow contract coverage: The changed guard test asserts the exact nine commands, unique names, failure draining, concurrency cap, selected source, and retained prerequisites; the package-acceptance test now parses each owning job before checking runner assignment. (test/scripts/ci-workflow-guards.test.ts:4822, ecf51aed8399)
  • Release callers use hosted runners: The reusable workflow-call input defaults to GitHub-hosted runners, and the scheduled release caller does not override that input; the documentation's registration-budget distinction matches those contracts. (.github/workflows/openclaw-live-and-e2e-checks-reusable.yml:449, ecf51aed8399)

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Capture the first hosted exact-head release E2E result showing all nine matrix rows complete.

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 merged commit 00f8d76 into main Aug 30, 2026
171 checks passed
@steipete
steipete deleted the codex/frv-repo-e2e-parallel branch August 30, 2026 06:20
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 31, 2026
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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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