Skip to content

Commit 08788ce

Browse files
committed
fix(ci): isolate release QA lane locks
Extract the QA concurrency portion of #127140 while leaving the iOS runner authorization changes out.
1 parent d9165f9 commit 08788ce

4 files changed

Lines changed: 39 additions & 4 deletions

File tree

‎.github/workflows/openclaw-release-checks.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2131,6 +2131,7 @@ jobs:
21312131
with:
21322132
ref: ${{ needs.resolve_target.outputs.revision }}
21332133
expected_sha: ${{ needs.resolve_target.outputs.revision }}
2134+
lock_scope: matrix
21342135
run_matrix: true
21352136
fail_fast: ${{ fromJSON(needs.resolve_target.outputs.fail_fast) }}
21362137
secrets:
@@ -2149,6 +2150,7 @@ jobs:
21492150
with:
21502151
ref: ${{ needs.resolve_target.outputs.revision }}
21512152
expected_sha: ${{ needs.resolve_target.outputs.revision }}
2153+
lock_scope: buzz
21522154
run_buzz: true
21532155
buzz_scenario: channel-canary,channel-mention-gating
21542156
secrets:

‎.github/workflows/qa-live-transports-convex.yml‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
description: Exact resolved SHA expected from the trusted caller
1414
required: true
1515
type: string
16+
lock_scope:
17+
description: Concurrency scope for a trusted single-lane reusable call
18+
required: false
19+
default: all
20+
type: string
1621
run_mock_parity:
1722
description: Run the mock parity lane
1823
required: false
@@ -118,7 +123,9 @@ permissions:
118123
pull-requests: read
119124

120125
concurrency:
121-
group: qa-lab-all-lanes-${{ github.event_name != 'schedule' && inputs.ref || github.sha }}
126+
# Trusted reusable callers name their single-lane scope explicitly. Manual
127+
# and scheduled aggregate runs retain the shared all-lanes lock.
128+
group: qa-lab-${{ inputs.lock_scope || 'all' }}-${{ github.event_name != 'schedule' && inputs.ref || github.sha }}
122129
cancel-in-progress: false
123130
queue: max
124131

@@ -438,6 +445,10 @@ jobs:
438445
if: inputs.expected_sha == '' || inputs.run_matrix
439446
runs-on: blacksmith-16vcpu-ubuntu-2404
440447
timeout-minutes: 90
448+
concurrency:
449+
group: qa-live-matrix-${{ needs.validate_selected_ref.outputs.selected_revision }}
450+
cancel-in-progress: false
451+
queue: max
441452
environment: qa-live-shared
442453
steps:
443454
- name: Checkout selected ref
@@ -503,6 +514,7 @@ jobs:
503514
concurrency:
504515
group: qa-live-buzz-shared
505516
cancel-in-progress: false
517+
queue: max
506518
environment: qa-live-shared
507519
steps:
508520
- name: Checkout selected ref

‎docs/ci.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -656,7 +656,8 @@ The scheduled live/E2E workflow runs the full release-path Docker suite daily an
656656
QA Lab has dedicated CI lanes outside the main smart-scoped workflow. Agentic parity is nested under the broad QA and release harnesses, not a standalone PR workflow. Use `Full Release Validation` with `rerun_group=qa-parity` when parity should ride with a broad validation run.
657657

658658
- The `QA-Lab - All Lanes` workflow runs nightly on `main` and on manual dispatch; it fans out mock parity plus live Matrix, Telegram, Discord, WhatsApp, and Slack jobs. Live jobs use the `qa-live-shared` environment; Telegram, Discord, WhatsApp, and Slack use Convex leases, while Matrix provisions disposable local credentials.
659-
- Release Matrix catalog validation runs serially on a 16-vCPU Blacksmith runner with a 90-minute job budget. Changes to that timeout, runner size, or concurrency require a matching workflow guard and exact-candidate release proof.
659+
- Manual and scheduled aggregate runs retain the default `all` concurrency scope. Trusted release calls use separate `matrix` and `buzz` scopes so those lanes can run together for one target SHA; Matrix calls for the same SHA still serialize, while Buzz calls serialize across SHAs because they share pooled credentials.
660+
- Release Matrix catalog validation runs on a 16-vCPU Blacksmith runner with a 90-minute job budget. Changes to that timeout, runner size, or concurrency require a matching workflow guard and exact-candidate release proof.
660661
- `QA Profile Evidence` balances taxonomy category groups across eight isolated jobs, keeps non-isolating live channels on one shard, then asks QA Lab to merge their validated evidence into one attested `qa-evidence.json`. A timed-out or missing shard always fails aggregation; `allow_failures` applies only when every shard completed and produced valid evidence. Direct `Maturity scorecard` dispatches default `allow_failures` on so routine docs refreshes can publish accurate incomplete coverage, while reusable release calls remain strict by default.
661662

662663
Scheduled, manual, and release Matrix checks use the deterministic mock provider so the live transport contract is isolated from model latency and normal provider-plugin startup. Telegram release checks use the same deterministic model boundary. The live transport gateway disables memory search because QA parity covers memory behavior separately; provider connectivity is covered by the separate live model, native provider, and Docker provider suites.

‎test/scripts/ci-workflow-guards.test.ts‎

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1524,16 +1524,36 @@ describe("ci workflow guards", () => {
15241524
}
15251525
});
15261526

1527-
it("retains pending same-SHA QA calls in the shared concurrency group", () => {
1527+
it("separates release QA lanes without weakening their resource locks", () => {
15281528
const workflowPath = ".github/workflows/qa-live-transports-convex.yml";
15291529
const workflowSource = readFileSync(workflowPath, "utf8");
15301530
const workflow = parse(workflowSource);
1531+
const releaseWorkflow = readReleaseChecksWorkflow();
15311532

1533+
expect(workflow.on.workflow_call.inputs.lock_scope).toEqual({
1534+
description: "Concurrency scope for a trusted single-lane reusable call",
1535+
required: false,
1536+
default: "all",
1537+
type: "string",
1538+
});
15321539
expect(workflow.concurrency).toEqual({
1533-
group: "qa-lab-all-lanes-${{ github.event_name != 'schedule' && inputs.ref || github.sha }}",
1540+
group:
1541+
"qa-lab-${{ inputs.lock_scope || 'all' }}-${{ github.event_name != 'schedule' && inputs.ref || github.sha }}",
1542+
"cancel-in-progress": false,
1543+
queue: "max",
1544+
});
1545+
expect(workflow.jobs.run_live_matrix.concurrency).toEqual({
1546+
group: "qa-live-matrix-${{ needs.validate_selected_ref.outputs.selected_revision }}",
1547+
"cancel-in-progress": false,
1548+
queue: "max",
1549+
});
1550+
expect(workflow.jobs.run_live_buzz.concurrency).toEqual({
1551+
group: "qa-live-buzz-shared",
15341552
"cancel-in-progress": false,
15351553
queue: "max",
15361554
});
1555+
expect(releaseWorkflow.jobs.qa_live_release_checks.with.lock_scope).toBe("matrix");
1556+
expect(releaseWorkflow.jobs.qa_live_buzz_release_checks.with.lock_scope).toBe("buzz");
15371557
});
15381558

15391559
it("extracts module heredocs only at exact closing marker lines", () => {

0 commit comments

Comments
 (0)