Repository navigation
ci: cut CI from ~16 min and stop release wheels filling the 500 MB artifact quota - #13
Merged
Merged
Conversation
Run the tests with a ci profile that optimizes dependencies, share one Rust cache saved only from main, cancel superseded PR runs, stop the release PR from repeating the tests and building every wheel, and keep release artifacts for 7 days instead of 90. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
CI took about 16 minutes, and last month hydroid's release wheels filled the account's 500 MB Actions artifact quota. Each wheel run uploads about 75 MB. Those uploads stayed for 90 days, and about 43% of them came from PR runs that nobody used. By the v0.4.0 release on 15 Oct, they added up to more than 500 MB.
This PR makes CI faster and stops the waste:
ciCargo profile optimizes the dependencies (ty is very slow unoptimized) and uses less debug info. Locally, thefixturestest binary drops from about 500–790 s to 110 s. The build output also gets smaller, so the Rust cache does too.release.ymlruns the Rust tests only when a release is created, or on a manual run. CI already tests every PR. A PR that changes packaging now builds and smoke-tests one Linux wheel and uploads nothing, instead of 7 uploaded wheels.pypiapproval.main.tests/fixtures/uv.lockand turned off where it is not needed.mainstill runs in full.docs/RELEASING.mdnow says that the release PR's CI needs Approve workflows to run, and thatpypiapproval must happen within 7 days.release.ymlkeeps its file name and itspublishjob, so PyPI Trusted Publishing is not affected.Proof: actionlint on all workflows, clippy, and
cargo test --workspace --locked --profile ciall passed locally (fixturestook 110 s). This PR's own CI shows the new GitHub runner time.Reviewed with sol-loop: 2 rounds with GPT 6.2 Sol. Sol verdict: approved
Created with Claude Opus 5.5 in Claude Code (T3 Code). Reviewed by GPT 6.2 Sol; analysis council: Claude Opus 5.5, GPT 6.2 Sol, Gemini 4 Hydrogen.
🤖 Generated with Claude Code