Skip to content

A final release tags only a commit whose image scan passed, and no step deletes a tag - #2074

Merged
zlareb1 merged 40 commits into
mainfrom
fix/release-one-command
Dec 3, 2026
Merged

zlareb1 merged 40 commits into
mainfrom
fix/release-one-command

Conversation

@zlareb1

@zlareb1 zlareb1 commented Dec 3, 2026 •

Copy link
Copy Markdown
Member

Related: #2065
Related: #2068

Changelog category (leave one):

  • Build/Testing/Packaging Improvement

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.0 was tagged on a commit whose image scan had only warned: #1814's docker-smoke scan found a critical fixed CVE under continue-on-error, and the tag run's scan then refused it. A v* tag is never moved or deleted (the tag rules), so the version was lost and 1.4.1 had to be cut from release/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:

  • Failing cases: (1) v1.4.0 tagged 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.1 left 18 install commands in frameworks.md and mcp-clients.md at 1.4.0, which PyPI and npm never got, and the image serves those pages through help.search; (4) docker-smoke's blocking condition was copied into two steps and matched any title starting with "release " in any letter case.
  • Pattern: each release step trusts a state that does not hold: a scan that warned, a tag that can be deleted, pins the bump does not move.
  • Change: one gate script names the runs a release relies on; the release's merge commit is one of them; the skill tags only after it passed; every delete-a-tag instruction becomes "the tag stays, add it to UNRELEASED, ship the next patch"; Pin(every=True) moves every install pin.

Scope and risk

  • scripts/gates/docker_smoke_gate.sh prints gates_release=true for a weekly or dispatched run, a pull request into release/X.Y or a push there, and a pull request or pushed commit titled Release X.Y.Z, with or without (#N) (the release pull request and its squash commit, which the tag names). docker-smoke's clickhouse job runs it once; the quickstart job reads its output for the timeout, no-cache on both builds (as the release builds) and the scans' continue-on-error, which is gates_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 into release/X.Y too (before, only weekly and dispatched runs built uncached). loom-investigate-ci's quickstart row names the gated runs.
  • .claude/skills/loom-release/SKILL.md:
    • The release request covers the tag and release/X.Y pushes, the release.yml dispatches and the registry jobs, so an agent runs the release from one request. .claude/settings.json no longer denies git push * v*.*, gh workflow run release* or gh release create*, which the owner asked to lift (no release step creates the GitHub Release by hand, and the skill says the github-release job would then keep the hand-made notes); it now denies deleting a v* tag (a delete flag before or after the tag, or a :vX.Y.Z refspec), which the removed git 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-lease on a tag (denied before, now an ask) reach the organization's enforce-tag-floor ruleset, which refuses deleting or moving any v* 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.py lists 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 in allow, so a session's own settings still decide whether it prompts), and eight tag-deletion spellings and a tag --dry-run as denied; git push --tags, --follow-tags and refs/tags/ stay denied, as do pushes to main and 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 a v* tag. Two more settings changed with it: npm-n8n, which had no rule, now deploys only from v* and n8n-v* tags, and the review-and-ci-release ruleset, which required reviews and checks on release/**, was deleted, so the skill no longer waits for a release/X.Y push'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 a release/X.Y line merged into main after a dead tag. The skill runs each push as its own command, never inside a script, so the rules see it. Every release/X.Y push 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 into release/X.Y, and its run is the scan the step checks.
    • The final is pushed only once a gating docker-smoke run passed on its commit. The repository's squash title is 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's displayTitle. 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, on main and on the line alike (a fix commit's own push run on main does not gate, and docker-smoke's paths: filter skips some pushes), and tags that commit once a dispatched run listed by it passed: gh workflow run returns 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.
    • Only the final waits for a gating scan: a candidate whose scan fails publishes nothing and costs only its number, so it goes on its merge commit at once. After a soak, the final waits for a docker-smoke dispatch on the highest candidate's tag, since its images are built again, uncached, and the notes are refreshed there when that commit is past the release pull request. A dispatch is read by its commit and by a time taken before it (gh run list --commit <sha> --created ">=$since"), since gh workflow run returns 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.
    • A dead tag enters UNRELEASED in the patch's release pull request before prepare.py bump, which reads it, as the tag run's version job does. A downgrade during a soak releases the next patch as vX.Y.<Z+1>-rc.1 and 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.md names the merge of a branch at release/X.Y's head into main as its one exception to squash-merging; that merge deletes only the branch, never the line.
  • .claude/skills/loom-pre-push/SKILL.md: the docs/ row adds test_release_prepare.py for 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 printed git push origin :refs/tags/... now name UNRELEASED and 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 needs version and 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. Pin takes every: found at least once and naming one version wherever it is; bump rewrites each occurrence. Three such pins cover the clickhouse-loom== and @clickhouse/loom@ installs in frameworks.md and the --ref v in mcp-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. Skipping UNRELEASED tags 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.py would have to import prepare.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 dead vX.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 the UNRELEASED entry to main, since prepare.py previous on main reads main's list (a dead v1.4.2 that only release/1.4 lists would otherwise start 1.5.0's notes and its upgrade rehearsal): a merge commit from a branch at the line's head where main still 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's test_release_prepare.py row names the install-pin guard over docs/ and README.md. Step 4 and the recovery dispatch publish with no approval step, under the tag-only environment rules, and the listings paragraph asks for mcp-registry and crates-io to be limited to v* tags before their first use. The prerequisites table names the registry environments' one rule (deploy only from v* tags, no required reviewer; nothing checks it), npm-n8n's (v* and n8n-v* tags) and the release/** rule as it now is (pull requests only, no deletion or force push).
  • tests/unit/test_standalone_skills.py reads a pin through _matches(pin, text)[0], which replaced _match.
  • Not on release/1.4: that line's prepare.py still 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 to release/1.4 in its own pull request.
  • Outside the release flow, found while editing these pages and kept here rather than in another pull request, as the owner asked for related fixes found during this release: docs/reference/environment.md names NPM_VERSION among the Dockerfile's build arguments; docs/guides/issue-code-pointers.md names 1.4.1 as the first installable SDK with those methods (1.4.0 was never published).

Compatibility, rollout and rollback

  • Wire: none.
  • Enforcement: nothing refuses a tag on a commit without a passing gating run; the check has to run before the tag exists, so the skill and the release process carry it.
  • Operator steps: none.
  • Rollback: revert; nothing is stored. The registry environments' reviewer, npm-n8n's tag rule and the deleted review-and-ci-release ruleset 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, a Release X.Y.Z only on a later line of a pushed commit's message (no gate; it fails with head -n 1 removed 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-cache and both scans.
  • tests/unit/test_release_prepare.py: the refusals name UNRELEASED and the next patch, and no refs/tags deletion; the existing bump test now also covers the doc pins (every changed line moves the current version to the target); an every pin naming two versions or none is refused; every clickhouse-loom==, @clickhouse/loom@ and --ref v install in docs/ and README.md must be one a pin moves (the extras class takes a comma), and validate refuses 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 create and deleting a merged branch (git push origin --delete prep/release-1.2.3) are not denied; eight spellings of deleting a v* tag are: --delete or -d before or after the remote, after the tag, with the tag keyword, and a :v1.2.3 refspec, and so is a tag push's --dry-run (with the three new deny rules removed, the first case fails).
  • A trial bump 1.5.0 in a throwaway checkout moved exactly the 18 doc pins and check() returned no errors.
  • A docker-smoke run dispatched on this branch at a16dd45, after the gates_release rename (the later commits change nothing docker-smoke runs: tests, comments and docs only), set gates_release, took the gating side (uncached builds, 75-minute timeout, strict scans) and passed: https://github.com/ClickHouse/loom/actions/runs/47206733193.
  • At the head, 674 focused tests pass: test_release_prepare.py, test_release_version.py, test_docker_quickstart_smoke.py, test_agent_instructions.py, test_doc_links.py, test_public_copy.py and test_standalone_skills.py; make format-check (ruff, biome, prettier, taplo, shfmt), ruff and mypy pass. CI's format job stops at biome on a file main broke (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

  • Local format, lint, type checks and focused tests pass. The full make test-unit and applicable integration results are reported by CI; a full local run is not required before pushing.
  • Generated files are regenerated in this PR, not by hand.
  • Docs under docs/ describe the system as it now is, and this description names any operator steps and wire changes.
  • Repository text has no dates, people, host names, internal namespaces, ticket or decision numbers; the history goes in this description (tests/unit/test_public_copy.py).
  • Commits are signed off (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.sh as the single definition of which docker-smoke runs gate a release: scheduled/dispatched runs, release/X.Y pushes and PRs, and PRs or merge commits whose first-line title is exactly Release X.Y.Z (optional (#N)). The workflow reads gates_release for 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 via UNRELEASED + next patch instead of deleting v* tags. prepare.py bump gains Pin.every so install pins in frameworks.md and mcp-clients.md move with the version; check_tag errors follow the same no-delete policy.

.claude/settings.json allows routine git push origin v*.*, release workflow dispatches, and gh release create, while denying common tag-deletion and tag --dry-run spellings. 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.

@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
loom-docs Ready Ready Preview Dec 3, 2026 11:22pm UTC
loom-telemetry Ready Ready Preview Dec 3, 2026 11:22pm UTC

Request Review

zlareb1 and others added 2 commits December 3, 2026 16:56
…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
zlareb1 force-pushed the fix/release-one-command branch from 575b2af to ae8b0c5 Compare December 3, 2026 11:27
zlareb1 and others added 9 commits December 3, 2026 17:18
… 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>
@zlareb1 zlareb1 changed the title A release tags only a commit whose image scan passed, and no step deletes a tag A final release tags only a commit whose image scan passed, and no step deletes a tag Dec 3, 2026
zlareb1 and others added 15 commits December 3, 2026 20:15
… 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>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread .claude/skills/loom-release/SKILL.md Resolved
…ng run by createdAt

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread scripts/release/prepare.py Resolved
zlareb1 and others added 5 commits December 4, 2026 01:30
…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>

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread .claude/settings.json Resolved
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>

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using high effort and found 2 potential issues.

Fix All in Cursor

❌ 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.

Comment thread .claude/settings.json Resolved
Comment thread .claude/settings.json Resolved
zlareb1 and others added 7 commits December 4, 2026 03:06
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>
@zlareb1
zlareb1 merged commit 34d4cf9 into main Dec 3, 2026
82 of 84 checks passed
@zlareb1
zlareb1 deleted the fix/release-one-command branch December 3, 2026 23:36
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>
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