Skip to content

release: compose-pin scripts, drift check and the manual release step (split of #4732, no workflow change) - #4905

Merged
yomgui merged 6 commits into
devfrom
release/compose-pin-scripts
Sep 11, 2026
Merged

yomgui merged 6 commits into
devfrom
release/compose-pin-scripts

Conversation

@yomgui

@yomgui yomgui commented Sep 11, 2026

Copy link
Copy Markdown
Member

Split of #4732 (2026-09-11): this PR lands the scripts, tests and the manual release step so Warden can self-clear it; #4732 is reduced to the three workflow files that automate the same sequence after each release, stacked on this branch, and waits for a human approving review.

Problem (from #4732)

packaging/docker/docker-compose.eval.yml (the documented pull-only evaluation stack) pins openwork-den-api / openwork-den-web by <version>@<digest>, and the docs download it by commit sha + sha256. Nothing in the release pipeline owns that file, so the pins sat at 0.18.37 through eight releases until #4729, and were stale again minutes later when v0.18.46 was tagged (#4756 fixed that by hand, using this PR's script from the #4732 branch).

What this PR contains

  • scripts/release/pin-compose-images.mjs
    • pin --version X.Y.Z --digest openwork-den-api=sha256:… --digest openwork-den-web=sha256:… rewrites every ghcr.io/different-ai/openwork-* image line (incl. den-migrate); refuses partial digests, malformed versions/digests, or a file without both pinned images.
    • docs --commit <sha> recomputes the compose sha256 and rewrites the raw.githubusercontent commit URL + checksum in packages/docs/self-host/evaluate-with-docker-compose.mdx and packaging/docker/README.md.
  • scripts/release/check-compose-pins.mjs: fails when a pinned den-api/den-web tag ≠ the highest stable v* tag (scripts/release/versions.mjs latest), when a doc checksum ≠ sha256 of the compose file in the same tree, or when the two docs point at different commits. --expected X.Y.Z overrides the tag lookup for dry runs.
  • scripts/release/pin-compose-images.test.mjs: 6 node --test cases, picked up by the existing node --test scripts/release/*.test.mjs step in ci-tests.yml — no workflow change needed for them to run on every PR.
  • docs/RELEASING.md: the manual pin sequence (the one fix(packaging): pin the compose evaluation stack to the 0.18.46 images #4756 ran), as a documented post-release step until the automation in ci(release): pin the compose evaluation stack automatically after each release (gated remainder of #4732; scripts in #4905) #4732 lands.

Not in this PR (stays in #4732)

publish-ee-images.yml pin-eval-compose job (records the pushed digests, opens an auto-approved, auto-merging pin PR to dev after each stable tag), compose-pins-drift.yml (daily + path-filtered drift check) and the one-line e2e-test-failure-alerts.yml wiring. That automation is what actually closes the gap — the manual step documented here is the same process that let the pins go stale for eight releases — but it is workflow-only and needs a human approver.

Verification (head 60c34ebbd, local lane — release scripting with no product surface)

Command Result
node --test scripts/release/*.test.mjs tests 35 · pass 35 · fail 0
node scripts/release/check-compose-pins.mjs (this tree, highest tag v0.18.46, pins 0.18.46) {"ok":true, "problems":[]} exit 0
node scripts/release/check-compose-pins.mjs --expected 0.18.47 3 problems: openwork-den-api/den-web pinned to 0.18.46 but the released version is 0.18.47 — the drift the next release will produce
git diff origin/dev...HEAD -- .github empty

…h release

packaging/docker/docker-compose.eval.yml pinned den-api/den-web by hand and
nothing in the release pipeline owned it, so evaluators ran 0.18.37 while
0.18.45 was released (#4729). After a stable tag publishes the EE images,
publish-ee-images.yml now resolves the pushed OCI index digests and opens
an auto-approved, auto-merging PR to dev that rewrites the pins and the
docs' download commit + checksum (scripts/release/pin-compose-images.mjs).
A Compose pins drift workflow (scripts/release/check-compose-pins.mjs)
fails when the pins are not the highest stable v* tag, the version source
the Release App workflow itself uses.
Split of #4732: lands scripts/release/pin-compose-images.mjs (pin + docs
rewrites, refuses partial or malformed input), check-compose-pins.mjs (drift
check against the highest stable tag) and their node --test cases, which the
existing `node --test scripts/release/*.test.mjs` step already picks up.
docs/RELEASING.md documents the manual pin sequence #4756 used. The three
workflow files that automate this after each release stay in #4732, stacked
on this branch, for a human review.

Signed-off-by: Guillaume Loret <[email protected]>
@vercel

vercel Bot commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
openwork-app Ready Ready Preview Sep 11, 2026 7:32pm UTC
openwork-den Ready Ready Preview Sep 11, 2026 7:32pm UTC
openwork-diagnostics Ready Ready Preview Sep 11, 2026 7:32pm UTC
openwork-landing Ready Ready Preview, v0 Sep 11, 2026 7:32pm UTC

yomgui added a commit that referenced this pull request Sep 11, 2026
The scripts, tests and manual release step now live in #4905 (self-clearable
by Warden). This branch keeps only the three .github/workflows files; the
tree is unchanged.

Signed-off-by: Guillaume Loret <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Warden review summary — Clear

Native findings: 0. Blocking policy matches before consolidation: 0. Full finding text remains in Warden's native checks and review threads. This comment retains only native IDs, severity, skill attribution, and safe locations. Analysis run

Reported trigger coverage (not proof of complete repository or context coverage): diff-security-review (12161 ms), confidentiality-review (13040 ms).

Blockers

  • None.

Advisories

  • None.

Needs recheck

  • None.

Observed review-thread metrics

  • Unique observed run attempts in retained window: 1
  • Distinct heads in retained window: 1
  • Current unresolved Warden threads: 0 of 0 observed
  • Observed resolved/unresolved transitions in retained snapshots: 0 / 0
  • First observed resolved/unresolved (state at first collection, not event time): 0 / 0
  • Precision: unavailable (no adjudications; no TP/FP values are inferred)
  • Observation window: 1/20 run attempts retained; truncated: false
  • Transition snapshot: 0/0 current attributed threads retained (limit 500); truncated: false

Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority.

@diff-warden diff-warden Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warden security clearance: clear. No blocking findings (security or desktop↔den sync) in this diff (bd9a48d18c9f22d3ffc0fe1a343d6a267c536354). Automated clearance satisfies the required-review gate only — a human still reviews and merges. Analysis run

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying openwork with  Cloudflare Pages  Cloudflare Pages

Latest commit: bd9a48d
Status:🚫  Build failed.

View logs

@github-actions

Copy link
Copy Markdown
Contributor

Passed · 12/12 tests · 18/18 assertions · 8 images

Commit bd9a48d18c9f22d3ffc0fe1a343d6a267c536354 · selected evidence

Open review report

@yomgui
yomgui merged commit 229c115 into dev Sep 11, 2026
28 of 29 checks passed
@yomgui
yomgui deleted the release/compose-pin-scripts branch September 11, 2026 19:58
yomgui added a commit that referenced this pull request Sep 11, 2026

This branch was successfully deployed

4 active deployments
Preview – openwork-landing — bd9a48d1 Deployed Sep 11, 2026 by vercel[bot]
Preview – openwork-app — bd9a48d1 Deployed Sep 11, 2026 by vercel[bot]
Preview – openwork-den — bd9a48d1 Deployed Sep 11, 2026 by vercel[bot]
Preview – openwork-diagnostics — bd9a48d1 Deployed Sep 11, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant