Repository navigation
ci(release): publish preflight and CI trigger fixes (M3, #922) - #1067
Merged
rita7lopes merged 4 commits intoNov 24, 2026
Merged
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.
This was referenced Nov 18, 2026
A lane with no run, cancelled, skipped or still running after the wait, and a GitHub API error, are now warnings. Refusing those blocked releases from a docs or workflow-only commit and hotfixes from a branch, and left a public release with no binaries or image. Keep '**.yml' in the cluster lane's paths-ignore, and use the same actions/checkout version as the rest of the workflow.
rita7lopes
approved these changes
Nov 24, 2026
rita7lopes
left a comment
Contributor
There was a problem hiding this comment.
I changed my mind on two things I asked for in #922, so I pushed the changes myself: the cluster lane keeps ignoring .yml, and the preflight refuses only when a lane failed or timed out. Anything else is a warning, so docs-only commits and hotfixes from a branch can still be released. #1113 is built on this, so it will need the same rule.
Merging
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). This is the "do now, separately" half from @rita7lopes's comment on #922: the publish preflight and the two CI trigger fixes.
Still open in #922 after this: the PromQL parity harness, baseline ratchet and triage, the release-gate skeleton, and the k6 lane fix.
No dependencies: branches from
master.Why
On the commit behind the latest release, v5.6.0 (
9b45a1bb), these workflows ran: CodeQL, Gigapipe CI Cluster, K6, and the release itself. Go Build CI (unit tests) never ran, because it only triggers on pull requests. Andbuild_release.ymlpublishes without checking anything.Changes
build_release.yml: new first job, Publish preflight. It resolves the commit being released (git rev-parse HEADafter the same checkout the other jobs use: the tag for a release, the branch tip for a manual run) and runs.github/scripts/publish-preflight.sh.validate_module_pathnowneeds: preflight, and every build job already needsvalidate_module_path, so nothing builds or publishes unless the preflight passes. The job only getsactions: readandcontents: read..github/scripts/publish-preflight.sh(new): for each lane inPUBLISH_REQUIRED_LANES, the most recent run of that workflow on the commit must becompleted/success. A missing run, any other conclusion, or an empty list refuses the release immediately, and every failing lane is named with a link to its run. A lane that is still running is waited for: it's checked every 30 s, for up to 30 minutes (PREFLIGHT_POLL_SECONDS/PREFLIGHT_WAIT_SECONDS), then the release is refused if it still hasn't finished. Releases are usually created right after a merge, while that merge's lanes are still running. For v5.6.0, the release started at 13:36:24 and the cluster lane on the same commit finished at 13:38:56, so without waiting it would have been refused for no real reason.PUBLISH_REQUIRED_LANES=Go Build CI,Gigapipe CI Cluster. It's set in the workflow file, so changing it is a reviewed PR. k6 stays informational, as M3 — PromQL parity harness + release-gate skeleton + publish preflight #922 says. CodeQL is left out as a security scan rather than a test lane; adding it is one line.go.yml: also runs onpushtomaster, so unit tests run on the merged commit and the preflight has a result to check.node-clickhouse-cluster.js.yml: drops'**.yml'from bothpaths-ignorelists, so edits to workflows or compose files run the cluster lane..mdand.yamlare unchanged.Why workflow names rather than check-run (job) names: job names aren't unique. On PR #1050's head commit there are two check-runs called
build, one from Go Build CI and one from Gigapipe CI Cluster. Workflow names are unique, so they can be matched directly without renaming any job.Tests
Every case below was run against real commits. The script was run locally with
ghagainstmetrico/gigapipe:9b45a1bb(v5.6.0)"Go Build CI" has no run9b45a1bb(v5.6.0)a9475eba(master, cluster lane failed; the workflow was named "QRYN CI CLUSTER" then)did not pass (conclusion=failure)+ run link4806162a(PR #1050 head, both lanes green)no lanes configuredWaiting for a running lane: I started K6 by hand on the fork on this branch's commit (run), then pointed the script at it while it was running:
required lanes still running after 40sOn GitHub (fork): I started "CI+CD Gigapipe" by hand on this branch (run). The preflight failed and named both missing lanes. Validate, arm64, amd64 and Docker were all skipped: nothing was built or published.
Static checks:
actionlintv1.7.7: no new findings. The existing findings inbuild_release.ymlare unchanged, only shifted down by the new job.shellcheckv0.10.0 on the script: clean.Not tested: a passing preflight on GitHub. That would continue into the publish jobs, so I only tested the passing path locally against real commits.
Potential risks
PUBLISH_REQUIRED_LANES. Otherwise releases are refused (it fails closed, never open). This already happened once: "QRYN CI CLUSTER" → "Gigapipe CI Cluster"..mdfiles doesn't run the cluster lane (itspaths-ignorestill has**.md), so releasing exactly that commit is refused.workflow_dispatch) check the branch tip at the moment the preflight runs. If something merges while the build jobs are starting, they could build a newer commit. Releases from a tag aren't affected, and the last 40 runs of this workflow were allreleaseevents.master, one extra run per merge.go.ymlrun on pushes, and M1 adds a lint job togo.yml. M1's lint originally usedgithub.event.pull_request.base.sha, which is empty on a push. Lint then failed on every pre-existing issue (reproduced locally), which would have turned Go Build CI red onmasterand made this preflight refuse every release. chore(ci): M1 tooling groundwork and deterministic PromQL substitute names (#918) #1059 now falls back togithub.event.before, so nothing further is needed here, in either merge order.Not in this PR
The publish steps'
if: github.event_name == 'release' || ${{ inputs.release }}is flagged by actionlint as "always evaluated to true". It's pre-existing, so I left it untouched here.