Repository navigation
ci(release): release-gate skeleton for the heavy lanes (M3, #922) - #1113
Closed
Guess-Who-sec wants to merge 3 commits into
Closed
Guess-Who-sec wants to merge 3 commits into
Guess-Who-sec wants to merge 3 commits into
Conversation
- build_release.yml: a first "Publish preflight" job refuses to publish unless every workflow in PUBLISH_REQUIRED_LANES (Go Build CI, Gigapipe CI Cluster) passed on the commit being released. Lanes are matched by workflow name because job names are not unique (two jobs are "build"). - go.yml: also run on pushes to master, so unit tests run on the merged commit and the preflight has a result to check. - node-clickhouse-cluster.js.yml: stop ignoring '**.yml' changes, so workflow and compose edits run the cluster lane.
Releases are usually created right after a merge, while that merge's lanes are still running: v5.6.0 started at 13:36:24 and the cluster lane on the same commit finished at 13:38:56. Instead of refusing a lane that has not finished, check it again every PREFLIGHT_POLL_SECONDS (30) for up to PREFLIGHT_WAIT_SECONDS (1800). A missing or failed lane still refuses at once.
The cluster e2e lane and the k6 lane now start on every PR but only run their job on a push to master, nightly, a manual run or a PR from a release/* branch. On any other PR the job is skipped, which shows as skipped and counts as passing. Push runs share a concurrency group without cancelling the running one, so rapid merges queue at most one more run; nightly, manual and PR runs are never replaced by a push. The publish preflight passes over a run whose job was skipped and decides on an older run of the lane, and says how to start a lane by hand when it has no run that ran, or its run was cancelled.
Guess-Who-sec
force-pushed
the
ci/m3-release-gate
branch
from
November 18, 2026 17:41
07a2b6e to
7f54cc9
Compare
8 tasks
rita7lopes
reviewed
Nov 24, 2026
rita7lopes
left a comment
Contributor
There was a problem hiding this comment.
I've changed my mind on this part of #922: I'd rather keep e2e and k6 on every PR, so a break shows up before merging. Closing this one @Guess-Who-sec.
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.
Part of #922 (M3): the release-gate skeleton. Is this wanted? Your split of #922 on 09-18 didn't mention this item, so I've built it as #922 describes it. If you'd rather not have it, or want it in another form, say so and I'll close or change it.
Depends on #1067 (publish preflight): this branch is built on it, so its first 2 commits are #1067's. Merge #1067 first; I'll rebase this one onto
masterthen. Only the last commit is new here.What it does
Heavy lanes become release gates. The cluster e2e lane (
Gigapipe CI Cluster) and the k6 lane still start on every PR, but their job only runs on:master(cluster lane: alsobeta, as today)schedule: cluster 02:17 UTC, k6 02:47 UTC)workflow_dispatch, new for the cluster lane)release/*branchOn any other PR the job is skipped. GitHub shows it as skipped; a job skipped by its
if:counts as passing for required checks, so it doesn't block merging.Merges don't pile up runs. Push runs of each lane share a concurrency group with
cancel-in-progress: false: one runs, the newest push waits, and a newer push replaces the waiting one (it endscancelled). Nightly, manual and PR runs each get their own group, so a push never cancels them.Preflight (#1067's script): a lane only counts if its job actually ran. A run whose job was skipped is passed over, and an older run of that lane on the commit decides. If the commit has no run that ran, or the run was cancelled because a newer push replaced it, the release is refused and the message says to start the lane by hand on the released branch.
docs/contributing.md: says when the e2e and k6 lanes run, and to runmake e2e-fulllocally or start the lane by hand when a change can affect them.Not in this PR:
integration.yml: a fast single regression check, stays on every PR.Go Build CI: the cheap tier, unchanged.Verification
Static:
actionlintreports the same 17 shellcheck info/style notes ink6_test.ymlbefore and after (all in steps this PR doesn't touch), none in the cluster lane;shellcheckclean on the preflight script.Real runs on my fork, with
master+ #1067 + this commit pushed as the fork'smaster(since restored):masterrelease/*PRReal cluster runs took 7-9 minutes; skipped ones 0 seconds. All 25 steps of each k6 run passed (the job has
continue-on-error, so I checked the steps, not only the job). The ordinary PR showed both lanes as "skipping" and was mergeable.Preflight, run against those fork commits with
Go Build CI,Gigapipe CI ClusterandK6 Test metrico/gigapipeas required lanes:release/*PR commit: passed (exit 0)For comparison, #1067's current script also refuses the ordinary PR commit (a run whose jobs were all skipped concludes
skipped, notsuccess), but it can't look past that run to an older real run of the same lane, and its message doesn't say what to do.Not verified:
if:as a manual run.Potential risks
masterpush or nightly run. Authors can runmake e2e-fullor start the lane by hand.**.mdor**.yamlget no cluster run (paths-ignore, unchanged). Releasing such a commit is refused until the lane is started by hand. Same as with ci(release): publish preflight and CI trigger fixes (M3, #922) #1067 alone.if:. Whichever merges second needs a small rebase.