Repository navigation
A final release tags only a commit whose image scan passed, and no step deletes a tag - #2074
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…etes a tag docker-smoke treats the runs a release relies on alike: the release pull request, its merge commit, a release/X.Y line, weekly and dispatched runs build uncached and fail their scans on a finding, named by scripts/gates/docker_smoke_gate.sh. The release skill pushes the final tag itself, once that run passed on the exact commit. check_tag, make_latest and the release process no longer say to delete a tag, which the tag rules refuse: a tag whose run published nothing stays, goes in UNRELEASED, and the next patch ships. prepare.py bump moves every install command in the docs (Pin.every). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…n gate fails closed Only a gating docker-smoke run counts before a tag; after a scan fix the target is dispatched and that run's commit tagged. A missing gate output keeps the scans strict. The skill prints a push the command rules refuse for the owner. A stray candidate after a partly published final ships the rest as the next patch. Tests cover a doc pin naming two versions or none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
zlareb1
force-pushed
the
fix/release-one-command
branch
from
December 3, 2026 11:27
575b2af to
ae8b0c5
Compare
… refreshes the notes The squash title is the commit's subject for a one-commit pull request, so the merge commit's push run gates only when its title reads Release X.Y.Z (#N); the check reads displayTitle and dispatches otherwise. A tag past the release pull request refreshes its notes. The release line merges into main with a merge commit, named in the skill as the exception to squash-merging. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…he merge-back reason is stated The skill merges the release PR with --subject "Release X.Y.Z (#N)", so the merge commit's push run always gates; a dispatch is left for a scan fix or another title. The gate qualifier comes before the tag commands. loom-ship-pr names the release-line merge into main as its one exception to squashing, and the release process gives the merge's real effect and cuts the line from the commit that should ship, including a final check-tag refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
… the merge-back is for main's own line A dispatch on the highest candidate's tag gates the final, whose images are built again, uncached. The release line merges into main only when main still names the dead version; an older line's dead tag needs nothing there. The line starts from the commit that should ship in every place that says so. A unit test fails on an install pin in the docs that the bump does not move, and the extras class takes a comma. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…a soaked final's patch soaks main's next release reads main's UNRELEASED, so a dead patch on its own line that only the line lists would start the notes and the upgrade rehearsal. The merge-back comes from a branch at release/X.Y's head and never deletes the line. The soak steps match between the skill and the page, the next patch goes from the commit that should ship, and the checks table names the install-pin guard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…push is spelled from a tag A candidate whose scan fails publishes nothing and costs only its number, so it is tagged on its merge commit without a gating run; the final keeps the fresh dispatch on the highest candidate's tag. The line's first push after a dead final is spelled from the tag of the commit that should ship, as after a published one. On main only the release title gates a merge commit's scan; every push to the line does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…nd only the tag push is refused prepare.py bump and the tag run's version job read UNRELEASED from the checkout, so the patch's release PR adds the dead tag before the bump. The committed rules refuse the tag push; the release/X.Y push the request covers is not matched by them. After a scan fix the skill dispatches docker-smoke on the target, as the page does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
… a weekly scan run gates Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
… name what they mean The bump rewrites a file's pins from its end; a test now bumps to a version of another length and fails without that order. The dead-tag bullet is a final's, and the final tag's row names a later commit a gating run passed on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
… code does Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…ate's inputs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
… gate's titles are named as it matches them Step 3 and the skill's default give one bullet per path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
… is its release pull request's Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…d the page merges the release pull request with its title gh workflow run returns before the run exists, so a listing by branch could show an older dispatch whose commit names the previous version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…ow the release paragraphs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
… a failed or missing dispatch means Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…annot finish Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…e scan-fix steps, word the re-run limits exactly Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…self The committed rules no longer deny an agent the version tag, the release dispatch or gh release create; the skill drops the owner hand-off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…ght reason a re-run still gates Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…dispatch, name the scan steps Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
… a gating run's age, rewrap Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…ng run by createdAt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…e, give the environment rule its own row Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…oo-old case to the code block Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
The age limit now covers every gating run, dispatched runs included; npm-n8n deploys only from v* and n8n-v* tags and the n8n publish fails until the package's first publish; the merge-commit exception is for a dead tag; the next-patch message is rewrapped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
The next-patch message and the stray-candidate passage name the same causes, and the version table names the extras install pins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
The docker-smoke gate output no longer reads as the ClickHouse release. Deleting a v* tag with --delete or -d stays denied now that the tag push is allowed, and the skill warns that a hand-made GitHub Release keeps its own notes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
A delete flag before or after the tag, the tag keyword and a :vX.Y.Z refspec are all refused; the test comment states why gh release create stays allowed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit a16dd45. Configure here.
The local deny rules catch the plain spellings of a v* tag deletion; the organization's tag ruleset refuses every deletion and move. A tag --dry-run is recorded as refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
A higher release on another line also takes Latest, not only the next patch of the dead final's line. A branch deletion after a merge is pinned as not denied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Merged
6 tasks done
zlareb1
added a commit
that referenced
this pull request
Dec 4, 2026
…ep deletes a tag (1.4) (#2114) * A final release tags only a commit whose image scan passed, and no step deletes a tag (#2074) * A release tags only a commit whose image scan passed, and no step deletes a tag docker-smoke treats the runs a release relies on alike: the release pull request, its merge commit, a release/X.Y line, weekly and dispatched runs build uncached and fail their scans on a finding, named by scripts/gates/docker_smoke_gate.sh. The release skill pushes the final tag itself, once that run passed on the exact commit. check_tag, make_latest and the release process no longer say to delete a tag, which the tag rules refuse: a tag whose run published nothing stays, goes in UNRELEASED, and the next patch ships. prepare.py bump moves every install command in the docs (Pin.every). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * Release tooling: a scan fix is tagged after a gating run, and the scan gate fails closed Only a gating docker-smoke run counts before a tag; after a scan fix the target is dispatched and that run's commit tagged. A missing gate output keeps the scans strict. The skill prints a push the command rules refuse for the owner. A stray candidate after a partly published final ships the rest as the next patch. Tests cover a doc pin naming two versions or none. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * Release tooling: the tag check reads the run's title, and a later tag refreshes the notes The squash title is the commit's subject for a one-commit pull request, so the merge commit's push run gates only when its title reads Release X.Y.Z (#N); the check reads displayTitle and dispatches otherwise. A tag past the release pull request refreshes its notes. The release line merges into main with a merge commit, named in the skill as the exception to squash-merging. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * Release tooling: the release PR merges with its gating subject, and the merge-back reason is stated The skill merges the release PR with --subject "Release X.Y.Z (#N)", so the merge commit's push run always gates; a dispatch is left for a scan fix or another title. The gate qualifier comes before the tag commands. loom-ship-pr names the release-line merge into main as its one exception to squashing, and the release process gives the merge's real effect and cuts the line from the commit that should ship, including a final check-tag refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * The standalone-skills bump test reads a pin through _matches Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * Release tooling: the final after a soak takes a fresh gating run, and the merge-back is for main's own line A dispatch on the highest candidate's tag gates the final, whose images are built again, uncached. The release line merges into main only when main still names the dead version; an older line's dead tag needs nothing there. The line starts from the commit that should ship in every place that says so. A unit test fails on an install pin in the docs that the bump does not move, and the extras class takes a comma. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * Release docs: a dead tag's UNRELEASED entry always reaches main, and a soaked final's patch soaks main's next release reads main's UNRELEASED, so a dead patch on its own line that only the line lists would start the notes and the upgrade rehearsal. The merge-back comes from a branch at release/X.Y's head and never deletes the line. The soak steps match between the skill and the page, the next patch goes from the commit that should ship, and the checks table names the install-pin guard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * Release docs: only the final waits for a gating scan, and every line push is spelled from a tag A candidate whose scan fails publishes nothing and costs only its number, so it is tagged on its merge commit without a gating run; the final keeps the fresh dispatch on the highest candidate's tag. The line's first push after a dead final is spelled from the tag of the commit that should ship, as after a published one. On main only the release title gates a merge commit's scan; every push to the line does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * Release docs: a dead tag enters UNRELEASED before the patch's bump, and only the tag push is refused prepare.py bump and the tag run's version job read UNRELEASED from the checkout, so the patch's release PR adds the dead tag before the bump. The committed rules refuse the tag push; the release/X.Y push the request covers is not matched by them. After a scan fix the skill dispatches docker-smoke on the target, as the page does. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * Release docs: the notes refresh before a tag past the release PR, and a weekly scan run gates Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * Format the install-pin test's line count Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * A test bumps to a longer version, and the dead-tag and final-tag rows name what they mean The bump rewrites a file's pins from its end; a test now bumps to a version of another length and fails without that order. The dead-tag bullet is a final's, and the final tag's row names a later commit a gating run passed on. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * The doc pin scan reads tracked pages, and three comments say what the code does Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * The pin test's target is always longer, and the smoke test pins the gate's inputs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * A stray candidate leaves the final's failed jobs re-runnable, and the gate's titles are named as it matches them Step 3 and the skill's default give one bullet per path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * check_tag names the final's run that published part as the one to re-run Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * The tag commands read the dispatched run's commit, and a patch's scan is its release pull request's Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * A dispatched scan is read by the commit named before the dispatch, and the page merges the release pull request with its title gh workflow run returns before the run exists, so a listing by branch could show an older dispatch whose commit names the previous version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * docs(release): read the soak dispatch by the candidate's commit, reflow the release paragraphs Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * docs(release): fetch the candidate tag before the soak read, say what a failed or missing dispatch means Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * fix(release): read a dispatch by commit and time, say what a re-run cannot finish Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * docs(release): re-run a flaky job on the merge commit's run, split the scan-fix steps, word the re-run limits exactly Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * chore(release): let the release skill tag and dispatch the release itself The committed rules no longer deny an agent the version tag, the release dispatch or gh release create; the skill drops the owner hand-off. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * docs(release): drop the approval and owner hand-off text, give the right reason a re-run still gates Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * docs(release): write the dispatch time in, wait a minute before a re-dispatch, name the scan steps Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * docs(release): tell a CVE finding from a scan that could not run, cap a gating run's age, rewrap Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * fix(release): word check_tag's refusal by the version job, age a gating run by createdAt Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * fix(release): lead check_tag's refusal with the nothing-published case, give the environment rule its own row Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * docs(release): name the release run in check_tag's refusal, add the too-old case to the code block Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * release: state the six-hour gate once, name the n8n environment rule The age limit now covers every gating run, dispatched runs included; npm-n8n deploys only from v* and n8n-v* tags and the n8n publish fails until the package's first publish; the merge-commit exception is for a dead tag; the next-patch message is rewrapped. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * release: list what a re-run cannot publish before saying where it ships The next-patch message and the stray-candidate passage name the same causes, and the version table names the extras install pins. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * release: name the gate output gates_release, keep v* tag deletion denied The docker-smoke gate output no longer reads as the ClickHouse release. Deleting a v* tag with --delete or -d stays denied now that the tag push is allowed, and the skill warns that a hand-made GitHub Release keeps its own notes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * release: deny every spelling of a v* tag deletion A delete flag before or after the tag, the tag keyword and a :vX.Y.Z refspec are all refused; the test comment states why gh release create stays allowed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * release: say the tag ruleset refuses what the local rules miss The local deny rules catch the plain spellings of a v* tag deletion; the organization's tag ruleset refuses every deletion and move. A tag --dry-run is recorded as refused. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * test: keep the reason for gh release create, not who decided Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * release: list the gating runs beside the true case; pre-check doc pins Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * release: a dead final holds Latest until a higher final ships A higher release on another line also takes Latest, not only the next patch of the dead final's line. A branch deletion after a merge is pinned as not denied. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * test: pin deleting a merged prep/release branch as not denied Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * test: spell the release line case as the skill does Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * test: put the tag-deletion note beside its cases; name the extras pin Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> --------- Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> (cherry picked from commit 34d4cf9) Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> * docs: install commands on the 1.4 line name 1.4.2 The pins the bump now moves were last moved by hand to 1.4.1; 1.4.2 is the line's published version. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> --------- Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Related: #2065
Related: #2068
Changelog category (leave one):
Changelog entry (one or two sentences a user of Loom can read without the diff; the release pull request collects these into the release notes):
A final release is tagged only on a commit whose image scan passed, and the release's version bump moves the install commands in the docs.
Why
v1.4.0was tagged on a commit whose image scan had only warned: #1814's docker-smoke scan found a critical fixed CVE undercontinue-on-error, and the tag run's scan then refused it. Av*tag is never moved or deleted (the tag rules), so the version was lost and 1.4.1 had to be cut fromrelease/1.4. #2065 made the release pull request's scan blocking; this makes the commit the tag names pass the same scan before anyone tags it.Failing cases, pattern and change:
v1.4.0tagged on a commit with no blocking scan; (2)check_tag's refusals and the release process tell an operator to delete a tag, which the tag rules refuse; (3)prepare.py bump 1.4.1left 18 install commands inframeworks.mdandmcp-clients.mdat 1.4.0, which PyPI and npm never got, and the image serves those pages throughhelp.search; (4) docker-smoke's blocking condition was copied into two steps and matched any title starting with "release " in any letter case.UNRELEASED, ship the next patch";Pin(every=True)moves every install pin.Scope and risk
scripts/gates/docker_smoke_gate.shprintsgates_release=truefor a weekly or dispatched run, a pull request intorelease/X.Yor a push there, and a pull request or pushed commit titledRelease X.Y.Z, with or without(#N)(the release pull request and its squash commit, which the tag names). docker-smoke'sclickhousejob runs it once; the quickstart job reads its output for the timeout,no-cacheon both builds (as the release builds) and the scans'continue-on-error, which isgates_release == 'false', so a missing gate output keeps them strict. The match takes the whole title and is case-sensitive, so "Release notes keep…" or "release 1.5.0" do not gate. Release-gating runs now build uncached, which about doubles their build: a few per minor release, and on a line every backport pull request push and every merge intorelease/X.Ytoo (before, only weekly and dispatched runs built uncached).loom-investigate-ci's quickstart row names the gated runs..claude/skills/loom-release/SKILL.md:release/X.Ypushes, therelease.ymldispatches and the registry jobs, so an agent runs the release from one request..claude/settings.jsonno longer deniesgit push * v*.*,gh workflow run release*orgh release create*, which the owner asked to lift (no release step creates the GitHub Release by hand, and the skill says thegithub-releasejob would then keep the hand-made notes); it now denies deleting av*tag (a delete flag before or after the tag, or a:vX.Y.Zrefspec), which the removedgit push * v*.*used to catch. These rules catch the plain spellings only: a quoted tag, a bundled-qd,gh release delete --cleanup-tag, or--force-with-leaseon a tag (denied before, now an ask) reach the organization'senforce-tag-floorruleset, which refuses deleting or moving anyv*tag and has no bypass. The delete-flag rules also refuse a tag push's--dry-run, before or after the tag; no release step runs one.test_agent_instructions.pylists the lifted commands, the"vX.Y.Z^{commit}:refs/heads/release/X.Y"push and deleting a merged branch (git push origin --delete <branch>) as not denied (none is inallow, so a session's own settings still decide whether it prompts), and eight tag-deletion spellings and a tag--dry-runas denied;git push --tags,--follow-tagsandrefs/tags/stay denied, as do pushes tomainand force pushes. The registry environments (pypi,npm,mcp-registry,crates-io) no longer have a required reviewer, a repository setting changed alongside this pull request; each still deploys only from av*tag. Two more settings changed with it:npm-n8n, which had no rule, now deploys only fromv*andn8n-v*tags, and thereview-and-ci-releaseruleset, which required reviews and checks onrelease/**, was deleted, so the skill no longer waits for arelease/X.Ypush's commit checks.AGENTS.md's release line now says the request covers merging the release pull request, the tag and the registry publication, where it named approving the registry environments; its pull-request line names the merge-commit exception for arelease/X.Yline merged intomainafter a dead tag. The skill runs each push as its own command, never inside a script, so the rules see it. Everyrelease/X.Ypush is spelled from a tag ("vX.Y.Z^{commit}:…", or the highest candidate's for a misplaced final). The dry run is not a gate. The preparation step no longer dispatches docker-smoke on a patch line: the patch's release pull request gates as a pull request intorelease/X.Y, and its run is the scan the step checks.COMMIT_OR_PR_TITLE, so a one-commit release pull request would take its commit's subject: the skill merges it with--subject "Release X.Y.Z (#N)", and the check reads the run'sdisplayTitle. After a failed scan, or for another title, the fix merges to the target and the skill names the target's commit, dispatches docker-smoke there, onmainand on the line alike (a fix commit's own push run onmaindoes not gate, and docker-smoke'spaths:filter skips some pushes), and tags that commit once a dispatched run listed by it passed:gh workflow runreturns before the run exists, so a listing by branch could show last week's dispatch on an older commit; a tag past the release pull request refreshes its notes first. A gating run created more than six hours before the tag (a re-run keeps its creation time) is too old, since the tag run's scan reads a newer vulnerability database.gh run list --commit <sha> --created ">=$since"), sincegh workflow runreturns before the run exists and an earlier dispatch on that commit would otherwise answer; a failed scan needs a fix, another failed job a new dispatch.UNRELEASEDin the patch's release pull request beforeprepare.py bump, which reads it, as the tag run'sversionjob does. A downgrade during a soak releases the next patch asvX.Y.<Z+1>-rc.1and soaks it, as the dead final was soaked. The verify step names the n8n nodes package, which fails to publish until an npm administrator's first publish of it..claude/skills/loom-ship-pr/SKILL.mdnames the merge of a branch atrelease/X.Y's head intomainas its one exception to squash-merging; that merge deletes only the branch, never the line..claude/skills/loom-pre-push/SKILL.md: thedocs/row addstest_release_prepare.pyfor a page with an install command that names a version, which that test now guards.scripts/release/prepare.py:check_tag's two refusals that printedgit push origin :refs/tags/...now nameUNRELEASEDand the next patch from the commit that should ship, and the stray candidate's also says its tag stays; for a final that published part before a stray candidate appeared, "Re-run failed jobs" on its own run skips that check, since every job needsversionand a re-run of failed jobs does not repeat it; what the re-run cannot publish (a scan finding or a build that needs a fix, a refused ClickHouse downgrade, a run past 30 days or after "Re-run all jobs") ships as the next patch, and the message and the release process both say so.Pintakesevery: found at least once and naming one version wherever it is;bumprewrites each occurrence. Three such pins cover theclickhouse-loom==and@clickhouse/loom@installs inframeworks.mdand the--ref vinmcp-clients.md.scripts/release/make_latest.py: the docstring only; it and the release process say a dead final holds Latest below it until a higher final ships, normally the next patch of its line. SkippingUNRELEASEDtags there would matter only for a patch to an older line released while a newer line's dead final waits for its next patch; Latest then stays on the previous patch. Left out:make_latest.pywould have to importprepare.py's list for that one case.docs/development/release-process.md: the branches-and-tags table and the paragraph under it let a line start from the commit that should ship after a deadvX.Y.0, and a final go on a later commit of its target that a gating run passed on; the release notes start from the highest released final below the release (prepare.py previous); the scan paragraph names the gating runs; step 2 merges the release pull request with--subject "Release X.Y.Z (#<n>)", as the skill does; step 3 tags only after a gating run passed, one sub-bullet per path (the merge commit, another title or a scan fix, a candidate soak, the final after it); the stray-candidate, Latest, ClickHouse-job and downgrade passages no longer delete tags; the unpublished-tag paragraph cuts the line from the commit that should ship (the dead tag's after a failed scan or build, the highest candidate's for a misplaced final) and brings theUNRELEASEDentry tomain, sinceprepare.py previousonmainreadsmain's list (a deadv1.4.2that onlyrelease/1.4lists would otherwise start 1.5.0's notes and its upgrade rehearsal): a merge commit from a branch at the line's head wheremainstill names the dead version (as Main carries the Loom 1.4.1 fixes and version #2068 did), a one-line pull request otherwise; the version table lists the doc pins, and the checks table'stest_release_prepare.pyrow names the install-pin guard overdocs/andREADME.md. Step 4 and the recovery dispatch publish with no approval step, under the tag-only environment rules, and the listings paragraph asks formcp-registryandcrates-ioto be limited tov*tags before their first use. The prerequisites table names the registry environments' one rule (deploy only fromv*tags, no required reviewer; nothing checks it),npm-n8n's (v*andn8n-v*tags) and therelease/**rule as it now is (pull requests only, no deletion or force push).tests/unit/test_standalone_skills.pyreads a pin through_matches(pin, text)[0], which replaced_match.release/1.4: that line'sprepare.pystill prints the tag-deletion command and has no doc pins, and its docker-smoke builds push runs with the cache. A 1.4.x patch needs this change there first: once this merges, it is cherry-picked torelease/1.4in its own pull request.docs/reference/environment.mdnamesNPM_VERSIONamong the Dockerfile's build arguments;docs/guides/issue-code-pointers.mdnames 1.4.1 as the first installable SDK with those methods (1.4.0 was never published).Compatibility, rollout and rollback
npm-n8n's tag rule and the deletedreview-and-ci-releaseruleset are repository settings; restoring any of them is a settings change, not a revert.Tests
tests/unit/test_docker_quickstart_smoke.py: the gate script over twelve cases, including the release merge commit's subject, aRelease X.Y.Zonly on a later line of a pushed commit's message (no gate; it fails withhead -n 1removed from the script), both title forms on both events, a "Release notes…" title and a lower-case "release 1.5.0"; the workflow passes the gate the event, ref, base and title (a pull request's, or a pushed commit's message), and reads it for its timeout, both builds'no-cacheand both scans.tests/unit/test_release_prepare.py: the refusals nameUNRELEASEDand the next patch, and norefs/tagsdeletion; the existing bump test now also covers the doc pins (every changed line moves the current version to the target); aneverypin naming two versions or none is refused; everyclickhouse-loom==,@clickhouse/loom@and--ref vinstall indocs/andREADME.mdmust be one a pin moves (the extras class takes a comma), andvalidaterefuses a doc pin on another version before a bump writes. A bump to a version one digit longer (the current patch with a 1 before it) keeps every later pin of a file whole; with the rewrite in file order instead of from the end, that test fails.tests/unit/test_agent_instructions.py: the tag push, the line's branch push, the release dispatch,gh release createand deleting a merged branch (git push origin --delete prep/release-1.2.3) are not denied; eight spellings of deleting av*tag are:--deleteor-dbefore or after the remote, after the tag, with thetagkeyword, and a:v1.2.3refspec, and so is a tag push's--dry-run(with the three new deny rules removed, the first case fails).bump 1.5.0in a throwaway checkout moved exactly the 18 doc pins andcheck()returned no errors.gates_releaserename (the later commits change nothing docker-smoke runs: tests, comments and docs only), setgates_release, took the gating side (uncached builds, 75-minute timeout, strict scans) and passed: https://github.com/ClickHouse/loom/actions/runs/47206733193.test_release_prepare.py,test_release_version.py,test_docker_quickstart_smoke.py,test_agent_instructions.py,test_doc_links.py,test_public_copy.pyandtest_standalone_skills.py;make format-check(ruff, biome, prettier, taplo, shfmt), ruff and mypy pass. CI'sformatjob stops at biome on a filemainbroke (Format the assistant source-link assertion #2107 fixes it), so this local run is the evidence for prettier, taplo and shfmt.AI assistance in the code (leave one; writing this description with AI is fine):
AI-generated (Claude Code): traced why
v1.4.0's scan failure was missed, wrote the gate, the pin change and the doc edits, and ran the checks above.I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
make test-unitand applicable integration results are reported by CI; a full local run is not required before pushing.docs/describe the system as it now is, and this description names any operator steps and wire changes.tests/unit/test_public_copy.py).git commit -s), as CONTRIBUTING.md asks.🤖 Generated with Claude Code
Note
Medium Risk
Changes release gating and operator procedures for immutable version tags; mistakes could delay or mishandle a cut, but runtime product behavior is unchanged.
Overview
Adds
scripts/gates/docker_smoke_gate.shas the single definition of which docker-smoke runs gate a release: scheduled/dispatched runs,release/X.Ypushes and PRs, and PRs or merge commits whose first-line title is exactlyRelease X.Y.Z(optional(#N)). The workflow readsgates_releasefor longer timeouts, uncached image builds, and strict Trivy scans (non-gating runs only warn).Release docs and agent skills now require tagging a final only after a recent passing gating run on that commit, merging release PRs with
--subject "Release X.Y.Z (#N)"so the merge run gates, and recovering failed releases viaUNRELEASED+ next patch instead of deletingv*tags.prepare.py bumpgainsPin.everyso install pins inframeworks.mdandmcp-clients.mdmove with the version;check_tagerrors follow the same no-delete policy..claude/settings.jsonallows routinegit push origin v*.*, release workflow dispatches, andgh release create, while denying common tag-deletion and tag--dry-runspellings. Tests cover the gate matrix, workflow wiring, doc install pins, and permission lists.Reviewed by Cursor Bugbot for commit c562a0c. Bugbot is set up for automated code reviews on this repo. Configure here.