Repository navigation
[RTR] ci: cache locked Conda environments across test jobs - #1116
Closed
mickaelbegon wants to merge 15 commits into
Closed
mickaelbegon wants to merge 15 commits into
mickaelbegon wants to merge 15 commits into
Conversation
mickaelbegon
force-pushed
the
codex/update-github-actions
branch
from
October 15, 2026 15:52
a937676 to
1a65dd6
Compare
This was referenced Oct 15, 2026
Ipuch
reviewed
Oct 15, 2026
| run: python -m pip install --disable-pip-version-check black==26.5.1 | ||
|
|
||
| - name: Check formatting | ||
| run: python -m black . --extend-exclude "^/external/" --check --line-length 120 --target-version py310 |
mickaelbegon
marked this pull request as ready for review
October 15, 2026 18:35
9 of 11 tasks
Always populate shifted state guesses on the first interpolation conversion, with deterministic coverage for the first and subsequent windows. Backport the numerical references from pyomeca#1096 without changing tolerances.
Use unscaled IPOPT convergence for the collocation feasibility regression without relaxing its tolerance. Select a working BLASFEO build reproducibly in the Linux CI lock and verify FATROP success and feasibility before the test shards.
Run coverage merging after successful PR shards even when prepare-cache is skipped. Refresh the source fingerprint for the upstream environment comment edit; parsed dependency specifications and all three lockfiles remain unchanged.
mickaelbegon
force-pushed
the
codex/update-github-actions
branch
from
October 15, 2026 18:39
43b48ef to
5a1cd63
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1116 +/- ##
==========================================
+ Coverage 78.25% 78.51% +0.25%
==========================================
Files 198 198
Lines 21747 21676 -71
==========================================
Hits 17018 17018
+ Misses 4729 4658 -71
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:
|
Collaborator
|
Can you rebase for our next meeting ? |
Member
|
Closing as maybe not relevant anymore |
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.
Each test shard currently resolves and installs its own Conda environment. Install explicit platform locks and restore reusable environments to avoid repeating that setup. When a PR changes the dependency inputs without updating the locks, regenerate all three platforms in one dedicated job and provide a reviewable update.
Changes
regenerate_conda_lockfiles.ymlfor every opened, updated or reopened PR, including drafts, plus manual dispatch. It uses a single Ubuntu job rather than a resolver per shard.conda-lockfiles.patch. Stale runs deliberately fail after publishing the update until the patch is committed. The workflow uses read-only permissions and no extra secrets, including for fork PRs; it does not push a commit back to contributor branches.Scientific code and numerical tolerances are unchanged. The only source-formatting change removes one blank line. The documentation describes how to apply the generated patch and records the CI workflow in the agent overview.
Validation
Current proposal head:
5a1cd63dd0e20343126cdd026e231aec91ad1211. Rebased onto upstream6e68062531894b2cf43b47f6db357a3c227ced96after the latest CI naming and trigger changes.The new workflow was tested end to end in GitHub Actions:
pytest-timeoutregenerated and validated all three platforms in about 35 seconds. The update artifact was uploaded successfully. The only failed step was the intended requirement to commit the update.The patch was downloaded, checked with
git apply --check, applied and validated byte-for-byte against the artifact. The Linux BLASFEO build pin was retained. The smoke dependency and regenerated test locks exist only oncodex/ci-lock-regeneration-smoke; production locks in this PR are unchanged by these tests.Local validation also passed: the same real three-platform regeneration and patch round trip; changed-source detection; a solver-failure test proving the source fingerprint is not updated after an error; all five workflow files checked with actionlint; full Black 26.5.1 check (314 files unchanged); and diff checks.
The first hosted attempt exposed a SIGSEGV in the automatically downloaded Micromamba. The workflow now explicitly installs and selects version 2.5.0-2; the successful hosted regeneration used that pinned executable.
The six Linux test shards passed on the preceding CI head
1a65dd62; earlier full Windows CI also passed. The final rebase preserves the new upstream TRAPEZOIDAL/quaternion fix and its regression test, which passed locally. This PR introduces no scientific or test changes relative to its new upstream base. Upstream Linux tests rerun on the updated head. macOS/Windows use upstream'sauto_merge_enabledtrigger. The regeneration workflow, its three input specifications and the production lockfiles are byte-for-byte identical to the version validated by the linked hosted runs. Coverage aggregation now succeeds (79%); the fork Codecov upload was rejected because it requires an upload token. No hosted end-to-end cache speedup is claimed.Review notes
The requested automatic regeneration job is implemented and validated above. For the Black target question,
--target-version py310followsrequires-python = ">=3.10"inpyproject.toml; formatting syntax compatibility and the Python 3.14 interpreter used to run Black are separate settings.Refs #1085. Independent of the pytest-xdist proposal #1117. Combining them requires adding pytest-xdist to the CI dependency specification and regenerating all three locks. Fork tracking PR: mickaelbegon#20.
All Submissions
[WIP]to[RTR]after implementing the requested workflow and validation.New Feature Submissions
Changes to Core Features
This change is