Repository navigation
Skip in-build wheel tests off-tag - #300
Conversation
The wheel build jobs ran the test suite against every wheel, and the test matrix then installed those same wheels and ran it again. Off-tag the wheel jobs now only build; the test matrix keeps the coverage. The workflow also mixed contains(github.ref, 'refs/tags/') and github.ref_type for the same release check; all of them now use github.event_name == 'push' && github.ref_type == 'tag'.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #300 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 10 10
Lines 532 532
Branches 27 27
=========================================
Hits 532 532
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Confidence Score: 5/5Safe to merge. No outstanding issues remain. The earlier macOS wheel-coverage concern is addressed: off-tag builds now produce only arm64, the architecture covered by the downstream macOS test job, while tag pushes retain x86_64, arm64, and universal2 builds. greptile-apps[bot] resolved the earlier thread without explanation. Reviews (2): Last reviewed commit: "Keep every wheel covered off-tag" | Re-trigger Greptile |
PR Review — Skip in-build wheel tests off-tagThe change is small, cuts CI time and is safe to merge. Two non-blocking notes, one about test coverage and one about maintenance. What works well:
Worth a look:
🟢 Suggestions
1. Off-tag, macOS x86_64 wheels are no longer tested anywhere
|
cibuildwheel builds 3.15 and 3.15t wheels, and the macOS job built x86_64 wheels that only ever ran under Rosetta inside the build. With the in-build tests skipped, neither was tested off-tag. Add 3.15 and 3.15t to the test matrix, and build only arm64 macOS wheels off-tag, so everything built off-tag is also tested.
What do these changes do?
The wheel build jobs ran the test suite against every wheel they built, and the
testmatrix then installed those same wheels and ran the suite again. Off-tag the wheel jobs now setCIBW_TEST_SKIPto*and only build, and they build only the arm64 macOS wheels the matrix runs on. The matrix gains 3.15 and 3.15t rows, since cibuildwheel builds those wheels too, so everything built off-tag is still tested, now in parallel instead of serialized behind each build. Tag builds are unchanged and still build every architecture and test every wheel.The workflow also mixed
contains(github.ref, 'refs/tags/')andgithub.ref_typefor the same release check. They all usegithub.event_name == 'push' && github.ref_type == 'tag'now, or its negation; thepushcheck stays because tags also producecreateevents.Are there changes in behavior for the user?
No, this only affects CI.
Related issue number
N/A; same change as aio-libs/yarl#1885 and aio-libs/yarl#1892.
Checklist
CHANGES/folder