Skip to content

Commit ec46992

Browse files
committed
fix(ci): avoid unnecessary release verification delays
1 parent 61a75f5 commit ec46992

17 files changed

Lines changed: 287 additions & 79 deletions

‎.agents/skills/release-openclaw-ci/SKILL.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ until their dependent enforcement changes land.
147147
`run_release_soak=true` or explicit focused groups
148148
- `stable-publish`: `release_profile=stable`
149149
- Keep at most one active parent for the same Validation SHA + Tooling SHA + rerun
150-
group. Concurrency does not cancel an older exact child automatically.
150+
group + release profile + effective soak coverage. Stable/full always include
151+
soak. Distinct coverage profiles can run independently; concurrency does not
152+
cancel an older exact child automatically.
151153
- Parent cancellation or timeout leaves adopted identity-checked children
152154
running. The operator must cancel an exact child explicitly when it is no
153155
longer useful. Do not infer a child identity from branch, title prefix, or

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4488,7 +4488,9 @@ jobs:
44884488
permissions:
44894489
contents: read
44904490
name: "ios-screenshots-${{ matrix.device_family }}"
4491-
needs: [preflight, ios-build]
4491+
# Each shard builds its own simulator app; ios-build produces no input here.
4492+
# The final CI gate still requires both build and screenshot evidence.
4493+
needs: [preflight]
44924494
# Full manual/release validation always captures. PRs and their exact-head
44934495
# release-gate substitutes use the same conservative screenshot-risk scope.
44944496
if: ${{ ((github.event_name == 'workflow_dispatch' && (!inputs.release_gate || needs.preflight.outputs.run_ios_screenshots == 'true')) || (github.event_name == 'pull_request' && needs.preflight.outputs.run_ios_screenshots == 'true')) && needs.preflight.outputs.compatibility_target != 'true' }}

‎.github/workflows/full-release-validation.yml‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,9 @@ permissions:
155155
contents: read
156156

157157
concurrency:
158-
group: full-release-validation-${{ inputs.expected_sha || inputs.ref }}-${{ github.sha }}-${{ inputs.rerun_group }}
158+
# Profiles own different coverage and verdicts, so their admission is independent.
159+
# Stable/full force soak, so their explicit soak flag must not split the lock.
160+
group: full-release-validation-${{ inputs.expected_sha || inputs.ref }}-${{ github.sha }}-${{ inputs.rerun_group }}-${{ inputs.release_profile }}-${{ inputs.run_release_soak || inputs.release_profile == 'stable' || inputs.release_profile == 'full' }}
159161
cancel-in-progress: false
160162

161163
env:

‎.github/workflows/openclaw-live-and-e2e-checks-reusable.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1606,6 +1606,7 @@ jobs:
16061606
timeout-minutes: ${{ matrix.group.timeout_minutes || 60 }}
16071607
strategy:
16081608
fail-fast: false
1609+
max-parallel: 32
16091610
matrix:
16101611
group: ${{ fromJson(needs.plan_docker_lane_groups.outputs.groups_json) }}
16111612
env:
@@ -1668,7 +1669,7 @@ jobs:
16681669
OPENCLAW_PREPUBLISH_PLUGIN_REGISTRY_MANIFEST_SHA256: ${{ needs.prepare_docker_e2e_image.outputs.prepublish_plugin_registry_manifest_sha256 }}
16691670
OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC: ${{ inputs.published_upgrade_survivor_baseline }}
16701671
OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPECS: ${{ matrix.group.published_upgrade_survivor_baselines || inputs.published_upgrade_survivor_baselines }}
1671-
OPENCLAW_UPGRADE_SURVIVOR_SCENARIOS: ${{ inputs.published_upgrade_survivor_scenarios }}
1672+
OPENCLAW_UPGRADE_SURVIVOR_SCENARIOS: ${{ matrix.group.published_upgrade_survivor_scenarios || inputs.published_upgrade_survivor_scenarios }}
16721673
OPENCLAW_DOCKER_E2E_REQUIRE_LOCAL_IMAGE: ${{ inputs.shared_image_policy == 'no-push-artifact' && '1' || '0' }}
16731674
OPENCLAW_SKIP_DOCKER_BUILD: "1"
16741675
INCLUDE_OPENWEBUI: ${{ inputs.include_openwebui }}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ on:
136136
type: string
137137

138138
concurrency:
139-
group: openclaw-release-checks-${{ inputs.expected_sha || inputs.ref }}-${{ github.sha }}-${{ inputs.rerun_group }}-${{ inputs.phase }}
139+
# Keep independent parent coverage independent through child admission too.
140+
group: openclaw-release-checks-${{ inputs.expected_sha || inputs.ref }}-${{ github.sha }}-${{ inputs.rerun_group }}-${{ inputs.phase }}-${{ inputs.release_profile }}-${{ inputs.run_release_soak || inputs.release_profile == 'stable' || inputs.release_profile == 'full' }}
140141
cancel-in-progress: ${{ startsWith(github.ref, 'refs/heads/tideclaw/alpha/') }}
141142

142143
env:

‎docs/ci.md‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Separate bootstrap and checkout flows in preflight, security, skills-python, Cla
165165

166166
Scope logic lives in `scripts/ci-changed-scope.mjs` and is covered by unit tests in `src/scripts/ci-changed-scope.test.ts`. Ordinary manual dispatch skips changed-scope detection and makes the preflight manifest act as if every scoped area changed. The exact-head `release_gate` exception evaluates the fetched pull request merge tree and retains its macOS, iOS-build, screenshot-risk, and generated-native-locale decisions while still verifying native sources.
167167

168-
Release screenshot routing is deliberately conservative because an app change can break deterministic App Store capture without breaking compilation. Pull requests and exact-head release gates run the full iPhone, iPad, and Watch matrix when the diff touches `apps/ios/**`, linked OpenClawKit or Swabble code, Apple Swift configuration, or the scripts used by screenshot capture. CI runs at most two device shards in parallel, keeps scenarios serial within each device, and captures Watch evidence in the iPhone shard. A hosted reducer verifies the exact evidence union before publishing the sole canonical artifact consumed by `openclaw/ci-gate`. Ordinary manual CI and Full Release Validation always run that matrix. The screenshot decision is independent of macOS routing; a pure iOS app change does not select macOS jobs by itself.
168+
Release screenshot routing is deliberately conservative because an app change can break deterministic App Store capture without breaking compilation. Pull requests and exact-head release gates run the full iPhone, iPad, and Watch matrix when the diff touches `apps/ios/**`, linked OpenClawKit or Swabble code, Apple Swift configuration, or the scripts used by screenshot capture. The two device shards start alongside `ios-build`, because each owns its simulator build and consumes no output from that job. CI keeps scenarios serial within each device and captures Watch evidence in the iPhone shard. The final gate independently requires the build and both screenshot shards. A hosted reducer verifies the exact evidence union before publishing the sole canonical artifact consumed by `openclaw/ci-gate`. Ordinary manual CI and Full Release Validation always run that matrix. The screenshot decision is independent of macOS routing; a pure iOS app change does not select macOS jobs by itself.
169169

170170
Separate iOS and macOS Periphery workflows enforce a zero-findings dead-code policy. Each runs only when a non-draft pull request touches its native scan scope, or when manually dispatched.
171171

@@ -578,8 +578,12 @@ and one narrow `rerun_group` retry, then reassess; never widen automatically to
578578
`OpenClaw Release Checks` uses the trusted workflow ref to resolve the selected ref once into a `release-package-under-test` tarball, then passes that artifact to cross-OS checks and Package Acceptance, plus the live/E2E release-path Docker workflow when soak coverage runs. That keeps the package bytes consistent across release boxes and avoids repacking the same candidate in multiple child jobs. For the Codex npm-plugin live lane, release checks either pass a matching published plugin spec derived from `release_package_spec`, pass the operator-supplied `codex_plugin_spec`, or leave the input blank so the Docker script packs the selected checkout's Codex plugin.
579579

580580
Full Release Validation concurrency is keyed by Validation SHA, Tooling SHA,
581-
and rerun group with `cancel-in-progress: false`. Parent cancellation does not
582-
cancel adopted children.
581+
rerun group, release profile, and effective soak coverage with
582+
`cancel-in-progress: false`. Release Checks uses the same coverage identity in
583+
each phase, so beta, stable, and full requests do not queue behind each other.
584+
Stable/full always include soak; setting their soak flag explicitly does not
585+
create another concurrency group. Parent cancellation does not cancel adopted
586+
children.
583587

584588
## Live and E2E shards
585589

@@ -649,7 +653,7 @@ see [Testing updates and plugins](/help/testing-updates-plugins).
649653

650654
Release checks call Package Acceptance with `source=artifact`, the prepared release package artifact, `suite_profile=custom`, `docker_lanes='doctor-switch update-channel-switch skill-install update-corrupt-plugin upgrade-survivor published-upgrade-survivor root-managed-vps-upgrade update-restart-auth plugins-offline plugin-update plugin-binding-command-escape'`, and `telegram_mode=mock-openai`. This keeps package migration, update, live ClawHub skill install, stale-plugin-dependency cleanup, configured-plugin install repair, offline plugin, plugin-update, and Telegram proof on the same resolved package tarball. Set `release_package_spec` on Full Release Validation or OpenClaw Release Checks after publishing a beta to run the same matrix against the shipped npm package without rebuilding; set `package_acceptance_package_spec` only when Package Acceptance needs a different package from the rest of release validation. Cross-OS release checks still cover OS-specific onboarding, installer, and platform behavior; package/update product validation should start with Package Acceptance.
651655

652-
The `published-upgrade-survivor` Docker lane validates one published package baseline per run in the blocking release path. In Package Acceptance, the resolved `package-under-test` tarball is always the candidate and `published_upgrade_survivor_baseline` selects the fallback published baseline, defaulting to `openclaw@latest`; failed-lane rerun commands preserve that baseline. Full Release Validation with `run_release_soak=true` or `release_profile=full` sets `published_upgrade_survivor_baselines='last-stable-4 2026.4.23 2026.5.2 2026.4.15'` and `published_upgrade_survivor_scenarios=reported-issues` to expand across the four latest stable npm releases plus pinned plugin-compatibility boundary releases and issue-shaped fixtures for Feishu config, preserved bootstrap/persona files, configured OpenClaw plugin installs, tilde log paths, and stale legacy plugin dependency roots. Multi-baseline published-upgrade survivor selections are sharded by baseline into separate targeted Docker runner jobs. The separate `Update Migration` workflow uses the `update-migration` Docker lane with `all-since-2026.4.23` baselines and `plugin-deps-cleanup` scenarios when the question is exhaustive published update cleanup, not normal Full Release CI breadth. Local aggregate runs can pass exact package specs with `OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPECS`, keep a single lane with `OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC` such as `[email protected]`, or set `OPENCLAW_UPGRADE_SURVIVOR_SCENARIOS` for the scenario matrix. The published lane configures the baseline with a baked `openclaw config set` command recipe, records recipe steps in `summary.json`, and probes `/healthz`, `/readyz`, plus RPC status after Gateway start. The Windows packaged and installer fresh lanes also verify that an installed package can import a browser-control override from a raw absolute Windows path. The OpenAI cross-OS agent-turn smoke defaults to `OPENCLAW_CROSS_OS_OPENAI_MODEL` when set, otherwise `openai/gpt-5.6-luna`, so the install and gateway proof uses the lower-cost GPT-5.6 test tier.
656+
The `published-upgrade-survivor` Docker lane validates one published package baseline per run in the blocking release path. In Package Acceptance, the resolved `package-under-test` tarball is always the candidate and `published_upgrade_survivor_baseline` selects the fallback published baseline, defaulting to `openclaw@latest`; failed-lane rerun commands preserve that baseline. Full Release Validation with `run_release_soak=true` or `release_profile=full` sets `published_upgrade_survivor_baselines='last-stable-4 2026.4.23 2026.5.2 2026.4.15'` and `published_upgrade_survivor_scenarios=reported-issues` to expand across the four latest stable npm releases plus pinned plugin-compatibility boundary releases and issue-shaped fixtures for Feishu config, preserved bootstrap/persona files, configured OpenClaw plugin installs, tilde log paths, and stale legacy plugin dependency roots. Expanded published-upgrade survivor and update-migration selections are split by baseline into groups of at most three scenarios, with at most 32 targeted Docker jobs active per matrix. Grouping shares the execution planner’s baseline-compatibility policy, so every supported scenario runs exactly once without creating empty shards for old baselines. Each scenario still owns a fresh container and the unchanged npm resource limit; package and image identities remain shared across the matrix. The separate `Update Migration` workflow uses the `update-migration` Docker lane with `all-since-2026.4.23` baselines and `plugin-deps-cleanup` scenarios when the question is exhaustive published update cleanup, not normal Full Release CI breadth. Local aggregate runs can pass exact package specs with `OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPECS`, keep a single lane with `OPENCLAW_UPGRADE_SURVIVOR_BASELINE_SPEC` such as `[email protected]`, or set `OPENCLAW_UPGRADE_SURVIVOR_SCENARIOS` for the scenario matrix. The published lane configures the baseline with a baked `openclaw config set` command recipe, records recipe steps in `summary.json`, and probes `/healthz`, `/readyz`, plus RPC status after Gateway start. The Windows packaged and installer fresh lanes also verify that an installed package can import a browser-control override from a raw absolute Windows path. The OpenAI cross-OS agent-turn smoke defaults to `OPENCLAW_CROSS_OS_OPENAI_MODEL` when set, otherwise `openai/gpt-5.6-luna`, so the install and gateway proof uses the lower-cost GPT-5.6 test tier.
653657

654658
### Legacy compatibility windows
655659

@@ -741,7 +745,7 @@ The slow Bun global install and runtime smoke is separately gated by `run_bun_gl
741745
- a bare Node/Git runner for installer/update/plugin-dependency lanes;
742746
- a functional image that installs the same tarball into `/app` for normal functionality lanes.
743747

744-
Docker lane definitions live in `scripts/lib/docker-e2e-scenarios.mts`, planner logic lives in `scripts/lib/docker-e2e-plan.mts`, and the runner only executes the selected plan. The scheduler selects the image per lane with `OPENCLAW_DOCKER_E2E_BARE_IMAGE` and `OPENCLAW_DOCKER_E2E_FUNCTIONAL_IMAGE`, then runs lanes with `OPENCLAW_SKIP_DOCKER_BUILD=1`.
748+
Docker lane definitions live in `scripts/lib/docker-e2e-scenarios.mts`, planner logic lives in `scripts/lib/docker-e2e-plan.mts`, and the runner only executes the selected plan. The scheduler selects the image per lane with `OPENCLAW_DOCKER_E2E_BARE_IMAGE` and `OPENCLAW_DOCKER_E2E_FUNCTIONAL_IMAGE`, then runs lanes with `OPENCLAW_SKIP_DOCKER_BUILD=1`. Live lanes that use these package images do not require the separate source live-test image; model/backend lanes that consume the source image still prepare it.
745749

746750
### Tunables
747751

‎docs/reference/full-release-validation.md‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,8 +314,12 @@ publish consumers. The verifier always prefers the attempt-qualified artifact;
314314
as a transition, it accepts the stable name only for an attempt-1 manifest v2
315315
producer. It rejects that legacy name for later attempts and manifest v3.
316316

317-
Concurrency is keyed by Validation SHA, Tooling SHA, and rerun group and does
318-
not cancel an older run. Parent cancellation or timeout leaves adopted
317+
Concurrency is keyed by Validation SHA, Tooling SHA, rerun group, release
318+
profile, and effective soak coverage, and does not cancel an older run. The
319+
Release Checks child also separates profiles and effective soak, preserving
320+
independent admission through both workflow levels. Stable/full normalize soak
321+
to enabled, so explicitly enabling it does not admit a duplicate request.
322+
Parent cancellation or timeout leaves adopted
319323
identity-checked children running and records `cancelled_with_children` when
320324
the state collector can complete its cancellation handoff. Cancel an exact
321325
child explicitly when it is no longer useful. Do not run a second foreground
@@ -367,6 +371,12 @@ empty:
367371
| `plugins-runtime-install-a` through `plugins-runtime-install-h` | Plugin install/runtime batches split for parallel release validation. |
368372
| `openwebui` | OpenWebUI compatibility smoke isolated on a dedicated large-disk runner when requested. |
369373

374+
Expanded published-upgrade survivor and update-migration coverage runs in
375+
baseline-specific groups of at most three scenarios, with up to 32 targeted
376+
Docker jobs active per matrix. The grouping and execution planners share the
377+
same baseline compatibility rules; package identities, fresh scenario
378+
containers, per-runner npm limits, and failure reporting remain unchanged.
379+
370380
Use targeted `docker_lanes=<lane[,lane]>` on the reusable live/E2E workflow when
371381
only one Docker lane failed. The release artifacts include per-lane rerun
372382
commands with package artifact and image reuse inputs when available.

‎scripts/lib/docker-e2e-plan.mts‎

Lines changed: 1 addition & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ import {
2525
normalizeUpgradeSurvivorBaselineSpec,
2626
parseUpgradeSurvivorBaselineSpecs,
2727
parseUpgradeSurvivorScenarios,
28+
supportsUpgradeSurvivorScenarioAtBaseline,
2829
} from "./upgrade-survivor-policy.mjs";
2930

3031
export { DEFAULT_LIVE_RETRIES };
@@ -53,7 +54,6 @@ export const RELEASE_PATH_PROFILE = "release-path";
5354

5455
type LiveMode = "all" | "only" | "skip";
5556
type DockerProfile = typeof DEFAULT_PROFILE | typeof RELEASE_PATH_PROFILE;
56-
type PublishedReleaseVersion = { year: number; month: number; patch: number };
5757
type UpgradeSurvivorExpansion = { lanes: DockerE2eLane[]; omittedLaneNames: string[] };
5858
type DockerE2ePlanOptions = {
5959
allowFrozenTargetScenarioOmissions?: boolean;
@@ -262,56 +262,6 @@ function filterUpgradeSurvivorScenariosForTarget(
262262
return scenarios.filter((scenario) => supportedScenarios.has(scenario));
263263
}
264264

265-
function parsePublishedReleaseVersion(spec: string | undefined): PublishedReleaseVersion | null {
266-
const match = /^openclaw@([0-9]{4})\.([0-9]+)\.([0-9]+)/u.exec(spec ?? "");
267-
if (!match) {
268-
return null;
269-
}
270-
return {
271-
year: Number(match[1]),
272-
month: Number(match[2]),
273-
patch: Number(match[3]),
274-
};
275-
}
276-
277-
function comparePublishedReleaseVersion(a: PublishedReleaseVersion, b: PublishedReleaseVersion) {
278-
return a.year - b.year || a.month - b.month || a.patch - b.patch;
279-
}
280-
281-
function supportsUpgradeSurvivorPluginDependencyCleanup(baselineSpec: string | undefined) {
282-
if (!baselineSpec) {
283-
return true;
284-
}
285-
const version = parsePublishedReleaseVersion(baselineSpec);
286-
if (!version) {
287-
return true;
288-
}
289-
return comparePublishedReleaseVersion(version, { year: 2026, month: 4, patch: 23 }) >= 0;
290-
}
291-
292-
function supportsUpgradeSurvivorAcpToolsBridge(baselineSpec: string | undefined) {
293-
if (!baselineSpec) {
294-
return true;
295-
}
296-
const version = parsePublishedReleaseVersion(baselineSpec);
297-
if (!version) {
298-
return true;
299-
}
300-
return comparePublishedReleaseVersion(version, { year: 2026, month: 4, patch: 22 }) >= 0;
301-
}
302-
303-
function supportsUpgradeSurvivorScenarioAtBaseline(
304-
scenario: string | undefined,
305-
baselineSpec: string | undefined,
306-
) {
307-
return (
308-
(scenario !== "plugin-deps-cleanup" ||
309-
supportsUpgradeSurvivorPluginDependencyCleanup(baselineSpec)) &&
310-
(scenario !== "acpx-openclaw-tools-bridge" ||
311-
supportsUpgradeSurvivorAcpToolsBridge(baselineSpec))
312-
);
313-
}
314-
315265
function expandedUpgradeSurvivorLaneName(
316266
poolLaneName: string,
317267
baselineSpec: string | undefined,

0 commit comments

Comments
 (0)