Skip to content

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented Oct 10, 2025

Sometimes changes to cibuildwheel (such as #9059) change the defaults and more or less wheels are built, and we don't notice until we happen to spot an unnecessary wheel, or someone reports a missing wheel for their system.

This adds a hardcoded number of dists created by the CI (EXPECTED_DISTS), and fails if it's different to what's actually produced.

  • If it changes when expected (as would happen for #9214, #9030, #9031), all good, we can change the constant.
  • Otherwise unexpected changes (as would happen for #9010) can be investigated first.

This is inspired by the coverage.py CI: https://github.com/nedbat/coveragepy/blob/8827634adcfe4a4baf71cf0b3e1cd967cf9b14a2/.github/workflows/publish.yml#L76-L81

To demonstrate, right now it will fail:

Number of dists, should be 98:
91
image

https://github.com/python-pillow/Pillow/actions/runs/18407980303/job/52459987053?pr=9239

@hugovk
Copy link
Member Author

hugovk commented Oct 10, 2025

The failing run: https://github.com/python-pillow/Pillow/actions/runs/18407980303/job/52459987053?pr=9239

And force pushed with the correct number for it to pass.

@hugovk
Copy link
Member Author

hugovk commented Oct 11, 2025

Updated to require count-dists to pass before publishing any wheels:

image

https://github.com/python-pillow/Pillow/actions/runs/18428446075?pr=9239

@hugovk hugovk merged commit fbdf607 into python-pillow:main Oct 11, 2025
22 checks passed
@hugovk hugovk deleted the count-dists branch October 11, 2025 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants