Repository navigation
feat(docker): weekly refresh of published moving image tags - #123348
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 13, 2026, 10:11 PM ET / August 14, 2026, 02:11 UTC. ClawSweeper reviewWhat this changesAdds a weekly GitHub Actions workflow that rebuilds stable and extended-stable Docker images with dated immutable tags and advances their moving aliases. Merge readinessKeep open: this maintainer-labeled PR intentionally changes the update contract for moving Docker tags and needs release-owner confirmation; read-only repository inspection was blocked by the execution sandbox. Priority: P2 Review scores
Verification
How this fits togetherDocker release workflows build tagged OpenClaw source into immutable images and then promote moving aliases for operators. This adds a scheduled refresh path between formal releases while retaining the existing release workflow as the publisher. flowchart LR
A[Release tags] --> B[Weekly refresh planner]
B --> C[Channel and SHA selection]
C --> D[Docker release workflow]
D --> E[Dated immutable images]
E --> F[Moving Docker aliases]
Decision needed
Why: This changes what existing moving-tag deployments receive outside the established release cadence; the PR body asserts approval, but the supplied discussion contains no independently verifiable owner decision. Before merge
Findings
Agent review detailsSecurityNeeds attention: The supplied diff touches scheduled registry publishing, but sandbox failure prevented verification that the reusable workflow preserves the intended approval and secret boundaries. PR surfaceTests +389, Docs +6, Config +170, Other +58. Total +623 across 13 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain immutable version tags and the existing publish-environment approval, then land only after the release owner confirms that weekly updates to documented moving tags are intended. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR proposes a new scheduled release workflow rather than reporting a current-main defect. Is this the best way to solve the issue? Unclear: reusing the existing release workflow appears directionally appropriate, but the sandbox failure prevented verification of its exact publish and approval boundary. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against a3303b9435a6. LabelsLabel changes:
Label justifications:
EvidenceSecurity concerns:
What I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
Stock macOS bash 3.2 lacks mapfile; CI truth is Linux bash 5.
#123345 added the file without a project owner; the full-suite coverage guard fails for any PR that runs it.
c1e8958 to
7f4b713
Compare
ci-build-artifacts-testbox.yml pinned PR runs to blacksmith-16vcpu and ran Testbox lifecycle steps unconditionally, so the prepare-run landing gate starved for every PR during a Blacksmith outage even with OPENCLAW_CI_RUNNER_BACKEND=github. PR events now build on ubuntu-24.04 with dispatch-only Testbox steps, mirroring ci-check-testbox.yml.
|
Merged via squash.
|
…#123348) * feat(docker): schedule image refreshes * docs(docker): explain weekly image refreshes * test(scripts): gate workflow-step execution on bash 4 mapfile support Stock macOS bash 3.2 lacks mapfile; CI truth is Linux bash 5. * test: cover docker-release suffix threading and sanctioned second caller * test(codex): wire run-attempt-state into the attempt-extra project openclaw#123345 added the file without a project owner; the full-suite coverage guard fails for any PR that runs it. * fix(ci): run build-artifacts PR validation on hosted runners ci-build-artifacts-testbox.yml pinned PR runs to blacksmith-16vcpu and ran Testbox lifecycle steps unconditionally, so the prepare-run landing gate starved for every PR during a Blacksmith outage even with OPENCLAW_CI_RUNNER_BACKEND=github. PR events now build on ubuntu-24.04 with dispatch-only Testbox steps, mirroring ci-check-testbox.yml. * test(ci): align build-artifacts dispatch guard
…ease (#4) OpenClaw's release CI already publishes to VCR. openclaw/openclaw#120058 (merged 2026-08-10) added vercel-container-registry-publish.yml, which covers stable, extended-stable and beta across the default, slim and browser variants, and smoke-tests the immutable image in Vercel Sandbox before promoting moving aliases. openclaw/openclaw#123348 (merged 2026-08-14) rebuilds the moving tags weekly. Both supersede this repo's interim mirror and the handoff patch written for it, so remove docs/upstream-ci.md and .github/workflows/mirror-image.yml. The mirror was also never functional here: VERCEL_VCR_TOKEN was never configured, so every scheduled run since 2026-08-12 skipped and reported success. The VCR repository belongs to the OpenClaw Foundation, so only a Foundation member can mint that token, which makes upstream's own pipeline the correct owner rather than something to work around. Retarget the forward-looking suspend references from 2026.7.2 to 2026.8.1. 2026.7.2 never shipped stable; the beta line moved to 2026.8.1. Verified 2026-08-17 from npm: latest is 2026.7.1-2, beta is 2026.8.1-beta.2, and the gateway.suspend.* triad is present in 2026.8.1-beta.2. References to 2026.7.2-beta.7 as the version validated against are unchanged, since that is what was tested. Record what the public image actually serves, boot-verified 2026-08-17 from a non-owning Vercel team: latest and slim run 2026.7.1, 2026.7.2-beta.7 runs in plain, -slim and -amd64 forms, and the 2026.8.1 beta tags did not resolve from VCR although 2026.8.1-beta.2 was present on ghcr.
What Problem This Solves
Implements #123312. Published moving Docker tags (
latest*,main*,extended-stable*) are built once at release time and then rot: Debian point-release security fixes, npm-CLI updates, and base refreshes never reach them until the next stable release. The currentlatest-browserships Chromium 149 while main pins 151 — ~1,275 of its 1,966 Grype findings are that single stale artifact. #123282 hardened what goes into a build; this makes the published moving tags stop aging between releases.Why This Change Was Made
docker-release.ymlgains one additive input,image_tag_suffix(validated^-r[0-9]{8}$, default""). When set, every version-identified image tag, manifest, attestation ref, and VCR source ref gains the suffix on both registries (e.g.2026.8.1-r20260820,-slim,-browser, per-arch forms). With the default empty suffix the workflow is behaviorally unchanged — plain releases are untouched.scripts/docker-channel-promote.mjsthreads the suffix into alias promotion source refs (--image-tag-suffix); the existing base-version rollback protection is unchanged, so aliases can never move backward and stable/extended-stable stay separate.scripts/lib/docker-release-policy.mjsgainsresolveCurrentDockerReleaseTags(+--currentstdin mode) that resolves the newest stable and extended-stable tags fromgit tagoutput using the existing channel policy — no new tag-parsing logic..github/workflows/docker-image-refresh.yml: weekly schedule (Mon 03:17 UTC) + manual dispatch (channelstable/extended-stable/both,dry_run). A main-branch-guarded plan job resolves current channel tags/SHAs and a dated suffix, publishes a plan summary, then (unless dry-run) callsdocker-release.ymlper channel via the matrix. The existingdocker-releaseenvironment approval inside the called workflow remains the human publish gate — nothing bypasses or weakens it. Beta is never rebuilt.docs/install/docker.mddocuments the weekly refresh and that plain version tags and dated-rYYYYMMDDtags are immutable pin targets.User Impact
Operators following
latest*/extended-stable*pick up current OS security updates weekly without waiting for an OpenClaw release; scanner posture of published images stops degrading between releases (the staleness class Echo's comparison post exploited). Version-pinned deployments are unaffected. New config surface: one optional workflow-call input and one scheduled workflow; no runtime, CLI, or config-file surface changes.Compatibility and Release-Owner Decision
The release owner explicitly approves the weekly cadence for moving stable and extended-stable aliases and accepts that existing followers will receive base-image refreshes between formal releases. The optional
workflow_callinput defaults to the prior behavior, immutable plain version tags remain unchanged, and the existingdocker-releaseenvironment approval remains the publication gate.ClawSweeper's requested main-branch dry-run is intentionally deferred until this workflow exists on
main; #123312 remains open to track that first dry-run dispatch before the first real scheduled publication.Evidence
test/scripts/ci-workflow-guards.test.ts; suffix threading +--currentresolution unit tests (docker-channel-promote.test.ts26/26 on Linux — verified in a Linux container; the one execution-backed case is guardedrunIf(bash>=4)because stock macOS bash 3.2 lacksmapfile, which the workflow already used pre-change;docker-release-policy.test.ts10/10).v2026.7.1-2→0790d9f593ad, extended-stablev2026.6.34→5c38f996d405, suffix-r20260813.image_tag_suffix=""every tag/manifest/attestation construction reduces to the previous strings (suffix concatenation only; validated in the threading diff and covered by existing promote tests).Post-land verification plan: dispatch
docker-image-refresh.ymlwithdry_run=trueand confirm the plan summary before the first scheduled run; the first real run still requires thedocker-releaseenvironment approval.Main-breakage repair carried by this rebased head: test/vitest-projects.ts now wires src/agents/pi-embedded-runner/run-attempt-state.test.ts into the normal full-suite project coverage. This repairs the unowned test introduced on main by #123345; the complete projects-coverage guard is green at this head. The build-artifacts landing gate was also unsatisfiable during Blacksmith outages because ci-build-artifacts-testbox.yml was missed by the runner-backend breaker extension; fixed here in commit df2b1b6.
ClawSweeper's read-only checkout rerun remains sandbox-blocked; green exact-head CI and fresh local Codex autoreview provide the independent source and gate verification, so no redundant re-review is requested.