Skip to content

Commit b0fe106

Browse files
authored
test: validate upgrades from latest stable (#133666)
* test: validate upgrades from latest stable * test: drop redundant baseline command assertion
1 parent c753bbd commit b0fe106

16 files changed

Lines changed: 222 additions & 153 deletions

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,7 +1409,6 @@ jobs:
14091409
prepublish_plugin_registry_json: ${{ needs.resolve_target.outputs.package_acceptance_package_spec == '' && needs.prepare_release_package.outputs.prepublish_plugin_registry_json || '' }}
14101410
suite_profile: custom
14111411
docker_lanes: release-typed-onboarding 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
1412-
published_upgrade_survivor_baselines: ${{ needs.resolve_target.outputs.run_release_soak == 'true' && 'last-stable-4 2026.4.23 2026.5.2 2026.4.15' || '' }}
14131412
published_upgrade_survivor_scenarios: ${{ needs.resolve_target.outputs.run_release_soak == 'true' && 'reported-issues' || '' }}
14141413
telegram_mode: ${{ (needs.resolve_target.outputs.telegram_waiver != '' || needs.resolve_target.outputs.skip_package_telegram_e2e == 'true') && 'none' || 'mock-openai' }}
14151414
telegram_advisory: true

‎.github/workflows/package-acceptance.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ jobs:
798798
set -euo pipefail
799799
fallback_baseline="$FALLBACK_BASELINE"
800800
if [[ "$fallback_baseline" == "openclaw@latest" ]]; then
801-
fallback_version="$(npm view openclaw@latest version)"
801+
fallback_version="$(npm view openclaw@latest version --prefer-online)"
802802
[[ "$fallback_version" =~ ^[0-9]{4}\.[0-9]+\.[0-9]+(-[A-Za-z0-9.-]+)?$ ]] || {
803803
echo "Could not resolve openclaw@latest to an exact release version." >&2
804804
exit 1

‎.github/workflows/update-migration.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ on:
1414
required: true
1515
type: string
1616
baselines:
17-
description: Published baselines to migrate; use all-since-2026.4.23 for full coverage
18-
default: all-since-2026.4.23
19-
required: true
17+
description: Optional historical baselines; blank uses latest stable, all-since-2026.4.23 replays history
18+
default: ""
19+
required: false
2020
type: string
2121
scenarios:
2222
description: Update survivor scenarios

‎docs/ci.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ see [Testing updates and plugins](/help/testing-updates-plugins).
760760

761761
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.
762762

763-
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.
763+
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` keeps the latest stable baseline, resolved once to an exact npm package before fanout, and sets `published_upgrade_survivor_scenarios=reported-issues` to exercise every issue-shaped fixture 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 defaults to that same latest stable baseline and the `plugin-deps-cleanup` scenario. Pass `baselines=all-since-2026.4.23` for exhaustive historical cleanup; `last-stable-4`, `release-history`, and exact historical versions also remain explicit manual selections. 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.
764764

765765
### Legacy compatibility windows
766766

‎docs/help/testing-updates-plugins.md‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ Important lanes:
111111
- `test:docker:upgrade-survivor` installs the candidate tarball over a dirty
112112
old-user fixture, runs package update plus non-interactive doctor, then starts
113113
a loopback Gateway and checks state preservation.
114-
- `test:docker:published-upgrade-survivor` first installs a published baseline,
114+
- `test:docker:published-upgrade-survivor` first installs the latest stable release,
115115
configures it through a baked `openclaw config set` recipe, updates it to the
116116
candidate tarball, runs doctor, checks legacy cleanup, starts the Gateway, and
117117
probes `/healthz`, `/readyz`, and RPC status.
@@ -120,7 +120,8 @@ Important lanes:
120120
`openclaw update --yes --json`, and requires the candidate update command to
121121
restart the Gateway before the normal probes.
122122
- `test:docker:update-migration` is the cleanup-heavy published-update lane. It
123-
starts from a configured Discord/Telegram-style user state, runs baseline
123+
installs the latest stable release by default, starts from a configured
124+
Discord/Telegram-style user state, runs baseline
124125
doctor so configured plugin dependencies have a chance to materialize, seeds
125126
legacy plugin dependency debris for a configured packaged plugin, updates to
126127
the candidate tarball, and requires post-update doctor to remove the legacy
@@ -181,10 +182,11 @@ Scale the fixture with `OPENCLAW_UPGRADE_SURVIVOR_VOLUME_SESSIONS`,
181182
idempotent Doctor pass is 60 seconds; override it with
182183
`OPENCLAW_UPGRADE_SURVIVOR_VOLUME_IDEMPOTENCE_BUDGET_SECONDS` on slower hosts.
183184

184-
Full update migration is intentionally separate from Full Release CI. Use the
185-
manual `Update Migration` workflow when the release question is "can every
186-
published stable release from 2026.4.23 onward update to this candidate and
187-
clean up plugin dependency debris?":
185+
The manual `Update Migration` workflow defaults to the latest stable release
186+
and updates it to the selected `package_ref` artifact (`main` by default).
187+
Leave `baselines` blank to use that default. For an explicit historical replay
188+
from every published stable release since 2026.4.23, pass
189+
`baselines=all-since-2026.4.23`:
188190

189191
```bash
190192
gh workflow run update-migration.yml \
@@ -235,7 +237,6 @@ When release soak is enabled (forced on for `release_profile=stable` and
235237
`full`), they also pass:
236238

237239
```text
238-
published_upgrade_survivor_baselines=last-stable-4 2026.4.23 2026.5.2 2026.4.15
239240
published_upgrade_survivor_scenarios=reported-issues
240241
telegram_mode=mock-openai
241242
```
@@ -245,15 +246,15 @@ tolerance, stale plugin dependency cleanup, offline plugin coverage, plugin
245246
update behavior, and Telegram package QA on the same resolved artifact without
246247
making the default release package gate walk every published release.
247248

248-
`last-stable-4` resolves to the four latest stable npm-published OpenClaw
249-
releases. Release package acceptance pins `2026.4.23` as the first plugin-update
250-
compatibility boundary, `2026.5.2` as a plugin-architecture churn boundary, and
251-
`2026.4.15` as an older 2026.4.1x published-update baseline; the resolver
252-
dedupes pins that are already in the latest four. For exhaustive published
253-
update migration coverage, use `all-since-2026.4.23` in the separate Update
254-
Migration workflow instead of Full Release CI. `release-history` remains
255-
available for manual wider sampling when you also want the legacy pre-date
256-
anchor.
249+
Routine release proof resolves npm `latest` once to an exact stable package
250+
before Docker fanout and runs every `reported-issues` scenario against that
251+
baseline. The candidate remains the selected package-under-test tarball.
252+
253+
For manual historical coverage, `last-stable-4` selects four recent stable
254+
npm-published releases. Exact versions, `all-since-2026.4.23`, and
255+
`release-history` remain available through `published_upgrade_survivor_baselines`.
256+
Use those overrides when replaying a historical migration, rather than adding
257+
old releases to every routine release run.
257258

258259
When multiple published-upgrade survivor baselines are selected, the reusable
259260
Docker workflow shards each baseline into its own targeted runner job. Each
@@ -270,7 +271,6 @@ gh workflow run package-acceptance.yml \
270271
-f source=npm \
271272
-f package_spec=openclaw@beta \
272273
-f suite_profile=package \
273-
-f published_upgrade_survivor_baselines="last-stable-4 2026.4.23 2026.5.2 2026.4.15" \
274274
-f published_upgrade_survivor_scenarios=reported-issues \
275275
-f telegram_mode=mock-openai
276276
```

0 commit comments

Comments
 (0)