Repository navigation
improve(ci): cut QA smoke build overhead - #118111
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 2:27 PM ET / 18:27 UTC. ClawSweeper reviewWhat this changesThe PR changes QA smoke CI to build and validate the public package before overlaying private QA runtime artifacts, avoiding a repeated full package build in each smoke profile. Merge readinessKeep this PR open for normal maintainer review. The patch preserves the public-package/private-QA boundary, has a focused workflow guard, and already has one passing QA smoke profile; the remaining three smoke profiles are the material merge gate. The Priority: P3 Review scores
Verification
How this fits togetherQA smoke CI builds an npm-style public OpenClaw package for package-consuming scenarios, then prepares private QA-only runtime artifacts in the checkout for the smoke harness. The package tarball and the private runtime are consumed together by each of four parallel smoke profiles. flowchart LR
A[QA smoke profile] --> B[Build public runtime]
B --> C[Build Control UI]
C --> D[Seal and validate public package]
D --> E[Overlay private QA runtime]
E --> F[Run smoke scenarios]
D --> G[Package-consuming checks]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +11, Config +3. Total +14 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the reordered sequence only after the complete four-profile QA smoke matrix confirms that package-consuming scenarios still receive the sealed public tarball while source-only QA scenarios receive the post-package private overlay. Do we have a high-confidence way to reproduce the issue? Not applicable as a user bug reproduction: the relevant proof is the CI artifact sequence. The PR supplies a completed package/tarball path and QA Smoke CI profile 1/4 success, with the rest of the matrix still running. Is this the best way to solve the issue? Yes. Building public artifacts before sealing the tarball and applying the private QA overlay afterward matches the package builder's explicit private-entrypoint exclusion, avoids duplicating the full package build, and keeps the safety boundary testable. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against d02101d7ceb6. 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
|
|
Merged via squash.
|
Co-authored-by: Peter Steinberger <[email protected]>
What Problem This Solves
Every QA smoke profile currently spends 202–213 seconds building a full publish-shape package before rebuilding the runtime needed by the smoke harness. The same four profiles repeat that work independently, so it adds roughly three minutes to the CI critical path and about twelve minutes of aggregate runner time.
Why This Change Was Made
Restore the runtime-only package sequence while preserving the package-safety repair from #113821: build the public QA runtime and UI, create and strictly validate the tarball with
--skip-build, then overlay private QA runtime artifacts into the source checkout only after the public tarball is sealed. Private QA never enters the package, and the smoke profiles still receive both the validated package and the private source runtime they need. Test partitions, sharding, and scenario coverage are unchanged.User Impact
No product behavior changes. Pull request and main CI should reach QA smoke results roughly 2.6–2.8 minutes sooner, removing the QA job as the ceiling for the broader test-performance work.
Evidence
Build QA smoke runtimesteps took 202–213 seconds each.qaRuntime: 13.08s--skip-buildpackage creation and import-graph check: 17.38scheck-openclaw-package-tarball: passed, including the complete dist import graph.qa-lab,qa-channel, and QA Plugin SDK files.node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts --reporter=verbose: 96 passed, 1 platform-gated skip.actionlint .github/workflows/ci.yml, targeted formatting, andgit diff --check: clean.The fresh QA worktree intentionally had no private dependency install, and approved remote backends were unavailable. The exact build/package proof therefore ran in an already-hydrated worktree at the same base SHA; hosted CI is the broad Linux and four-profile gate.