Skip to content

perf(ci): shard full release repository E2E - #127142

Closed
vincentkoc wants to merge 3 commits into
mainfrom
perf/frv-e2e-shards
Closed

vincentkoc wants to merge 3 commits into
mainfrom
perf/frv-e2e-shards

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

Related: #127014

What Problem This Solves

Resolves a problem where release repository E2E built once and then ran Gateway, agent-plugin Gateway, and UI coverage serially in one job. A late Gateway failure could consume nearly an hour and prevent the other suites from running.

Why This Change Was Made

The workflow now builds one private-QA runtime artifact, runs four Gateway shards, agent-plugin Gateway, four UI shards, and real-Gateway UI independently, then preserves the existing validate_repo_e2e aggregate gate. A versioned target capability manifest enables the sharded contract for mixed frozen target/tooling SHAs; older or invalid targets use the legacy path.

Artifact producers and consumers bind exact IDs, digests, run attempts, target/tooling SHAs, safe extraction, and trusted harness validation. The six repository-E2E Node setup callers are restore-only under the current cache-authority contract; Playwright remains restore-only and the aggregate gate owns no cache.

The shared repository-E2E runtime now uses the canonical split declaration build (tsdown-ai, tsdown-packages, and tsdown-unified) plus the plugin-SDK declaration/export gates. This preserves package compatibility proofs without falling back to the slow singular tsdown graph.

User Impact

Release qualification should collect complete repository E2E failures in one pass and reduce this lane from roughly 55 minutes toward 15-25 minutes without removing coverage.

Evidence

  • Exact head: a190f4d5c247a2d55aa6d947e65c08a1998feca8, based on main at e66d7c5cac65fa9391904648eb81861276bc5725.
  • Focused workflow, capability, build-profile, and artifact tests: 415 passed, 2 skipped. The only combined-run retry was the offline pnpm hard-link cache guard; its exact focused retry passed.
  • Updated build-profile contract: 54 passed.
  • Package compatibility proof with the declaration-complete prebuilt runtime: 1 passed.
  • Actionlint, YAML/JSON parsing, targeted formatting, shell syntax, script lint, script erasability, git diff --check, privacy scan, and local structured autoreview passed.
  • Cache-authority guards prove exactly six restore callers, restore-only Playwright caches, a cache-free aggregate, and preserve the repository-wide four-writer invariant.

Hosted Proof

  • Sharded proof at prior head: https://github.com/openclaw/openclaw/actions/runs/32484143871
    • Capability routing selected the sharded graph; the legacy job skipped.
    • Four UI shards, agent-plugin Gateway, real-Gateway UI, OpenShell, runtime preparation, and sandbox preparation passed.
    • All four Gateway shards ran with fail-fast disabled; the aggregate waited for every lane and correctly reported only gateway=failure.
    • One failure class was owned by this PR: the shared runtime omitted declarations required by the package compatibility E2E. The current head fixes that producer contract.
    • Remaining Gateway failures are target-code regressions or current test drift, not sharding exclusions; examples include stale embedded-run mocks, reply-dispatch publication, onboarding agent-name requirements, heartbeat declarations, subagent lifecycle timing, and Codex auth migration state.
  • Legacy compatibility proof against frozen target 225aa5a1782325a9ad4e543947b1ff7659a60cce: https://github.com/openclaw/openclaw/actions/runs/32484152197
    • The capability manifest was absent, so only the legacy job ran and all sharded jobs skipped.
    • OpenShell passed. The legacy suite independently reproduced overlapping target-code failures before its Vitest worker exited unexpectedly.
    • The aggregate waited for the legacy lane and correctly reported only legacy=failure.
  • Corrective exact-head sharded proof: https://github.com/openclaw/openclaw/actions/runs/32494803571
    • Completed in 30m49s. Only this invalidated surface was restarted; the legacy routing proof remains valid.
    • Runtime preparation passed in 7m56s with the declaration-complete split graph. The @openclaw/ai packed-package install/typecheck passed in Gateway shard 3, clearing the PR-owned missing-declaration failure.
    • All four UI shards, agent-plugin Gateway, real-Gateway UI, OpenShell, runtime preparation, and sandbox preparation passed.
    • All four Gateway shards ran to completion with fail-fast disabled and retained target-code/test failures: subagent lifecycle retry/grace, Telegram ingress coalescing, stale embedded-run mocks, unavailable Codex harness registration, ClawHub search expectations, Codex auth canonical-store assertions, OpenAI compaction replay, and onboarding agent-name requirements.
    • The aggregate waited for every lane and reported only gateway=failure; runtime, sandbox, agent-plugin, UI, and real-Gateway UI were success, while legacy was skipped.

Exact-head ClawSweeper found no actionable source-level defect. The PR remains draft for maintainer review because current-target Gateway regressions are outside this workflow-performance branch.

@clawsweeper

clawsweeper Bot commented Aug 21, 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 scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Aug 21, 2026
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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. labels Aug 21, 2026
@clawsweeper

clawsweeper Bot commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 4, 2026, 1:48 AM ET / 05:48 UTC.

ClawSweeper review

What this changes

The branch changes release repository-E2E validation from one serial job to capability-gated parallel Gateway and UI lanes using validated shared runtime and sandbox artifacts plus a legacy fallback.

Merge readiness

⛔ Blocked before merge - 5 items remain

Keep open for release-owner review: this protected maintainer draft is dirty against current main, while merged #134746 already covers the shared-artifact direction but may not intentionally retain this draft’s frozen-target capability fallback.

Priority: P2
Reviewed head: a190f4d5c247a2d55aa6d947e65c08a1998feca8
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch has focused guards and hosted lane evidence, but a dirty branch and later main rewrite prevent confidence in the merge result.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable to this MEMBER-authored CI PR; the linked exact-head hosted run is useful workflow evidence, but the required action is resolving the current-main integration rather than supplying contributor proof.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable to this MEMBER-authored CI PR; the linked exact-head hosted run is useful workflow evidence, but the required action is resolving the current-main integration rather than supplying contributor proof.
Evidence reviewed 5 items Introduced workflow owner: The branch creates the shared private-QA runtime producer, records its immutable artifact tuple, and binds consumers to it before sharded E2E execution.
Capability routing and aggregate coverage: The workflow guard tests assert the four Gateway shards, four UI shards, trusted artifact validation, legacy fallback, and one aggregate gate; a separate test executes the capability-routing shell script against capable, missing, and invalid target commits.
Merged related implementation on main: The merge commit for #134746 is reachable from origin/main. Its supplied PR context explicitly says it incorporated this draft’s build-sharing direction while using a different reusable producer/consumer design.
Findings None None.
Security None None.

How this fits together

Release qualification builds OpenClaw artifacts, runs repository E2E suites, and aggregates their outcomes before a release can proceed. This change alters the scheduling and artifact handoff between build producers, E2E consumers, and the aggregate gate.

flowchart LR
  A[Selected release ref] --> B[Capability validation]
  B --> C[Runtime and sandbox producers]
  C --> D[Gateway E2E shards]
  C --> E[Agent and UI E2E lanes]
  D --> F[Aggregate release gate]
  E --> F
Loading

Decision needed

Question Recommendation
Should release qualification retain this draft’s separate target capability manifest and legacy fallback after the merged reusable-artifact implementation, or should that implementation be the sole canonical path? Rebase a narrow compatibility follow-up: Keep only the frozen-target behavior that current main demonstrably lacks, then publish exact-new-head hosted evidence.

Why: The related merged PR explicitly incorporated the shared-artifact direction, but the local partial checkout cannot read current-main blobs to establish whether this draft’s distinct compatibility contract remains necessary.

Before merge

  • Resolve merge risk (P1) - Merging cannot be assessed from the supplied head: GitHub reports a dirty branch, the pinned test merge is unavailable, and current main substantially changed the same workflow and build-artifact surfaces after the related merge.
  • Resolve merge risk (P1) - The branch adds a target capability manifest and legacy execution path that the related main implementation appears not to use; retain it only if release owners still need mixed frozen-target/tooling behavior.
  • Complete next step (P2) - Rebase onto current main and obtain release-owner confirmation for any retained capability or legacy fallback path before merge.
  • Resolve maintainer decision - Resolve the maintainer decision shown above before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Tests +469, Config +763, Other +117. Total +1349 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 493 24 +469
Docs 0 0 0 0
Config 2 768 5 +763
Generated 0 0 0 0
Other 3 118 1 +117
Total 9 1379 30 +1349

Review metrics

Metric Value Why it matters
Production versus test delta production +886/-6; tests +493/-24 The substantial workflow/artifact expansion is purposeful CI infrastructure, but its post-merge interaction with the later workflow rewrite needs revalidation.

Stored data model

Persistent data-model change detected: database schema: .github/repo-e2e-capabilities.json, database schema: scripts/validate-repo-e2e-capability.mjs, serialized state: scripts/validate-repo-e2e-capability.mjs, unknown-data-model-change: scripts/validate-repo-e2e-capability.mjs. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Rebase and prove the remaining compatibility contract (recommended)
    Resolve the conflict against current main and demonstrate that the retained fallback is required for a concrete frozen-target scenario.
  2. Close in favor of the merged implementation
    Close this draft if release owners confirm that the merged reusable producer/consumer workflow is the intended replacement.

Technical review

Best possible solution:

Use the merged reusable artifact workflow as the baseline, then retain only a narrowly demonstrated frozen-target compatibility requirement in a rebased follow-up with exact-head hosted validation.

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

Not applicable: this is CI orchestration, and the relevant behavior is the supplied exact-head hosted workflow evidence rather than a user-reported reproduction.

Is this the best way to solve the issue?

Unclear: the shared-artifact approach is covered by merged current-main work, but only a source comparison after rebase can establish whether this draft’s capability and legacy paths remain the best solution.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 74569a1ff1e4.

Labels

Label justifications:

  • P2: This is a material internal release-qualification improvement without an established end-user runtime regression.
  • merge-risk: 🚨 compatibility: The branch changes selection between a new sharded contract and the legacy repository-E2E path for frozen target revisions.
  • merge-risk: 🚨 automation: The branch changes CI job topology, artifact transfer, integrity checks, and the final release gate.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: Not applicable to this MEMBER-authored CI PR; the linked exact-head hosted run is useful workflow evidence, but the required action is resolving the current-main integration rather than supplying contributor proof.

Evidence

What I checked:

  • Introduced workflow owner: The branch creates the shared private-QA runtime producer, records its immutable artifact tuple, and binds consumers to it before sharded E2E execution. (.github/workflows/openclaw-live-and-e2e-checks-reusable.yml:1010, a190f4d5c247)
  • Capability routing and aggregate coverage: The workflow guard tests assert the four Gateway shards, four UI shards, trusted artifact validation, legacy fallback, and one aggregate gate; a separate test executes the capability-routing shell script against capable, missing, and invalid target commits. (test/scripts/ci-workflow-guards.test.ts:4402, a190f4d5c247)
  • Merged related implementation on main: The merge commit for perf(release): shorten full verification critical paths #134746 is reachable from origin/main. Its supplied PR context explicitly says it incorporated this draft’s build-sharing direction while using a different reusable producer/consumer design. (0e6848e36751)
  • Current-main integration remains unproven: The PR is GitHub-dirty and no pinned test merge is available. Local tree comparison shows the related merged implementation changed the workflow, build profile, artifact helper, and removed this capability validator; current-main blobs could not be read because the partial clone required unavailable network access. (.github/workflows/openclaw-live-and-e2e-checks-reusable.yml, 74569a1ff1e4)
  • Required sibling Codex protocol check: Direct inspection of the sibling Codex checkout found only executor process-protocol definitions; this PR does not import, invoke, generate from, or claim compatibility with that protocol, so no dependency-specific Codex contract affects the workflow verdict. (codex-rs/exec-server-protocol/src/protocol.rs:19, 3ba0f711642a888aec92a611a3f3b2211157ff89)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: 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.

  • Rebase onto current main and prove the exact retained release-E2E behavior, including any frozen-target fallback.

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 (8 earlier review cycles)
  • reviewed 2026-08-21T09:54:52.659Z sha 1bdf315 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-21T12:59:13.481Z sha b646fb4 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-21T15:00:03.623Z sha a190f4d :: needs maintainer review before merge. :: none
  • reviewed 2026-08-21T15:34:13.022Z sha a190f4d :: needs maintainer review before merge. :: none
  • reviewed 2026-08-22T19:38:43.814Z sha a190f4d :: needs maintainer review before merge. :: none
  • reviewed 2026-08-22T19:50:49.303Z sha a190f4d :: needs maintainer review before merge. :: none
  • reviewed 2026-08-23T19:10:23.201Z sha a190f4d :: needs maintainer review before merge. :: none
  • reviewed August 24, 2026, 8:12 PM ET / August 25, 2026, 00:12 UTC sha unknown :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the perf/frv-e2e-shards branch from 1bdf315 to b646fb4 Compare August 21, 2026 12:53
@vincentkoc vincentkoc self-assigned this Aug 21, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head b646fb46d684d4404dfc78b12bf06a23fa657568 is rebased onto main at e66d7c5cac65fa9391904648eb81861276bc5725. The cache-authority integration and focused local proof are recorded in the PR body; hosted sharded and legacy-path proofs are in progress.

@clawsweeper

clawsweeper Bot commented Aug 21, 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 force-pushed the perf/frv-e2e-shards branch from b646fb4 to a190f4d Compare August 21, 2026 14:55
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Please review exact head a190f4d5c247a2d55aa6d947e65c08a1998feca8. The previous hosted proof found one PR-owned runtime artifact defect: package declarations were omitted from the shared repository-E2E runtime. This head switches that producer to the canonical split declaration graph and preserves the package compatibility proof.

@clawsweeper

clawsweeper Bot commented Aug 21, 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.

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 21, 2026
steipete added a commit that referenced this pull request Sep 1, 2026
* perf(release): shorten full verification critical paths

Share profile-specific repo E2E builds, balance package/update lanes, and route serial control jobs through the existing hybrid runner pool.

Build sharing follows the approach explored in #127142.

Co-authored-by: Vincent Koc <[email protected]>

* test(release): align control job runner assertions

* test(release): include control routing in candidate workflow coverage

---------

Co-authored-by: Vincent Koc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 1, 2026
)

* perf(release): shorten full verification critical paths

Share profile-specific repo E2E builds, balance package/update lanes, and route serial control jobs through the existing hybrid runner pool.

Build sharing follows the approach explored in openclaw#127142.

Co-authored-by: Vincent Koc <[email protected]>

* test(release): align control job runner assertions

* test(release): include control routing in candidate workflow coverage

---------

Co-authored-by: Vincent Koc <[email protected]>
@clawsweeper

clawsweeper Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: applying reviewed decision.

I am applying the reviewed decision for this pull request: perf(ci): shard full release repository E2E This is item 1/1 in the current shard. Shard 1/1.

This transient lease prevents a newer review from overlapping label, comment, or close mutations.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@vincentkoc

Copy link
Copy Markdown
Member Author

Closing as superseded by #133109, #134746, and #136127. Current shipped release validation provides bounded parallel shards, immutable shared build artifacts, retry reuse, and frozen-target compatibility.

@vincentkoc vincentkoc closed this Sep 4, 2026
@RomneyDa
RomneyDa deleted the perf/frv-e2e-shards branch October 22, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL 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