Skip to content

fix(ci): isolate release QA lane locks - #128458

Merged
vincentkoc merged 1 commit into
mainfrom
ci/qa-lock-scope
Aug 24, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
ci/qa-lock-scope

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 24, 2026 •

Copy link
Copy Markdown
Member

Related: #127140

What Problem This Solves

Resolves a release-validation scheduling problem where Matrix and Buzz QA calls for the same target SHA shared one workflow-level concurrency group, forcing independent lanes to wait on each other.

Why This Change Was Made

This extracts the safe QA concurrency design from #127140, originally authored by @vincentkoc, while deliberately excluding all iOS runner authorization and Full Release Validation dispatch changes.

The reusable workflow keeps lock_scope: all as its default for aggregate scheduled/manual runs. Release callers explicitly use matrix and buzz; Matrix remains serialized per selected SHA, while Buzz remains serialized across SHAs because it uses pooled credentials. Queued calls are retained.

User Impact

Release Matrix and Buzz QA can run concurrently when they do not share a resource, without allowing duplicate same-SHA Matrix work or cross-SHA Buzz credential use to overlap.

Evidence

  • node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts
    • 127 passed, 2 skipped.
  • actionlint -shellcheck= -pyflakes= .github/workflows/qa-live-transports-convex.yml .github/workflows/openclaw-release-checks.yml
    • Passed.
    • The full external ShellCheck/Pyflakes integration was bounded at 120 seconds on the large QA workflow without a diagnostic; this patch changes no embedded shell.
  • ./node_modules/.bin/oxfmt --check .github/workflows/openclaw-release-checks.yml .github/workflows/qa-live-transports-convex.yml docs/ci.md test/scripts/ci-workflow-guards.test.ts
    • Passed.
  • git diff --check
    • Passed.
  • pnpm docs:list
    • Completed successfully.
  • .agents/skills/autoreview/scripts/autoreview --mode local
    • Clean: no accepted/actionable findings; patch judged correct at 0.99 confidence.
  • TruffleHog pre-commit scan through autoreview
    • Clean.

AI-assisted; the author reviewed the implementation and proof.

Exact-candidate scheduler trace

A temporary, nonpublishing caller pinned every reusable workflow call to exact PR head 08788ce729351e2485ed1abe0a71482dc2f62d67. It created no package, release, or publish jobs and did not modify the PR branch.

At the captured scheduler snapshot on August 24, 2026:

  • Matrix exact-head primary was in_progress from 11:16:08Z while Buzz exact-head primary was in_progress from 11:16:10Z, proving same-SHA Matrix/Buzz overlap.
  • Matrix exact-head duplicate was pending from 11:13:24Z, proving duplicate same-SHA Matrix calls remain serialized.
  • Buzz current-main cross-SHA was pending from 11:16:17Z behind the exact-head Buzz job, proving the pooled Buzz lock serializes across target SHAs. The second target was 8fe2c1b83ca2a30d62892d3bf188588190155fd0.

Redacted Actions evidence:

The proof run was cancelled after the four scheduler states were captured, and its temporary release-ci/ branch was deleted. Only public run/job metadata is linked; logs and credential details are intentionally excluded.

@clawsweeper

clawsweeper Bot commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@vincentkoc vincentkoc self-assigned this Aug 24, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: XS maintainer Maintainer-authored PR labels Aug 24, 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 24, 2026
@clawsweeper

clawsweeper Bot commented Aug 24, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 24, 2026, 7:37 AM ET / 11:37 UTC.

ClawSweeper review

What this changes

This PR gives release Matrix and Buzz QA calls separate reusable-workflow concurrency scopes while keeping Matrix serialized per target SHA and Buzz serialized around its shared credentials.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for maintainer handling. Current main still uses one shared release-QA concurrency key; this focused patch separates Matrix and Buzz while retaining their resource locks, with no concrete correctness or security finding.

Priority: P2
Reviewed head: 08788ce729351e2485ed1abe0a71482dc2f62d67
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) The focused implementation has direct guard coverage and unusually strong exact-head scheduler evidence.
Proof confidence 🦞 diamond lobster (5/6) Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless provides linked exact-head scheduler evidence.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless provides linked exact-head scheduler evidence.
Evidence reviewed 6 items Current-main behavior: Current main still places every reusable QA call for a ref in the single qa-lab-all-lanes group, so the reported cross-lane serialization remains there.
Caller and owner boundary: The two release callers explicitly supply matrix and buzz, while the reusable workflow adds the scoped group and keeps aggregate callers on all.
Resource-lock preservation: The branch adds a Matrix lock keyed by the validated selected revision and retains Buzz's shared lock, so the new workflow scopes do not become the sole serialization mechanism.
Findings None None.
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts

Result: FAIL (partial) — step 2 expect_output separates release QA lanes without weakening their resource locks: expected terminal output was not visible within 30 seconds: "separates release QA lanes without weakening their resource locks"

     ✓ keeps workflow guards in fast CI-routing checks  823ms
To /tmp/clawsweeper-live-proof-128458-j3mP7f/profile/tmp/openclaw-generated-pr-hoGWGg/origin.git
 * [new branch]      main -› main
hint: Using 'master' as the name for the initial branch. This default branch name
hint: will change to "main" in Git 3.0. To configure the initial branch name
hint: to use in all of your new repositories, which will suppress this warning,
hint: call:
hint:
hint:   git config --global init.defaultBranch ‹name›
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:   git branch -m ‹name›
hint:
hint: Disable this message with "git config set advice.defaultBranchName false"
To /tmp/clawsweeper-live-proof-128458-j3mP7f/profile/tmp/openclaw-generated-pr-bUhuge/origin.git
 * [new branch]      main -› main
hint: Using 'master' as the name for the initial branch. This default branch name
hint: will change to "main" in Git 3.0. To configure the initial branch name
hint: to use in all of your new repositories, which will suppress this warning,
hint: call:
hint:
hint:   git config --global init.defaultBranch ‹name›
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:   git branch -m ‹name›
hint:
hint: Disable this message with "git config set advice.defaultBranchName false"
To /tmp/clawsweeper-live-proof-128458-j3mP7f/profile/tmp/openclaw-generated-pr-qLsRq7/origin.git
 * [new branch]      main -› main
Switched to a new branch 'automation/locale'
To /tmp/clawsweeper-live-proof-128458-j3mP7f/profile/tmp/openclaw-generated-pr-qLsRq7/origin.git
 * [new branch]      automation/locale -› automation/locale
Switched to branch 'main'
hint: Using 'master' as the name for the initial branch. This default branch name
hint: will change to "main" in Git 3.0. To configure the initial branch name
hint: to use in all of your new repositories, which will suppress this warning,
hint: call:
hint:
hint:   git config --global init.defaultBranch ‹name›
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:   git branch -m ‹name›
hint:
hint: Disable this message with "git config set advice.defaultBranchName false"
To /tmp/clawsweeper-live-proof-128458-j3mP7f/profile/tmp/openclaw-generated-pr-AnIqfn/origin.git
 * [new branch]      main -› main
Switched to a new branch 'automation/locale'
To /tmp/clawsweeper-live-proof-128458-j3mP7f/profile/tmp/openclaw-generated-pr-AnIqfn/origin.git
 * [new branch]      automation/locale -› automation/locale
Switched to branch 'main'
hint: Using 'master' as the name for the initial branch. This default branch name
hint: will change to "main" in Git 3.0. To configure the initial branch name
hint: to use in all of your new repositories, which will suppress this warning,
hint: call:
hint:
hint:   git config --global init.defaultBranch ‹name›
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint:   git branch -m ‹name›
hint:
hint: Disable this message with "git config set advice.defaultBranchName false"
To /tmp/clawsweeper-live-proof-128458-j3mP7f/profile/tmp/openclaw-generated-pr-B99pD2/origin.git
 * [new branch]      main -› main
Switched to a new branch 'automation/locale'
To /tmp/clawsweeper-live-proof-128458-j3mP7f/profile/tmp/openclaw-generated-pr-B99pD2/origin.git
 * [new branch]      automation/locale -› automation/locale
Switched to branch 'main'
hint: Using 'master' as the name for the initial branch. This default branch name
hint: will change to "main" in Git 3.0. To configure the initial branch name
hint: to use in all of your new repositories, which will suppres
… output truncated …

Assertions:

  • FAIL expect_output: separates release QA lanes without weakening their resource locks

How this fits together

OpenClaw release checks invoke a reusable QA workflow for Matrix and Buzz validation. Workflow-level scopes control whether release calls can overlap, while job-level locks protect the target-specific Matrix work and pooled Buzz credentials.

flowchart LR
A[Release checks] --> B[Reusable QA workflow]
B --> C[Select concurrency scope]
C --> D[Matrix QA call]
C --> E[Buzz QA call]
D --> F[Per-target Matrix lock]
E --> G[Shared Buzz credential lock]
Loading

Decision needed

Question Recommendation
Should this maintainer-owned release-QA scheduler change land once its exact-head required checks are green? Land after exact-head CI: Accept the focused lock split once the current head's required checks complete green.

Why: The patch is correct on review, but it changes release automation scheduling and carries the protected maintainer label.

Before merge

  • Resolve merge risk (P1) - Merging changes release-QA scheduler behavior; the retained Matrix and Buzz job locks must remain present so independent lanes overlap without duplicating target work or pooled credential use.
Agent review details

Security

None.

PR surface

Tests +20, Docs +1, Config +14. Total +35 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 22 2 +20
Docs 1 2 1 +1
Config 2 15 1 +14
Generated 0 0 0 0
Other 0 0 0 0
Total 4 39 4 +35

Review metrics

Metric Value Why it matters
Workflow, docs, and test delta workflow +15/-1, docs +2/-1, tests +22/-2 The small workflow increase establishes explicit lane and resource-lock ownership; tests separately guard all added scheduling invariants.
Reusable scheduler interface 1 optional scope input added; 2 release callers changed The new input is limited to trusted reusable callers and makes each release lane's intended concurrency explicit.

Root-cause cluster

Relationship: canonical
Canonical: #128458
Summary: This PR is the focused canonical implementation of the release-QA lock split; the broader open release-scheduling PR retains separate iOS and dispatch work.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Complete exact-head verification (recommended)
    Wait for the current head's required checks to finish green while preserving the demonstrated Matrix and Buzz lock behavior.

Technical review

Best possible solution:

Land the isolated lane scopes with the existing per-target Matrix and shared Buzz locks after exact-head CI completes green.

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

Yes, at source level: current main's shared workflow group serializes same-ref Matrix and Buzz calls, while the branch's exact-head Actions trace exercises the intended overlap and retained queues.

Is this the best way to solve the issue?

Yes. Separating workflow scopes while retaining lane-owned locks is the narrowest solution; it avoids keeping unrelated Matrix and Buzz work behind one aggregate lock.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded release-validation scheduling repair without evidence of an urgent product-runtime outage.
  • merge-risk: 🚨 automation: The diff changes GitHub Actions concurrency keys and therefore release-QA scheduling behavior.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless provides linked exact-head scheduler evidence.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Authored the current lock-scope commit, the overlapping release-QA design, and adjacent merged release-producer work. (role: recent release-workflow contributor; confidence: high; commits: 08788ce72935, 1ece62a4d807; files: .github/workflows/qa-live-transports-convex.yml, .github/workflows/openclaw-release-checks.yml, test/scripts/ci-workflow-guards.test.ts)

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 (5 earlier review cycles)
  • reviewed 2026-08-24T02:22:27.530Z sha d6151db :: needs maintainer review before merge. :: none
  • reviewed 2026-08-24T03:05:24.355Z sha d6151db :: needs maintainer review before merge. :: none
  • reviewed 2026-08-24T05:38:23.330Z sha 6038f24 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-24T11:10:36.238Z sha 08788ce :: needs maintainer review before merge. :: none
  • reviewed 2026-08-24T11:25:01.148Z sha 08788ce :: needs maintainer review before merge. :: none

@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 24, 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:

Extract the QA concurrency portion of #127140 while leaving the iOS runner authorization changes out.
@vincentkoc
vincentkoc force-pushed the ci/qa-lock-scope branch 2 times, most recently from 6038f24 to 08788ce Compare August 24, 2026 11:05
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 24, 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

@clawsweeper re-review

Exact-head scheduler evidence for 08788ce729351e2485ed1abe0a71482dc2f62d67 is now attached to the PR body. It records same-SHA Matrix/Buzz overlap, duplicate same-SHA Matrix queuing, and cross-SHA Buzz queuing from the nonpublishing Actions trace.

@clawsweeper

clawsweeper Bot commented Aug 24, 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: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 24, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

Maintainer disposition for the remaining ClawSweeper item:

  • The optional current-main refresh/rebase is intentionally skipped. This candidate is frozen at 08788ce729351e2485ed1abe0a71482dc2f62d67, and the authorized closeout explicitly prohibits an unrelated rebase.
  • The exact-head nonpublishing scheduler trace and focused guard cover that frozen candidate. GitHub reports the PR mergeable, and landing will require all exact-head checks to be green after the PR is marked ready.

No ClawSweeper code finding or scheduler-proof gap remains.

@vincentkoc
vincentkoc marked this pull request as ready for review August 24, 2026 11:33
@vincentkoc
vincentkoc merged commit 41050b2 into main Aug 24, 2026
227 of 324 checks passed
@vincentkoc
vincentkoc deleted the ci/qa-lock-scope branch August 24, 2026 12:03
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 25, 2026
Extract the QA concurrency portion of openclaw#127140 while leaving the iOS runner authorization changes out.
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 merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: XS 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