Skip to content

improve: speed up full release verification - #134694

Merged
steipete merged 1 commit into
mainfrom
codex/faster-full-release-verification
Sep 1, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/faster-full-release-verification

Conversation

@steipete

@steipete steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Full Release Validation spends avoidable time searching for reusable evidence before any child workflows can start. One observed run spent 5m42s fully validating twelve candidates that were ultimately ineligible; eligible candidates also fetched independent children serially.

Why This Change Was Made

Check each bound manifest's profile, inputs, root status and target eligibility before collecting deeper evidence. Eligible candidates still pass the complete provenance, immutable-plan, dispatch-log and attempt checks. Collect the fixed child set concurrently (at most seven), walk each child's attempts/pages sequentially, drain every read before returning, and reuse the already-fetched current performance attempt for its publication guard. Metadata-only jobs now check out their complete tooling closure and target metadata instead of full source trees.

User Impact

Maintainers wait less for release verification without losing any test lanes or release guarantees. Product runtime behavior is unchanged.

Evidence

  • Existing full release run 33343546920: eligible verification 38.90s → 13.96s, with 30 → 29 GitHub calls. Normalized evidence is identical after excluding the verifier's own script hash. These are verifier timings, not total workflow duration.
  • Ineligible profile on the same historical run: 61.79s → 3.01s with early rejection.
  • 201 tests passed across the release summary, reuse selector, GitHub read helper and continuation-workflow files. Added regression proof for early rejection and concurrent acquisition; executable sparse-tree tests import the configured tooling and run the target metadata preflight without a full checkout.
  • Focused script lint, formatting, shell syntax, conflict/diff checks and coercion guard passed. Local broader gates hit the existing stale pako installation (ui/vite.config.ts TS7016) and unavailable pinned pre-commit==4.6.2; hosted CI is the remaining landing gate.
  • Tooling/workflow config grows by 149 net lines for asynchronous bounded reads and explicit sparse import closures; tests grow by 328, docs by 10.

Follow-up: share E2E builds once per existing full/DTS and private-QA CI profile, preserving exact artifact identity and per-profile scheduling. This patch does not remove or combine those test lanes.

@steipete steipete self-assigned this Sep 1, 2026
@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 scripts Repository scripts size: L maintainer Maintainer-authored PR labels Sep 1, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 Sep 1, 2026
@clawsweeper

clawsweeper Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 31, 2026, 11:04 PM ET / September 1, 2026, 03:04 UTC.

ClawSweeper review

What this changes

This PR speeds internal full-release verification by rejecting ineligible evidence candidates early, concurrently fetching independent child-run evidence, and using sparse checkouts for metadata-only jobs.

Merge readiness

⚠️ Ready for maintainer review - 1 item remains

Keep this current maintainer-authored PR open: current main still performs the deeper reuse verification before the new eligibility screen and validates children serially. The introduced path preserves full verification for eligible candidates, adds focused regression coverage, and has no concrete review finding; exact-head CI remains the landing gate.

Priority: P3
Reviewed head: 11542c121948419e39f7dbfeeec73ec39f1ac031

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused internal automation improvement with direct source coverage and no identified correctness or security defect.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable: this MEMBER-authored internal workflow PR is exempt from the external-contributor proof gate; its body nevertheless reports after-change timings from a historical full-release run as supplemental evidence.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable: this MEMBER-authored internal workflow PR is exempt from the external-contributor proof gate; its body nevertheless reports after-change timings from a historical full-release run as supplemental evidence.
Evidence reviewed 6 items Introduced early eligibility gate: The PR adds a direct-manifest screen for profile, soak, inputs, root-run status, and target compatibility before loading execution plans or child evidence; eligible candidates still proceed to the existing verifier.
Bounded concurrent child verification: Independent child validations are collected with Promise.allSettled, while each child's own attempt and page reads remain sequential.
Current-main comparison: Current main still lacks the reuse-request eligibility block and maps child validation synchronously, so the performance improvement is not already implemented there.
Findings None None.
Security None None.

How this fits together

Full Release Validation checks a selected OpenClaw revision by collecting prior workflow evidence and child-run results before it permits reuse or starts fresh validation. This change sits in that workflow's reuse verifier, between target resolution and the final release decision.

flowchart LR
  A[Release validation request] --> B[Target metadata]
  B --> C[Reusable evidence search]
  C --> D[Manifest eligibility screen]
  D -->|eligible| E[Child provenance checks]
  D -->|ineligible| F[Reject candidate early]
  E --> G[Release decision]
Loading

Before merge

  • Complete next step (P2) - This maintainer-authored PR has no concrete automated repair to dispatch; await normal exact-head CI and maintainer merge handling.
Agent review details

Security

None.

PR surface

Tests +328, Docs +10, Config +34, Other +115. Total +487 across 9 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 4 460 132 +328
Docs 1 10 0 +10
Config 1 34 0 +34
Generated 0 0 0 0
Other 3 210 95 +115
Total 9 714 227 +487

Review metrics

Metric Value Why it matters
Production versus test delta production/tooling +149, tests +328, docs +10 The added production surface is bounded to release-verification I/O and sparse checkout closures, with focused tests covering early rejection and concurrent drain behavior.

Stored data model

Persistent data-model change detected: serialized state: scripts/release-ci-summary.mjs, unknown-data-model-change: scripts/release-ci-summary.mjs. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Land the bounded reuse screen and concurrent evidence collection only after exact-head workflow CI confirms the sparse checkout and release-evidence contracts.

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

Not applicable: this PR improves internal release-verification latency rather than correcting a reported user-facing failure.

Is this the best way to solve the issue?

Yes: screening candidate metadata before expensive evidence reads and retaining the full verifier for eligible candidates is the narrowest maintainable path shown by the changed owner and tests.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 7af3faf2321d.

Labels

Label changes:

  • add P3: This is a bounded internal release-workflow performance improvement with no product-runtime behavior change.
  • 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: Not applicable: this MEMBER-authored internal workflow PR is exempt from the external-contributor proof gate; its body nevertheless reports after-change timings from a historical full-release run as supplemental evidence.

Label justifications:

  • P3: This is a bounded internal release-workflow performance improvement with no product-runtime behavior change.
  • 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: Not applicable: this MEMBER-authored internal workflow PR is exempt from the external-contributor proof gate; its body nevertheless reports after-change timings from a historical full-release run as supplemental evidence.

Evidence

What I checked:

  • Introduced early eligibility gate: The PR adds a direct-manifest screen for profile, soak, inputs, root-run status, and target compatibility before loading execution plans or child evidence; eligible candidates still proceed to the existing verifier. (scripts/release-ci-summary.mjs:2175, 11542c121948)
  • Bounded concurrent child verification: Independent child validations are collected with Promise.allSettled, while each child's own attempt and page reads remain sequential. (scripts/release-ci-summary.mjs:2351, 11542c121948)
  • Current-main comparison: Current main still lacks the reuse-request eligibility block and maps child validation synchronously, so the performance improvement is not already implemented there. (scripts/release-ci-summary.mjs:2130, 7af3faf2321d)
  • Regression coverage: Added cases assert that incompatible candidates stop before child evidence is read and that six independent child log reads overlap while all reads drain after a failure. (test/scripts/release-ci-summary.test.ts:1290, 11542c121948)
  • Sparse-checkout closure: The workflow pins explicit tooling and target metadata paths, and the workflow test copies only those paths before importing the helpers and running the target metadata preflight. (.github/workflows/full-release-validation.yml:564, 11542c121948)
  • Current source-history routing: The pre-existing release-evidence client lines were last modified by this commit; the shallow-history boundary prevents attributing feature introduction, so this is routing evidence only. (scripts/release-ci-summary.mjs:1639, 592253ffd103)

Likely related people:

  • EthDing: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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.

@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Exact-head validation is green for 11542c121948419e39f7dbfeeec73ec39f1ac031: CI and required gate, Testbox, and workflow sanity. This completes the remaining CI step from ClawSweeper's review.

The stored-data heuristic does not correspond to a persistence or migration change: the release evidence schema and normalized successful output are unchanged. The before/after live verification of the same historical parent produced identical evidence after excluding the verifier's own content hash. This change alters acquisition scheduling and early negative eligibility checks; it does not change storage or upgrade semantics.

@steipete
steipete merged commit 5997629 into main Sep 1, 2026
178 checks passed
@steipete
steipete deleted the codex/faster-full-release-verification branch September 1, 2026 03:08
@steipete

steipete commented Sep 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: L 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