Repository navigation
[RTR] ci: run independent test shards with two pytest workers - #1117
Conversation
6c05bda to
9a030ee
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1117 +/- ##
=======================================
Coverage 78.25% 78.25%
=======================================
Files 198 198
Lines 21747 21747
=======================================
+ Hits 17018 17019 +1
+ Misses 4729 4728 -1
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:
|
pariterre
left a comment
There was a problem hiding this comment.
@pariterre reviewed 5 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on mickaelbegon).
Updated precision for constraint checks in COLLOCATION case.
pariterre
left a comment
There was a problem hiding this comment.
@pariterre reviewed 1 file and all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on mickaelbegon).
pariterre
left a comment
There was a problem hiding this comment.
@pariterre made 1 comment.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on mickaelbegon).
pariterre
left a comment
There was a problem hiding this comment.
@pariterre made 1 comment.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on mickaelbegon).
pariterre
left a comment
There was a problem hiding this comment.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on mickaelbegon).
Ipuch
left a comment
There was a problem hiding this comment.
@Ipuch reviewed all commit messages and resolved 2 discussions.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on mickaelbegon).
Ipuch
left a comment
There was a problem hiding this comment.
@Ipuch made 1 comment.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on mickaelbegon).
Run independent tests within each CI job using two pytest-xdist workers. Shards 3–6 use work stealing; shards 1–2 remain sequential because they share Acados output files and performance measurements respectively. Keep the full test selection and upstream CI event/draft policies.
The final diff only changes the two test workflows: install pytest-xdist, choose the worker count, pass the work-stealing options, and update checkout to v4. Scientific code, tests, numerical tolerances and public APIs are unchanged.
Hosted measurements
The completed Linux and Windows benchmarks compared fresh serial and two-worker pytest processes on GitHub-hosted four-CPU runners at
9a030ee96ac71a15f49960854b1936d500508a2e:Each mode ran the same 3,362 cases per OS, with identical outcomes: Linux 3,356 passed/6 skipped; Windows 3,338 passed/24 skipped; zero failures in either mode. All four Linux shards produced combined coverage without losing any sequentially covered lines.
These are one-pair per-shard measurements, serial first, not a total-CI speedup. The numerical environment was Python 3.14.8, biorbd 1.12.3, CasADi 3.7.2 and NumPy 2.5.4. Peak summed process RSS reached 10.9 GiB on Linux shard 5; this sum includes shared pages more than once. Two workers limit the additional memory pressure.
The temporary benchmark workflow and script were removed following review. Their source remains in the measured commit and their JUnit, coverage and timing evidence remains in the Linux/Windows artifacts of the linked run. They do not add a recurring benchmark to upstream CI or refer to a personal branch in the final diff. macOS benchmark execution is still queued.
Validation
Current head:
ed170e61ed0f6151b1859524fd32a9beda11190a. Only the measurement tools were removed after the measured head; the two test workflows, scientific code and tests are unchanged by that cleanup.Token required - not valid tokenless upload.bioptim/andtests/remain identical to upstream master.Refs #1085. Independent of the Conda-cache proposal #1116. Combining them requires adding pytest-xdist to the CI dependency specification and regenerating all three locks. Fork tracking PR: mickaelbegon#44.
All Submissions
[WIP]to[RTR]after review cleanup and validation.New Feature Submissions
Changes to Core Features
This change is