Repository navigation
ci(release): publish to PyPI only after main's CI passes on the tagged commit - #193
Merged
Merged
Conversation
earakely-scale
approved these changes
Oct 14, 2026
This was referenced Oct 14, 2026
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.
What and why
publish-pypi.ymluploads to PyPI when the release automation pushes av*tag. It pushes that tag about 20 seconds after the version bump. Thus the upload ends beforemain's CI has run on the commit, and nothing checks the result. For example, v0.9.1258 was on PyPI at 22:20 UTC on 2026-09-30.Local backendsfailed on the same commit at 22:28 (run). It occurred again with v0.9.1325: it was on PyPI at 15:15 UTC on 2026-10-14, andLocal backendsfailed on the same commit at 15:33 (run).This change adds a
main-cijob before the upload jobs. The job waits for the push runs oflocal-backends.yml,clean-install.ymlandplugin-api.ymlonmainfor the tagged commit. If one of them does not pass, the job fails and blocks publishing.main.How it was tested
The job's script ran locally against the real runs, with
bash -eo pipefailas in Actions:552c08c(v0.9.1324, all runs passed): exit 0.a6699d5(v0.9.1258,Local backendsfailed): exit 1, with a link to the failed run.main: the script continued to wait.actionlintwithshellcheckreports no findings.