Skip to content

ci: cut CI from ~16 min and stop release wheels filling the 500 MB artifact quota - #13

Merged
agusmdev merged 3 commits into
mainfrom
chore/lean-ci-storage
Nov 27, 2026
Merged

agusmdev merged 3 commits into
mainfrom
chore/lean-ci-storage

Conversation

@agusmdev

Copy link
Copy Markdown
Owner

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:

  • Faster tests. A new ci Cargo profile optimizes the dependencies (ty is very slow unoptimized) and uses less debug info. Locally, the fixtures test binary drops from about 500–790 s to 110 s. The build output also gets smaller, so the Rust cache does too.
  • No more repeated work on the release PR. release.yml runs 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.
  • Less storage.
    • Release artifacts are kept 7 days, not 90. That is still long enough for the manual pypi approval.
    • The Rust cache is one shared cache, saved only from main.
    • The uv cache is keyed on tests/fixtures/uv.lock and turned off where it is not needed.
  • No wasted PR runs. A new push to a PR cancels that PR's older CI run. Every push to main still runs in full.
  • docs/RELEASING.md now says that the release PR's CI needs Approve workflows to run, and that pypi approval must happen within 7 days.

release.yml keeps its file name and its publish job, so PyPI Trusted Publishing is not affected.

Proof: actionlint on all workflows, clippy, and cargo test --workspace --locked --profile ci all passed locally (fixtures took 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

Croto Bot and others added 3 commits November 27, 2026 14:44
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>
@agusmdev
agusmdev merged commit 8c9121b into main Nov 27, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant