Skip to content

fix(ci): avoid unnecessary release verification delays - #132271

Merged
vincentkoc merged 3 commits into
mainfrom
codex/faster-release-critical-path
Aug 29, 2026
Merged

vincentkoc merged 3 commits into
mainfrom
codex/faster-release-critical-path

Conversation

@steipete

@steipete steipete commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Full Release Validation spends substantial time waiting on unrelated coverage or serial work. Recent runs show different profiles of the same candidate queueing for 71–87 minutes, ten independent upgrade scenarios passing serially in 58m03s, and iOS screenshot jobs waiting for a 37–42 minute build whose outputs they do not consume.

Why This Change Was Made

  • Include profile and effective soak coverage in both parent and Release Checks concurrency keys. Stable/full normalize soak to enabled; identical coverage retains its existing serialization and cancellation policy.
  • Split expanded upgrade-survivor/update-migration coverage into baseline-specific groups of at most three scenarios, with a 32-job matrix cap. Move baseline compatibility policy to its existing shared owner so grouping and execution agree. Preserve candidate/package/image identity, fresh containers, npm limits, retries, deadlines, and failure reporting.
  • Start independent iOS screenshot shards alongside the build. Keep all build, screenshot, and evidence jobs required by the final CI gate.
  • Derive source live-image requirements from each lane's image ownership, removing unused source builds from package-backed live lanes and six redundant overrides.

User Impact

The matched-candidate, matched-runner benchmark reduced the ten-scenario execution window from 58m03s to 17m12s (70.4% shorter), and runner wall time from 59m44s to 19m09s. All ten scenarios passed exactly once, without omissions, retries, or timeouts. The complete focused workflow, including fresh candidate preparation, took 30m33s. This is a measured slice, not a whole-FRV speedup claim. Runner queueing and the Windows packaged-upgrade installation tail remain separate limitations. The deliberate 15-minute launcher polling interval remains unchanged.

Evidence

  • 119 focused planner, release-profile, and iOS workflow tests passed; 12 targeted grouping/final-gate checks passed.
  • Seven planner regressions fail against the old producers and pass after restoration. The old concurrency expressions collapse four coverage requests into one key; the new expressions distinguish them and normalize stable/full soak.
  • Expanded plans retain all 82 supported release baseline/scenario combinations exactly once, including old-baseline compatibility and frozen-target omissions.
  • Workflow actionlint/zizmor checks and independent Codex review passed. Pre-alias-fix PR CI passed; final-head CI also passed after the alias repair. Additional proof: ordinary manual CI with iOS overlap, and focused Docker execution.
  • All four iOS proof jobs passed: build 25m14s, iPad 25m33s, iPhone/Watch 26m31s, reducer 1m15s. The complete native branch took 27m50s, with all three main jobs starting within one second. Manual CI overall was not green: the old-head test guard, unchanged native locale drift, and a runner shutdown during lint failed outside these iOS jobs.
  • Initial PR CI exposed one stale exact-concurrency expectation in the package-acceptance workflow guard. The one-line test expectation is corrected, with a local failing/passing reproduction; executable workflow and harness bytes remain unchanged from the hosted proof commit.
  • Changed-file checks passed formatting, dependency policy, conflict, and script-syntax guards, then stopped at unrelated shared-install type mismatches (markdown-it, crabline, Google SDK, and pi-tui). The shared dependency tree was left untouched; exact-head hosted CI uses the pinned install.

No product-runtime changes or new configuration. Infrastructure scripts/workflows add 38 net lines, needed for bounded scenario grouping; the compatibility policy is moved rather than duplicated. Tests add 154 net lines. The normal FRV survivor matrix uses hosted runners; splitting adds 21 jobs, bounded by the new cap. Resource-specific live locks remain unchanged.

Timing evidence: profile queue 32554227833, profile queue 32930981923, successful upgrade batch, serial iOS CI. Avoiding the unused live-image builds removes about four minutes from each affected runner, not eight minutes from overall wall time.

Separate published-upgrade fixture follow-up

The current candidate exposes a pre-existing capability-consent failure in the published-upgrade fixture: it calls update --yes --json and noninteractive doctor, then starts the gateway without the documented explicit consent repair. Historical ungrouped job 98716957141 contains the same failure. Its 61m13s timing establishes serialization but is not a passing benchmark; the passing 58m03s benchmark above supersedes that sample.

Do not fix this by disabling consent, preinstalling missing companions, or dropping scenarios. A separate fixture repair must exercise update repair --accept-capabilities after the existing migration assertions, verify artifact-bound acceptance, and cover configured-plugin and automatic-restart variants. This PR leaves that security contract unchanged. A single-scenario control reproduced the same failure on the same current candidate; the timing replay uses the exact historical passing candidate with omissions disabled.

The timing replay completed successfully on workflow head 34e128909683e960993232dc993f9a340fa62218, testing the exact historical candidate 0d4e8f2f5ce702ceb247e9d3e155df49a02b29ab. It explicitly uses GitHub-hosted ubuntu-24.04, matching the historical successful runner class. All four group artifacts were checked against the historical artifact: the same ten names passed exactly once; no omissions, failures, timeouts, or retries. This satisfies the ClawSweeper request to inspect the terminal Docker result before merge. An initial replay with the direct workflow default (Blacksmith) was intentionally cancelled rather than used for a hardware-confounded comparison.

Review follow-through

Thanks @vincentkoc for fixing the late ClawSweeper finding in 4aa73c2109c31e35a8f388264ddfb92ff520778d: supported minimum requests now canonicalize to beta in both concurrency keys. Equivalent aliases share one lock, distinct coverage remains independent, and effective soak normalization remains unchanged. The added behavioral regression passes locally; Vincent also recorded a failing/passing reproduction and 233 focused checks in his comment. This commit changes only the two admission expressions and their tests, leaving the benchmarked grouping/image planner and iOS workflow bytes unchanged. Both alias-related rank-up moves are addressed.

@clawsweeper

clawsweeper Bot commented Aug 29, 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 scripts Repository scripts docker Docker and sandbox tooling size: M maintainer Maintainer-authored PR labels Aug 29, 2026
@steipete
steipete marked this pull request as ready for review August 29, 2026 01:54
@clawsweeper clawsweeper Bot added 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 29, 2026
@clawsweeper

clawsweeper Bot commented Aug 29, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 28, 2026, 10:33 PM ET / August 29, 2026, 02:33 UTC.

ClawSweeper review

What this changes

This PR reduces release-validation waiting by separating coverage locks, running iOS screenshots beside builds, and grouping upgrade scenarios into bounded Docker jobs.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep open: the new concurrency identity splits the legacy minimum alias from its canonical beta coverage, allowing duplicate release validation runs.

Priority: P2
Reviewed head: 34e128909683e960993232dc993f9a340fa62218

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The CI optimization is well-scoped and covered, but one supported alias defeats its central concurrency invariant.
Proof confidence 🌊 off-meta tidepool Not applicable: Repository state identifies this as a MEMBER PR, so the external-contributor proof gate does not apply; the supplied hosted CI evidence is supplemental to the source-confirmed finding.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Repository state identifies this as a MEMBER PR, so the external-contributor proof gate does not apply; the supplied hosted CI evidence is supplemental to the source-confirmed finding.
Evidence reviewed 6 items Introduced alias split: The new parent concurrency key uses raw release_profile, although equivalent profile aliases must share admission identity.
Canonical coverage owner: Release Checks converts minimum to beta before choosing coverage, so those raw inputs run the same child profile.
Legacy input remains valid: The immutable candidate-request contract continues to accept minimum alongside beta, making this a supported alias rather than malformed input.
Findings 1 actionable finding [P2] Canonicalize the legacy minimum profile in the lock key
Security None None.

How this fits together

Release validation dispatches CI, package, iOS, and Docker checks for a candidate revision. Workflow concurrency prevents equivalent coverage from duplicating expensive validation work.

flowchart LR
A[Release request] --> B[Concurrency identity]
B --> C[Full release validation]
C --> D[Release checks]
D --> E[Docker and package checks]
C --> F[iOS build]
C --> G[iOS screenshots]
E --> H[Release evidence]
F --> H
G --> H
Loading

Before merge

  • Canonicalize the legacy minimum profile in the lock key (P2) - This new key distinguishes minimum from beta, but Release Checks later converts minimum to beta and the candidate contract still accepts both. Equivalent requests can therefore run duplicate release coverage rather than serialize. This is a late finding on unchanged head code; normalize the alias in parent and child identities (or reject it before admission) and assert that the two inputs collide.
  • Resolve merge risk (P1) - A legacy minimum dispatch and a beta dispatch for the same candidate can bypass the intended serialization and duplicate costly release-validation automation.
  • Complete next step (P2) - This maintainer-owned, protected-label PR needs the focused concurrency repair and normal exact-head validation rather than an automated replacement job.

Findings

  • [P2] Canonicalize the legacy minimum profile in the lock key — .github/workflows/full-release-validation.yml:160
Agent review details

Security

None.

PR surface

Tests +154, Docs +16, Config +6, Other +32. Total +208 across 18 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 6 163 9 +154
Docs 3 24 8 +16
Config 4 10 4 +6
Generated 0 0 0 0
Other 5 91 59 +32
Total 18 288 80 +208

Review metrics

Metric Value Why it matters
Production and test delta tooling +38 net, tests +154 net, docs/skill +16 net The production growth is bounded planner and workflow logic, but its admission invariant needs the alias repair before merge.

Stored data model

Persistent data-model change detected: migration/backfill/repair: scripts/lib/upgrade-survivor-policy.d.mts, migration/backfill/repair: scripts/lib/upgrade-survivor-policy.mjs, migration/backfill/repair: scripts/plan-targeted-docker-lane-groups.mjs. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Canonicalize legacy coverage identity (recommended)
    Make minimum and beta produce one concurrency group in both parent and child workflows, then cover that equality in the workflow test.

Technical review

Best possible solution:

Canonicalize minimum to beta in every release concurrency identity, retain distinct real coverage profiles, and add an alias-collision regression assertion.

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

Yes, from source: dispatch equivalent minimum and beta requests with the same candidate, rerun group, and phase; both normalize to beta coverage after entering different new lock keys.

Is this the best way to solve the issue?

No. Raw input belongs outside the concurrency identity because the release-check owner canonicalizes minimum to beta before selecting coverage.

Full review comments:

  • [P2] Canonicalize the legacy minimum profile in the lock key — .github/workflows/full-release-validation.yml:160
    This new key distinguishes minimum from beta, but Release Checks later converts minimum to beta and the candidate contract still accepts both. Equivalent requests can therefore run duplicate release coverage rather than serialize. This is a late finding on unchanged head code; normalize the alias in parent and child identities (or reject it before admission) and assert that the two inputs collide.
    Confidence: 0.97
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 0f054bb3df51.

Labels

Label changes:

  • add merge-risk: 🚨 automation: The introduced concurrency key can schedule duplicate equivalent CI release-validation work.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: Repository state identifies this as a MEMBER PR, so the external-contributor proof gate does not apply; the supplied hosted CI evidence is supplemental to the source-confirmed finding.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P2: The defect can duplicate expensive release validation for a supported legacy profile alias without affecting product runtime.
  • merge-risk: 🚨 automation: The introduced concurrency key can schedule duplicate equivalent CI release-validation work.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: Repository state identifies this as a MEMBER PR, so the external-contributor proof gate does not apply; the supplied hosted CI evidence is supplemental to the source-confirmed finding.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Authored the PR’s two commits and recent related release-validation work. (role: recent CI and planner contributor; confidence: high; commits: ec469923ce2f, 34e128909683, 5cb2eee257bc; files: .github/workflows/openclaw-release-checks.yml, scripts/plan-targeted-docker-lane-groups.mjs)
  • Vincent Koc: Authored the preceding full-release pipeline and candidate-reuse work on the same workflow family. (role: release-validation architecture contributor; confidence: high; commits: f30e480a7064, 944cff7cefe2; files: .github/workflows/full-release-validation.yml, .github/workflows/openclaw-release-checks.yml)
  • Dallin Romney: Authored the recent frozen-target tooling work that touches this release-validation boundary. (role: adjacent CI compatibility contributor; confidence: medium; commits: 831e2de0a367; files: .github/workflows/openclaw-release-checks.yml)

Rank-up moves

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

  • Canonicalize minimum and beta before both concurrency keys.
  • Add focused coverage proving equivalent aliases share one key while distinct coverage remains independent.

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 (1 earlier review cycle)
  • reviewed 2026-08-29T02:22:29.933Z sha 34e1289 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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 29, 2026
@vincentkoc vincentkoc self-assigned this Aug 29, 2026
@vincentkoc

Copy link
Copy Markdown
Member

Addressed the latest ClawSweeper finding in 4aa73c2109c31e35a8f388264ddfb92ff520778d.

  • Canonicalized the supported legacy minimum profile to beta in both parent and child concurrency identities.
  • Added behavioral proof that minimum and beta share a lock while distinct coverage profiles remain independent.
  • Captured the pre-fix regression failure, then passed 233 focused tests, actionlint, zizmor, formatting, interpolation, conflict-marker, and test-temp checks.
  • Updated the PR body with the repair evidence.

No release workflow was dispatched.

@steipete

Copy link
Copy Markdown
Contributor Author

The requested terminal Docker evidence is now verified: run33228575529 passed on final workflow head 34e128909683e960993232dc993f9a340fa62218. Against the exact historical candidate on the same ubuntu-24.04 runner class, all ten scenarios passed exactly once with no omissions, retries, timeouts, or duplicates. Scenario wall time fell from 58m03s to17m12s (70.4%), and runner wall time from 59m44s to19m09s. Including fresh candidate preparation, the focused workflow took30m33s; this is not a whole-release timing claim.

Final-head required PR CI is green. All four iOS proof jobs also passed, with the independent build and screenshot shards starting together and the full native branch finishing in27m50s. The current-candidate consent failure is pre-existing and reproduced by an ungrouped control; the separate fixture repair is documented in the body without weakening consent.

This addresses the latest ClawSweeper rank-up request to inspect the terminal Docker result. Its persistence heuristic is a false positive: the patch moves pure baseline-support policy and schedules CI jobs; it changes no schema or stored data.

@vincentkoc
vincentkoc merged commit 31baa67 into main Aug 29, 2026
190 checks passed
@vincentkoc
vincentkoc deleted the codex/faster-release-critical-path branch August 29, 2026 03:01
@vincentkoc

Copy link
Copy Markdown
Member

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 29, 2026
* fix(ci): avoid unnecessary release verification delays

* test(ci): align release phase guard with coverage identity

* fix(ci): canonicalize minimum release coverage lock

---------

Co-authored-by: Vincent Koc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docker Docker and sandbox tooling 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: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants