Skip to content

ci: let a manual release skip its race tests - #65

Merged
juicycleff merged 1 commit into
mainfrom
feat/release-skip-tests
Oct 30, 2026
Merged

juicycleff merged 1 commit into
mainfrom
feat/release-skip-tests

Conversation

@juicycleff

Copy link
Copy Markdown
Contributor

You can now start a release without its race tests:

gh workflow run release.yml --ref main -f tag=vX.Y.Z -f skip-tests=true

skip-tests is a boolean on the dispatch trigger and defaults to false. With it on, the release still downloads, checks the go mod tidy diff and builds the root and every sub-module, so a broken build still stops it. Only the go test -race runs are left out, which saves close to an hour.

Use it when CI on main already passed for the commit you're tagging. A release started by pushing a tag always runs the tests, whatever the input says. The value reaches the scripts through an env var, not inline expansion. AGENTS.md describes the option next to the release command.

Checked with actionlint.

Add a skip-tests input to the release workflow's dispatch trigger. It defaults to false. When set, the release still downloads, checks go mod tidy and builds every module, and only leaves out the race tests, for a commit whose CI on main already passed. A release started by a tag push always runs them.
@juicycleff
juicycleff merged commit 541278a into main Oct 30, 2026
22 checks passed
@juicycleff
juicycleff deleted the feat/release-skip-tests branch October 30, 2026 15:25
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