Repository navigation
perf(ci): shorten release verification tails - #134824
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 1, 2026, 2:19 AM ET / 06:19 UTC. ClawSweeper reviewWhat this changesThe 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 readinessNo 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 Review scores
Verification
How this fits togetherRelease 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
Decision needed
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
Agent review detailsSecurityNone. PR surfaceSource -28, Tests +385, Docs +12, Config +69, Other +295. Total +733 across 32 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (2 earlier review cycles)
|
8c34943 to
5e9f11b
Compare
|
@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. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@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. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* 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
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 at8c34943e4fd2ac01d72b41ff3db2ac9d256de677. Product sources and dependency manifests are byte-identical between arms. The subsequent rebase preserves the patch; its only conflict joined adjacent CI documentation paragraphs.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
d2ff92ebfc0is green, includingopenclaw/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
5a40f4756e6170914a28402a6845335ed2bcd09dpackage 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.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 asopenclaw-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.
withCandidateSnapshotnow 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.ymlwith 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:
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.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.