Skip to content

perf(ci): shorten release verification tails - #134824

Merged
steipete merged 7 commits into
mainfrom
codex/frv-faster-second-pass
Sep 1, 2026
Merged

steipete merged 7 commits into
mainfrom
codex/frv-faster-second-pass

Conversation

@steipete

@steipete steipete commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Related: #134746 (shared builds and parallel package/update verification).

What Problem This Solves

Full Release Verification waits on uneven Gateway E2E shards and repeated npm downloads on clean release runners. One CLI JSON test file took 14m40s in a previous hosted run. Fresh release branches cannot reuse sibling-branch caches.

Why This Change Was Made

Split the CLI JSON suite by command family without removing cases or assertions. Feed Gateway file durations through the existing CI timing owner and share greedy weighted partitioning with UI E2E. Vitest discovery remains authoritative; timing data only determines scheduling. Keep four Gateway shards and the same worker limits.

Cache only npm's content-addressed download store. Installs retain fresh homes, prefixes, state, online freshness/integrity checks, and real installer/update verification. A dedicated scheduled/manual Linux workflow publishes a portable seed from the latest public package with lifecycle hooks disabled. New release branches can restore that main seed; successful manual checks retain candidate-specific downloads. The seed adds one hosted Linux job on scheduled/manual seed runs, none on pushes, and no Blacksmith registrations.

User Impact

Release maintainers get shorter E2E tails and reusable package downloads. No verification steps or cases are removed. Product runtime delta is -28 lines; CI tooling +152, tests/support +385, timing data +212, docs +12. The old CLI monolith and duplicate UI partition implementation are removed. The tooling growth gives the existing timing owner Gateway measurements and adds portable download seeding; no product config, protocol, or persistent runtime database changes.

A bounded login-gate cleanup removes redundant parameter projections and an intermediate command-segment representation. This repairs a pre-existing startup bundle budget failure without raising the budget or changing rendering/recovery behavior. The control and candidate contain the identical cleanup. Screenshots below show unchanged auth and pairing states.

Evidence

Completed paired hosted runs: control, attempt 1 at 1e7a303533a7f9fb3efca2d9681578d4568eb71c, candidate, attempt 1 at 8c34943e4fd2ac01d72b41ff3db2ac9d256de677. Product sources and dependency manifests are byte-identical between arms. The subsequent rebase preserves the patch; its only conflict joined adjacent CI documentation paragraphs.

Measurement Control Candidate
Gateway test steps, shards 1–4 418 / 819 / 444 / 970s 618 / 732 / 714 / 703s
Tallest Gateway test step 16m10 12m12 (24.5% shorter)
Nine-lane stage, including build/setup 25m48 21m21
Aggregate Gateway test seconds 2,651 2,767
Aggregate producer/consumer job seconds 7,527 7,454

The stage saves 4m27, but faster producer builds contribute 42s/48s and runner noise remains. This is a tail-latency improvement, not a compute-cost reduction or an estimate of total Full Release Verification time.

Both arms finish with exactly the same 1,823 Gateway cases and outcomes: 1,797 passed, 18 skipped, eight failed. Full normalized file/title/outcome multisets match, including duplicate parameterized titles. All 262 CLI cases remain and pass. Each discovered file runs once; the nine additional files are the CLI splits. Both arms pass all 1,423 UI cases across 342 files, plus the agent/plugin probe. The eight failures share the pre-existing packaged QA bootstrap Doctor-exit-1 boundary; this comparison is qualified timing evidence, not green full-release validation.

Required CI on final head d2ff92ebfc0 is green, including openclaw/ci-gate (165 successful checks, no failed or pending checks). The browser-extension job passed one unchanged retry; its original failure is retained below. Focused proof covers 320 passing workflow/timing/sharding/config cases (two existing skips), pinned pnpm cache behavior, 36 login/connection cases, both reporter contracts, CLI source preservation, and UI TypeScript. The hosted candidate UI build passes the unchanged 348368-byte startup gzip limit at 348310 bytes. Fresh Codex review found no accepted blockers.

Portable npm cache

The Linux seed populated 331 packages in 20s and saved a 241 MB archive in about 3s. Cross-OS consumers restored that exact seed using the same frozen 5a40f4756e6170914a28402a6845335ed2bcd09d package as the retained historical runs. Consumer workflow/harness bytes and the seed job steps are unchanged; the final patch moves that seed job into its own scheduled/manual workflow.

Lane Earlier retained run Later retained run Seeded run
Windows installer fresh 15m49 24m36 8m44
Windows packaged upgrade 25m53 22m19 40m29, timeout recovery
Linux packaged upgrade 2m21 2m15 2m28

Historical runs: 33464022406, 33465988763. Windows restore took 4s/6s, Linux 2s. All consumers installed the frozen candidate and passed dashboard/live-agent checks. The fresh Windows installer consumes live public PowerShell installer bytes whose historical hashes were not retained, so its timing is observational, not isolated cache causality. Linux shows no speedup.

The Windows upgrade did not finish directly: baseline install 785s, updater 720s until timeout, then the existing direct-candidate-install recovery took 650s. The summary records updateFallback: {reason: "timeout", action: "direct-candidate-install"}. Diagnostic tails show cache hits during all phases, but remaining long npm fetches persist. This patch neither introduces nor changes that recovery policy. After landing, main seed publication succeeded: 331 packages downloaded in 21s, cache saved as openclaw-cross-os-npm-v1-seed-33477905113-1, complete job 30s.

Maintainer review follow-through

Final CI exposed a pre-existing release-plan inventory overflow when newer main content pushed a recursive Git tree listing beyond Node's 1 MiB capture limit. withCandidateSnapshot now enumerates immediate package directories and requests only manifests/plugin READMEs, preserving symlink rejection and regular-file admission. Real Git comparison preserves all 273 metadata rows while reducing captured output from 1,047,503 to 27,037 bytes. A 6,000-entry runtime-tree regression reproduces ENOBUFS before the fix; all 44 producer tests pass after it. The final focused run also covers metadata symlinks and the 93 npm/89 ClawHub publisher inventory. This removes the recursive runtime listing and redundant downstream path filter rather than increasing the buffer. The extra 12 tooling lines own bounded metadata selection; the added tests exercise real Git objects without thousands of working files.

The rebased CI run reported advisory Control UI catalog-fallback hash drift already present in its base. Source i18n verification passed; the scoped UI policy assigns generated catalog reconciliation to the locale bot, so no generated artifacts are mixed into this PR.

The latest ClawSweeper review found no introduced defect and asked to retain completed Gateway and Windows outcomes. Those outcomes and their limitations are above. The reviewer could not fetch the pinned cache action; the hosted Linux-to-Windows archive restore proves that integration. The timing schema is an existing committed measurement artifact, not product persistence. A redundant whole-head cache rerun is skipped because consumer workflow/harness bytes and seed steps are identical; the rebase is mechanical. The seed job now lives in release-npm-cache-warm.yml with an independent concurrency group. Current main warmer runs showed pending events repeatedly canceled by newer pushes, consistent with GitHub concurrency behavior, so leaving the seed in the push-triggered Vitest queue could starve scheduled publication. The regression failed before this move and the four focused cache authority/queue tests pass after it. Existing Vitest warmer triggers and concurrency remain unchanged; the new main seed workflow was dispatched after landing and its cache publication was verified above.

Named follow-ups, kept outside this scheduling/cache change:

  • Browser extension: newly created all-access tab can fail navigation access validation after reaching its destination. Final CI attempt 1 returned a restricted/unavailable error during Page.navigate; browser/bootstrap/dependency sources are identical to the preceding passing CI merge tree. The decisive Chrome tab state is absent, so the exact race is unproven. One unchanged whole-job retry passed, including all-access and selected-tab creation, same-target snapshots, reconnect, and revocation; no authority checks or assertions were weakened.
  • QA packaged bootstrap loses update-repair failure results; readiness rejects disabled bundled plugins. Both arms have the same eight failures. Source reproduction confirms bundled health registration throws when bundled plugins are deliberately disabled; the command harness prioritizes Doctor stderr panels over structured failure stdout. Retained hosted logs do not prove the original underlying exception, so do not equate this reproduction with the hosted root cause.
  • Windows npm fetch tails and timeout-assisted upgrade reporting. Investigate the long fetches and distinguish direct upgrade from recovered installation with a version-scoped outcome. The current recovery was introduced before this PR and is explicitly recorded above.
  • OpenShell v0.0.109 workspace inventory returns SQLITE_BUSY during sandbox deletion. The separate unsharded lane failed cleanup with database is locked; its source and reusable workflow are identical between arms. One whole-job rerun passed, preserving mirror-to-remote order: 18m28 job time, 9m20 E2E step. The database-lock failure did not recur. No retries or weaker assertions were added to production/tests.
Unchanged login recovery rendering: before and after

Synthetic auth and pairing fixtures use the actual component and styles. Both PNG pairs are byte-for-byte identical; rendered text, command order, and documentation links match. No personal state or credentials are present.

State Before After
Auth Before auth After auth
Pairing Before pairing After pairing

@clawsweeper

clawsweeper Bot commented Sep 1, 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 app: web-ui App: web-ui scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Sep 1, 2026
@steipete
steipete marked this pull request as ready for review September 1, 2026 04:42
@steipete steipete self-assigned this Sep 1, 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: 🦐 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 Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 2:19 AM ET / 06:19 UTC.

ClawSweeper review

What this changes

The PR balances Gateway end-to-end test shards, splits a large CLI test suite, caches npm downloads for cross-platform release checks, and bounds release metadata enumeration.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

No concrete introduced correctness or security defect was found. The work remains necessary because current main still performs the unbounded release-metadata listing; keep this maintainer-owned, protected-label PR open while its exact-head CI completes.

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

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation and focused contracts are coherent, but exact-head CI is unfinished and direct source inspection of the pinned cache action was unavailable to this reviewer.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored internal CI PR is exempt from the external-contributor proof gate; its body nevertheless retains hosted cross-platform and Gateway scheduling evidence, while exact-head CI remains the merge gate.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored internal CI PR is exempt from the external-contributor proof gate; its body nevertheless retains hosted cross-platform and Gateway scheduling evidence, while exact-head CI remains the merge gate.
Evidence reviewed 6 items Current-main gap: Current main still recursively lists the whole candidate extensions and packages trees before filtering metadata, so it retains the captured-output growth path this PR addresses.
Bounded metadata owner: The PR enumerates immediate package/plugin directories, then lists only manifests and plugin READMEs; downstream inventory collection consumes exactly that metadata.
Fresh lane and cache boundary: The cross-platform caller validates candidate and baseline SHA-256 values before execution, while the harness creates per-lane homes and prefixes; the new cache path is limited to npm's download store.
Findings None None.
Security None None.

How this fits together

Release verification prepares a candidate package, runs Gateway and cross-platform checks, and produces evidence for publication. This PR changes test scheduling, package-download reuse, and the metadata snapshot used to build the release plan.

flowchart LR
A[Release candidate] --> B[Metadata snapshot]
A --> C[Gateway test discovery]
C --> D[Weighted shard scheduler]
A --> E[Cross-platform release checks]
F[Npm download cache] --> E
B --> G[Release plan]
D --> G
E --> G
Loading

Decision needed

Question Recommendation
Should this maintainer-owned release-automation change proceed once the exact-head required checks finish? Land after exact-head checks: Accept the bounded metadata and cache design after the current head’s required checks complete successfully.

Why: The patch changes release workflow scheduling and cache publication, and the maintainer label requires an explicit maintainer merge decision despite the absence of a source-level blocker.

Before merge

  • Resolve merge risk (P1) - Exact-head CI is still incomplete, so the changed release scheduling and cache path need their normal required-check gate before merge.
  • Resolve merge risk (P1) - The pinned cache action could not be re-read from GitHub in this reviewer environment; this is a reviewer limitation, not missing contributor proof.
Agent review details

Security

None.

PR surface

Source -28, Tests +385, Docs +12, Config +69, Other +295. Total +733 across 32 files.

View PR surface stats
Area Files Added Removed Net
Source 1 14 42 -28
Tests 22 3078 2693 +385
Docs 1 20 8 +12
Config 2 69 0 +69
Generated 0 0 0 0
Other 6 330 35 +295
Total 32 3511 2778 +733

Review metrics

Metric Value Why it matters
Production versus test delta product runtime -28; CI tooling +152; tests/support +385; timing data +212; docs +12 Runtime code shrinks while the added tooling and tests implement scheduling, metadata bounds, and workflow contracts.

Stored data model

Persistent data-model change detected: serialized state: scripts/ci-refit-test-timings.mts, unknown-data-model-change: scripts/ci-refit-test-timings.mts, vector/embedding metadata: scripts/release-plan-producer-core.mts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Complete exact-head workflow validation (recommended)
    Wait for the current head’s required CI to confirm the scheduling and npm-cache changes preserve release verification.
  2. Pause for dependency-source confirmation
    Hold merge if maintainers require a direct source review of the immutable cache action before accepting the hosted integration evidence.

Technical review

Best possible solution:

Keep the bounded metadata selection and isolated npm download cache, then merge only after exact-head CI confirms the release workflow still preserves package verification and test coverage.

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

Not applicable: this is internal CI and release automation work, not a reported user-facing defect. The PR body retains hosted workflow observations and focused owner-test results for the changed paths.

Is this the best way to solve the issue?

Yes for the release-plan repair: the producer now limits capture at the metadata-selection boundary while preserving the inventory consumers need. The overall change still needs the ordinary exact-head CI gate before merge.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 9e82b2a372d2.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.

Label justifications:

  • P2: This is a bounded performance and reliability change to release verification rather than a user-runtime emergency.
  • merge-risk: 🚨 automation: The PR changes GitHub Actions cache publication, concurrency isolation, release metadata capture, and test scheduling.
  • 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: This maintainer-authored internal CI PR is exempt from the external-contributor proof gate; its body nevertheless retains hosted cross-platform and Gateway scheduling evidence, while exact-head CI remains the merge gate.

Evidence

What I checked:

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.

  • Let the exact-head required checks finish and retain the resulting cross-platform cache and release-check outcomes.

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 (2 earlier review cycles)
  • reviewed 2026-09-01T04:59:04.651Z sha ef2ba39 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-01T05:16:05.123Z sha 8c34943e4fd2ac01d72b41ff3db2ac9d256de677 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 1, 2026
@steipete
steipete force-pushed the codex/frv-faster-second-pass branch from 8c34943 to 5e9f11b Compare September 1, 2026 05:42
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The Gateway/Windows measurements and qualified outcomes are now retained in the PR body. The final correction moves the unchanged npm seed job into its own scheduled/manual workflow so frequent main pushes cannot replace its pending run in the Vitest warmer queue. The regression failed before the move; four focused cache-authority/queue tests pass after it. No verification cases, worker limits, or install/update recovery behavior changed.

@clawsweeper

clawsweeper Bot commented Sep 1, 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:

@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The final CI blocker was inherited release-plan code capturing the entire plugin/package tree past Node's 1 MiB buffer limit after main grew. The producer now selects immediate directories and exact metadata before capture: the same 273 rows, 1,047,503 bytes reduced to 27,037 bytes. The real-Git regression fails before the fix; 44 owner tests and the final six inventory/symlink cases pass. No larger buffers, retries, or weaker assertions were added. Final CI is running on d2ff92e.

@clawsweeper

clawsweeper Bot commented Sep 1, 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:

@clawsweeper clawsweeper Bot added the rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. label Sep 1, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 2, 2026
* perf(ui): remove redundant login failure projections

* perf(ci): balance release E2E and reuse npm downloads

* refactor(ci): keep timing run provenance separate

* fix(ci): preserve reporter types and trim login refresh state

* refactor(ui): render login recovery commands directly

* fix(ci): isolate release npm seed publication queue

* fix(release): bound candidate metadata enumeration
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui 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: 🦐 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