On this page
On this page
Testing and CI
Full Release Validation
Validate an exact candidate, then publish its qualified artifacts. Part of Release validation workflows.
Mobile store releases
- Run
iOS Store Release(ios-store-release.yml) orAndroid Store Release(android-store-release.yml) onmainwith defaults. iOS also offersscreenshotswithout upload. Each platform queues uploads without cancelling active ones. - Local equivalents, from clean current
main:pnpm ios:release:upload/pnpm android:release:upload. Both freeze source, plan from repository versions/store state, generate notes, build, sign, and upload. - Set
OPENAI_API_KEYlocally; Actions uses the same-named secret. See each app'sfastlane/SETUP.mdfor platform/signing/store credentials. - Preparation changes no tracked files and creates no commits/PRs. Upload records bind the original SHA under
refs/openclaw/mobile-releases/. Actions keeps plans,release-notes.json, and available signed binaries for 30 days. - After failure, inspect artifacts and store state before another upload. App Review submission and Android production promotion remain manual.
Preview notes without building/uploading:
- Android: use
--platform androidandandroid-plan.jsonfor phone/Wear. Plans bind version/build, source SHA, and public baseline builds. Historical candidates need matching--source-sha <full-commit-sha>available locally. - Existing output is validated/reused without a model call; use a new output path for another draft.
- Generation uses OpenAI Responses structured output, source extraction, and separate factual review; covers app/shared code, Play sources, and Watch RTC. Notes must fit store limits; generation/review failure stops upload.
- Inspect saved notes before public promotion: models can miss changes. Reproduce notes by retaining artifacts, not rerunning the model.
Full Release Validation
Choose and freeze the run
- Bind candidate C, qualification Q, and admission/publication P.
expected_shamismatch fails before child dispatch. Q=C by default; the candidate route can admit a reviewed main-ancestor Q against unchanged C. P owns authority/verification, not substitute tests. - Validation SHA means Code SHA for product validation or Release SHA for changelog-only validation—not another identity.
- Profiles:
beta= fastest OpenAI/core lanes, normallyrun_release_soak=false;stable= regular stable provider/backend set;full= broad provider/media matrix. Manual workflows default to stable. Stable/full always run exhaustive live/E2E and Docker release-path soak; beta opts in withrun_release_soak=true. - See the reference for stages, job names,
npm-beta-v1/npm-stable-v1coverage, artifacts, and rerun handles.
Coverage and runners
| Surface | Contract |
|---|---|
normal_ci |
Exact target/release scope through ci.yml, without release_gate. Every selected failure blocks, including Windows Node. Typechecks use OPENCLAW_TYPECHECKER=tsgo; PR/main CI use tsrs. |
Complete campaigns (rerun_group=all) |
Full QA Smoke and Control UI performance regardless of changed paths. Hosted manual QA Smoke uses six parts; normal hybrid first attempts use four, with equal coverage. |
| Docker seed | All ordinary manual/release scopes, including npm-beta/npm-stable: cron-mcp-cleanup, mcp-channels, mcp-code-mode-gateway, published-upgrade-survivor, update-channel-switch. |
| Survivor | legacy-operator-state + auto-auth: published driver updates the running managed Gateway. Required on admitted upstream main and frozen targets declaring support. Historical/missing catalogs use base + auto-auth; invalid catalogs fail. Targets without the tier selector retain survivor fallback. |
| Automatic PR coverage | Complete survivor deferred to hourly main/FRV; other Docker lanes and QA Smoke retain owner maps. Regressions outside automatic owner paths or in release-only lanes may first surface here. |
| Packages | Ordinary manual CI builds full declarations. FRV Docker seed uses existing smoke package and 16-class Blacksmith when no release runner group is configured; coverage unchanged. Main/selected PRs (including exact-head release gates) use ciArtifacts + shared --skip-build packer, retaining runtime, public SDK declarations, and integrity checks. Hourly protected warmer retains full declarations. |
| Runtime selection | Capable targets run complete Node inventory plus admitted Bun selections sequentially per worker; both must pass. This includes full Control UI/retention assertions when admitted. Older targets retain Node and only their admitted Bun/UI selections. |
| Package Acceptance | Expanded published-upgrade scenarios; unpublished candidates include native operator state; stable/full force reported-issues soak. Ordinary survivor restart and update-restart-auth base do not replace Docker seed proof. |
| Immutable inputs | Full Release Artifacts / Full Release Candidate prepare package/images; candidate checks consume them without reducing coverage. Release Checks resolves one release-package-under-test tarball for cross-OS, Package Acceptance, and soak Docker consumers; preparation budget: 35 minutes. |
| Codex live plugin | Use matching published spec from release_package_spec, explicit codex_plugin_spec, or blank to pack the selected checkout's plugin. |
| Historical harnesses | Docker seed needs its declared capability; QA Smoke needs supported harness; historical performance retains availability handling. Narrow groups and verified reuse retain their contracts. |
| Metadata validation | Live/E2E selected-ref job fetches full ref/commit history sparsely; ancestry/release-ref checks unchanged. Build/test jobs check out full source. |
| Runner placement | Upstream hybrid target resolution, evidence reuse, candidate discovery/binding/resolution use small Blacksmith. Other repositories/modes use hosted runners; explicit hosted override is honored. Long decision/diagnostic collectors stay hosted. Outage/retry routes and serial weighted lane admission remain unchanged. |
Publish qualified artifacts
- After the release tag and successful npm preflight (including
pnpm plugins:sync:check), dispatchOpenClaw Release Publishfrom protected lightweightrelease-publish/<tooling-sha12>-<epoch>at frozen Tooling SHA. The release tag selects the exact release commit, includingrelease/YYYY.M.PATCH. - Set
preflight_run_idandfull_release_validation_run_idto the same successful FRV run; pinfull_release_validation_run_attempt. The sealedpublicationArtifacts.npmPreflightdescriptor identifies the independent artifact producer; producer ID alone is not authorization. - Historical recovery may use separate successful
OpenClaw NPM Releasepreflight plus matching FRV run/attempt. See tooling-tag commands. Real core/plugin npm or ClawHub publication frommainis rejected before children; Docker-only recovery may use main. - Publisher dispatches all publishable
Plugin NPM Releasepackages and same-SHAPlugin ClawHub Release, thenOpenClaw NPM Releaseafter plugin npm succeeds. Focused repairs useplugin_publish_scope=selectedplus nonempty list; plugin-onlyall-publishableneeds the same immutable npm/FRV evidence as core.
Docker: after source/image preparation (or supplied prepared artifacts), a separate job requests docker-release environment approval. Only the approved publisher enters the global docker-release-publish registry/alias lock, then revalidates source, artifacts, attestations, and aliases before writes. Caller supplies Docker Hub secrets. Failed preparation, denied approval, or cancellation cannot publish.
Native publication:
- Windows is optional: provide both exact
windows_node_tagand candidate-approvedwindows_node_installer_digestsfor signed installers after GitHub release finalization; omit both to skip. - Legacy npm-stable Android: matching tagged
apps/android/version.jsonand stable base version starts separate exact-release-SHA full CI with Android. Revalidate success after core publication before creating the existing approval receipt and dispatching tag-owned APK. - Native failure blocks Android approval, not core npm/GitHub finalization; the parent may remain active afterward. Existing full evidence and independent macOS qualification are unchanged.
- Current source has no Android version manifest, so Gateway publication skips Android; current Android releases use the independent Play workflow. Legacy tagged-source recovery retains its eligibility, qualification, protected approval, signing, and verification requirements. A mismatched legacy pin skips qualification/APK.
Dispatch and recover
For exact proof on moving branches, use the helper rather than gh workflow run ... --ref main -f ref=<sha>:
- On main,
--admission-workflow-shais a reviewed ancestry anchor and may advance to a verified descendant. Add--pin-admission-workflowto freeze it; protectedrelease-publish/*admission refs are always pinned. - Beta:
npmDistTag=beta. Useroute=preparedonly for prepared-button consumers. Source admission verifies committed metadata; fresh publishes also require selected npm/ClawHub registry admission before fanout. Neither grants publication authority. See Dispatch. - Nonpublish: explicitly select
diagnostic,main-qualification, orpostpublish-confidence; omit publication selection. Profiles/filters still determine coverage. - GitHub dispatch refs must be branches/tags, not raw SHAs. Even dry runs prove bare-SHA fetchability in a fresh repository. Admission then creates immutable
release-ci/*at Q and passes C inref/expected_sha. New childheadShamust equal Q; reused evidence retains original Q/coverage. Record C/Q/P; never refresh Q from moving main. Regular release branches accept their final package version or matching beta. fail_fast=falsegathers independent child failures.truecancels a child after its first failed job and enables Release Checks Matrix QA first-scenario cancellation.Verify full validationchecks recorded child IDs within that parent attempt. Parent cancellation/timeout leaves adopted children running; cancel unneeded children explicitly.- Classify every failure as blocker/flake and product, harness/tooling/provenance, infrastructure/credential, or wrapper before editing. Only confirmed product failures require changing C. Q-only recovery needs new admission and successful parent.
- Fix the owner before explicit narrow
rerun_group; no automatic failed-test retry or widening to all. Flakes: at most two explicit same-SHA reruns plus tracked main fix; record eligible persistent failure instead of changing tooling, recutting, or another FRV. Narrow evidence alone cannot authorize publication. - Concurrency: Validation SHA + Tooling SHA + rerun group + profile + effective soak;
cancel-in-progress: false. Release Checks uses the same coverage identity per phase, so profiles do not queue behind each other. Explicit stable/full soak flags do not create another group.
Was this useful?