Skip to content

perf(ci): parallelize installer smoke validation - #127138

Merged
vincentkoc merged 5 commits into
mainfrom
perf/frv-install-images
Aug 22, 2026
Merged

vincentkoc merged 5 commits into
mainfrom
perf/frv-install-images

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 21, 2026 •

Copy link
Copy Markdown
Member

Related: #127107

What Problem This Solves

Release installer validation serialized independent update and non-root coverage behind shared image preparation, adding roughly 15 minutes to the release critical path and hiding sibling failures. The first parallel implementation also checked out and executed the selected candidate in cache-capable consumer jobs, which CodeQL correctly rejected as a cache-poisoning trust path.

Why This Change Was Made

The installer workflow now runs update and non-root producer-consumer pairs independently and retains one always-running aggregate gate.

Candidate handling is a separate parallel producer:

  • downloads the exact target archive as bytes, without a candidate checkout;
  • installs, builds, and packages only inside a pinned, token-free Docker harness;
  • seals package bytes and regular-file installer copies in a second network-disabled harness;
  • emits a manifest binding repository, target SHA, trusted harness repository/SHA, run ID/attempt, package version, source digest, and every payload file digest.

Both consumer jobs now use only the verified payload artifact and their verified image artifact. They do not check out candidate code, hydrate dependencies, restore dependency caches, or run candidate packaging on the host. Frozen installer mode mounts the verified scripts and reuses the sealed tarball/pack metadata without candidate build, source packaging, or TSX normalization.

User Impact

Release qualification captures update and non-root installer failures in one run, keeps the independent failure-draining DAG, and removes candidate execution from cache-capable consumer hosts.

Evidence

  • Exact head: 10ec369a6583f80e4a6c7d0e2440d9760c018ab9
  • 329 focused installer, payload-tamper, workflow, and package-acceptance tests passed.
  • Payload tests cover all four file digests, manifest tampering, tuple drift, source-archive digest drift, unexpected files, and symlinked/non-regular installer or package inputs.
  • YAML parse, actionlint, Bash syntax, formatting, git diff --check, script erasability, dependency pins, package patches, and privacy scrub passed.
  • The exact pinned Node 24 image executes the new helper.
  • Production/tooling LOC: +866/-132 (net +734); tests: +410/-78 (net +332). Growth is the explicit security boundary: isolated candidate packaging, clean sealing, full tuple/digest verification, and frozen artifact consumption.
  • check-changed passed every guard before script typecheck. The typecheck could not run in this sparse GWT because unrelated tracked ui/config/* files are absent; no dependency reconciliation or sparse-checkout mutation was performed.
  • Previous exact-head baseline before this security patch: hosted installer smoke with Bun enabled passed in 26m32s: https://github.com/openclaw/openclaw/actions/runs/32484378784.
  • Hosted exact-head installer smoke and replacement CodeQL are pending for this head.

@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 docker Docker and sandbox tooling 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. 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: needs maintainer review before merge. Reviewed August 21, 2026, 3:07 PM ET / 19:07 UTC.

ClawSweeper review

What this changes

The PR splits installer smoke validation into sealed candidate-payload and image producers, then runs update and non-root consumers from verified artifacts in parallel.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open for normal maintainer review: the branch has a coherent artifact-isolation design and no concrete patch defect found, but it changes a release CI trust boundary and needs exact-head CI plus owner sign-off.

Priority: P1
Reviewed head: d15a783ca63220f59084cec784a862a35845b117
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A solid release-workflow patch with focused integrity coverage, pending exact-head CI and owner approval.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored CI PR is exempt from the external-contributor proof gate; the discussion nevertheless includes a hosted installer workflow trace.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored CI PR is exempt from the external-contributor proof gate; the discussion nevertheless includes a hosted installer workflow trace.
Evidence reviewed 8 items Current-main baseline: Current main keeps update and non-root installer work in one serial installer job, including a candidate checkout and restore-only Node setup.
Producer-consumer boundary: The PR creates a dedicated candidate payload producer, binds its artifact tuple, and verifies the payload before the update consumer runs.
Payload integrity implementation: The payload helper rejects non-regular inputs, seals installers from the immutable source archive, and verifies exact inventory, tuple, manifest, and file digests.
Findings None None.
Security None None.

How this fits together

The reusable installer workflow selects a source revision, packages it, and runs installation checks. This change separates candidate packaging from cache-capable consumer jobs and aggregates their results.

flowchart LR
  A[Selected revision] --> B[Candidate payload producer]
  A --> C[Update image producer]
  A --> D[Non-root image producer]
  B --> E[Verified payload artifact]
  C --> F[Verified update image]
  D --> G[Verified non-root image]
  E --> H[Installer consumers]
  F --> H
  G --> H
  H --> I[Aggregate gate]
Loading

Decision needed

Question Recommendation
Does the release CI owner approve using the reusable workflow job identity as the trusted harness revision after the exact-head installer and CodeQL checks pass? Approve after exact-head validation: Accept the isolated producer-consumer design once the rebased head has green installer and security checks.

Why: This is a deliberate release-workflow trust boundary rather than a mechanical correctness choice.

Before merge

  • Resolve merge risk (P1) - The current head is behind main and required checks are still pending, so merge should wait for a refreshed exact-head workflow and security result.
  • Resolve merge risk (P1) - The workflow trusts GitHub Actions job workflow identity to restore its harness; current main uses the same pattern, but this release-critical boundary warrants owner approval.
  • Complete next step (P2) - Protected maintainer-owned release CI and security-boundary changes require owner approval and exact-head checks, not an automated repair lane.
Agent review details

Security

None.

PR surface

Tests +828, Config +636, Other +583. Total +2047 across 8 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 895 67 +828
Docs 0 0 0 0
Config 1 790 154 +636
Generated 0 0 0 0
Other 3 695 112 +583
Total 8 2380 333 +2047

Review metrics

Metric Value Why it matters
Production versus test delta production/tooling +1,485/-266 (net +1,219); tests +895/-67 (net +828) The production growth is directly tied to the new artifact-isolation and verification boundary rather than an incidental feature addition.

Stored data model

Persistent data-model change detected: serialized state: test/scripts/test-install-sh-docker.test.ts, vector/embedding metadata: scripts/install-smoke-candidate-payload.d.mts, vector/embedding metadata: scripts/install-smoke-candidate-payload.mts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Refresh exact-head release proof (recommended)
    Rebase the branch and require the installer workflow plus CodeQL to pass on the resulting head before merge.
  2. Pause the workflow redesign
    Close or defer the branch if release owners do not approve this new trusted-harness and artifact-binding model.

Technical review

Best possible solution:

Rebase onto current main, preserve the sealed artifact flow, and merge after exact-head installer/CodeQL validation plus release-workflow owner approval.

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

Not applicable: this is a CI topology and trust-boundary change, not a user-reported runtime defect.

Is this the best way to solve the issue?

Yes: separating candidate packaging from consumer jobs and verifying the sealed artifact is a more maintainable solution than retaining candidate checkouts in cache-capable consumers.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 87d02a908976.

Labels

Label changes:

  • 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 maintainer-authored CI PR is exempt from the external-contributor proof gate; the discussion nevertheless includes a hosted installer workflow trace.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: This changes release-critical installer qualification and can delay or invalidate release evidence.
  • merge-risk: 🚨 automation: The PR replaces a serial GitHub Actions job with a multi-job producer-consumer graph.
  • merge-risk: 🚨 security-boundary: Candidate artifacts and trusted harness code now cross an explicit verification boundary.
  • 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 maintainer-authored CI PR is exempt from the external-contributor proof gate; the discussion nevertheless includes a hosted installer workflow trace.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Authored the related merged cache-authority change and the current installer workflow redesign. (role: recent area contributor; confidence: high; commits: 225aa5a17823, d15a783ca632; files: .github/workflows/install-smoke-reusable.yml)
  • Dallin Romney: Blame associates the existing reusable-workflow identity path with this contributor; shallow history limits stronger attribution. (role: current-main workflow provenance; confidence: low; commits: 566b0e53d5; files: .github/workflows/install-smoke-reusable.yml)

Rank-up moves

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

  • Rebase onto main and obtain green exact-head installer and CodeQL checks.
  • Have the release CI owner approve the trusted harness identity boundary.

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 (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-21T13:02:08.598Z sha 098dfd4 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-21T13:59:29.578Z sha 098dfd4 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-21T14:15:11.571Z sha 098dfd4 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-21T15:28:38.722Z sha ad551f6b92afba7ddf828feeb0b70de691c40b7c :: needs maintainer review before merge. :: none
  • reviewed 2026-08-21T16:00:40.801Z sha a416905f82e392deaba8e01686b4763552f3aa98 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-21T16:34:19.089Z sha b3c58c9c93b3e0bfca3d9f00bb50337a9942dd59 :: found issues before merge. :: [P1] Use the called workflow SHA for trusted checkouts
  • reviewed 2026-08-21T17:17:31.257Z sha 542ab81 :: found issues before merge. :: [P1] Resolve the cache-poisoning checkout dataflow
  • reviewed 2026-08-21T18:44:10.254Z sha 3c24a48 :: needs maintainer review before merge. :: none

@vincentkoc
vincentkoc force-pushed the perf/frv-install-images branch from 8794edd to 098dfd4 Compare August 21, 2026 12:56
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact head: 098dfd470798bbf828b28ff86eace2f9213d3f15

Rebased after #127107. Update cache authority is restore, non-root is off, and the retired cache inputs are removed. Focused tests and workflow checks are green; exact-head hosted installer proof is being dispatched.

@vincentkoc vincentkoc self-assigned this Aug 21, 2026
@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

Copy link
Copy Markdown
Member Author

Exact-head hosted installer proof passed.

The update and non-root producers both started at 12:57:45 UTC. The complete non-root lane finished at 13:09:36 UTC, before the root image finished at 13:10:40 UTC, so it no longer waits for root/update preparation.

Logs confirm immutable SHA/run/attempt artifact binding, successful artifact verification/download/load, cache-mode: off for non-root, cache-mode: restore for update, successful current/previous/Rocky installer coverage, and successful Bun global install coverage.

Recent successful scheduled main runs took 37m13s-41m23s; this exact-head run was 10m41s-14m51s shorter. That is an observed wall-clock delta, not a controlled benchmark, because the compared SHAs and cache conditions differ.

@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 Aug 21, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review August 21, 2026 14:10
@clawsweeper clawsweeper Bot added merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 21, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@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-install-images branch from 10ec369 to ad551f6 Compare August 21, 2026 15:23
@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed 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 21, 2026
@vincentkoc
vincentkoc force-pushed the perf/frv-install-images branch from b3c58c9 to 542ab81 Compare August 21, 2026 17:13
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@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:

@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Aug 21, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@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:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 21, 2026
@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 21, 2026
@vincentkoc
vincentkoc merged commit 7dfe406 into main Aug 22, 2026
285 of 309 checks passed
@vincentkoc
vincentkoc deleted the perf/frv-install-images branch August 22, 2026 00:02
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 22, 2026
* fix(ci): parallelize installer smoke groups

* fix(ci): bind installer smoke artifacts

* fix(ci): isolate installer smoke candidate payload

* fix(ci): restore trusted install harness

* fix(ci): run Bun smoke from trusted harness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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.

2 participants