Repository navigation
release: compose-pin scripts, drift check and the manual release step (split of #4732, no workflow change) - #4905
Conversation
…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.
…not the mutable tag
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Signed-off-by: Guillaume Loret <[email protected]>
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]>
Warden review summary — ClearNative 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
Advisories
Needs recheck
Observed review-thread metrics
Thread states are read-only collection snapshots. These metrics are neither lifetime totals nor exact resolution times, and this summary is not clearance authority. |
There was a problem hiding this comment.
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
|
Passed · 12/12 tests · 18/18 assertions · 8 images Commit |
…squash-merge) Signed-off-by: Guillaume Loret <[email protected]>
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) pinsopenwork-den-api/openwork-den-webby<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 whenv0.18.46was tagged (#4756 fixed that by hand, using this PR's script from the #4732 branch).What this PR contains
scripts/release/pin-compose-images.mjspin --version X.Y.Z --digest openwork-den-api=sha256:… --digest openwork-den-web=sha256:…rewrites everyghcr.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 inpackages/docs/self-host/evaluate-with-docker-compose.mdxandpackaging/docker/README.md.scripts/release/check-compose-pins.mjs: fails when a pinned den-api/den-web tag ≠ the highest stablev*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.Zoverrides the tag lookup for dry runs.scripts/release/pin-compose-images.test.mjs: 6node --testcases, picked up by the existingnode --test scripts/release/*.test.mjsstep inci-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.ymlpin-eval-composejob (records the pushed digests, opens an auto-approved, auto-merging pin PR todevafter each stable tag),compose-pins-drift.yml(daily + path-filtered drift check) and the one-linee2e-test-failure-alerts.ymlwiring. 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)node --test scripts/release/*.test.mjsnode scripts/release/check-compose-pins.mjs(this tree, highest tagv0.18.46, pins 0.18.46){"ok":true, "problems":[]}exit 0node scripts/release/check-compose-pins.mjs --expected 0.18.47openwork-den-api/den-webpinned to 0.18.46 but the released version is 0.18.47 — the drift the next release will producegit diff origin/dev...HEAD -- .github