Skip to content

ci: checks on pull requests only, release uploads the tested wheels - #8

Merged
simonbeyer1 merged 1 commit into
masterfrom
ci-release-reuse
Nov 27, 2026
Merged

simonbeyer1 merged 1 commit into
masterfrom
ci-release-reuse

Conversation

@simonbeyer1

Copy link
Copy Markdown
Member

Every release commit ran the same checks up to three times: CI and the wheel build on the pull request, both again on the fast-forward push to master, and the wheel build once more on the published release (39 minutes for 0.18.2).

  • ci.yml and cd.yml no longer run on pushes to master. master moves only by fast-forward to the commit its pull request tested; workflow_dispatch and the weekly wheel build stay.
  • On a published release, a new job find looks for a run of cd.yml in this repository on the released commit in which every build and test passed: the four wheels, the sdist, distro on Fedora and Debian, msolve-glibc228 and fedora. publish uploads the wheels and the sdist of that run, which distro tested as files. Runs from forks and the release run itself do not count.
  • Where no such run exists (a merge commit, a release without a wheel run, artifacts past 90 days), the release builds and tests everything itself, as before.
  • The pull request run builds the merge commit with master. Since master only moves forward and is an ancestor of the released commit, that merge commit has the tree of the release.

Checked locally against the API: for 6d575ec (0.18.2) the search finds the pull request run 46000277684 with all five artifacts; for a0a5de7, which had no wheel run, it finds none. The upload path from a found run takes effect at the next release; pre-commit with zizmor is clean.

Without a run on master pushes, a direct push to master is no longer tested; the ruleset "protect master" could additionally require a pull request.

…ward to master; a release uploads the wheels and the sdist of the passed pull request run of the released commit and builds them itself only where none exists

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@simonbeyer1

Copy link
Copy Markdown
Member Author

Merged by fast-forward as 52bfa46 after all 16 checks passed (tests on Linux, macOS and Windows with Python 3.10 and 3.15, wheels, sdist, fedora and distro builds, msolve on glibc 2.28, lint); find and publish were skipped, as on every run that is not a release. No version change, no tag. The upload from a found pull request run takes effect at the next release.

@simonbeyer1
simonbeyer1 merged commit 52bfa46 into master Nov 27, 2026
18 checks passed
@simonbeyer1
simonbeyer1 deleted the ci-release-reuse branch November 27, 2026 15:26
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