[PR #231] [MERGED] CI disk: short artifact retention, runner cleanup, sccache on the Mac runners #2420

Closed
opened 2026-11-02 15:55:56 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/231
Author: @ludovic111
Created: 10/14/2026
Status: ✅ Merged
Merged: 10/14/2026
Merged by: @ludovic111

Base: main ← Head: ci/runner-disk


📝 Commits (1)

  • 7a07251 CI disk: short artifact retention, runner cleanup, sccache on the Mac runners

📊 Changes

7 files changed (+78 additions, -3 deletions)

View changed files

📝 .github/workflows/ci.yml (+2 -0)
📝 .github/workflows/launcher.yml (+2 -1)
📝 .github/workflows/nightly.yml (+1 -1)
📝 .github/workflows/release.yml (+2 -1)
📝 docs/release-flow.md (+13 -0)
📝 tools/ci/runner-env.sh (+5 -0)
➕ tools/ci/runner-gc.sh (+53 -0)

📄 Description

Ludovic doesn't want frequent releases to bloat anything. This is the CI/release side (the launcher side is the features session's briefs/disk-lean.md).

  • Artifacts: retention-days: 3 on every upload (PR parity logs, CI bundle, release and launcher build intermediates and notes); nightly parity logs 14 → 7. Releases carry their own assets.
  • Mac runners (they were 40 GB, 31 GB and 3.6 GB, mostly harness work folders and cargo targets under .local/): tools/ci/runner-gc.sh, run every 6 h by launchd on the Mac mini from a copy of main (never a PR checkout):
    • skips a runner in a job;
    • removes a checkout's cargo build folders (dirs with CACHEDIR.TAG) past 12 GB;
    • removes harness work folders under .local/ untouched for 3 days (symlinks into the shared vanilla data and parity-runner/ are never touched);
    • keeps the 2 newest shared preparations (~0.8 GB each) while no runner works, under the preparation lock.
  • sccache: runner-env.sh sets RUSTC_WRAPPER=/opt/homebrew/bin/sccache (+ CARGO_INCREMENTAL=0) on the Mac, so removed builds come back from the cache.
  • docs/release-flow.md: a "Disk" section.

Checked: bash -n; detection run on the Mac mini (finds target/ and .local/parity-target, 237 harness folders all touched in the last 3 days, so nothing removed today); actionlint: no new findings.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/231 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/14/2026 **Status:** ✅ Merged **Merged:** 10/14/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `ci/runner-disk` --- ### 📝 Commits (1) - [`7a07251`](https://github.com/horizon-rust/horizon/commit/7a07251acfa3ecf27aab252d3c1c2e98e9eb1d7a) CI disk: short artifact retention, runner cleanup, sccache on the Mac runners ### 📊 Changes **7 files changed** (+78 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/ci.yml` (+2 -0) 📝 `.github/workflows/launcher.yml` (+2 -1) 📝 `.github/workflows/nightly.yml` (+1 -1) 📝 `.github/workflows/release.yml` (+2 -1) 📝 `docs/release-flow.md` (+13 -0) 📝 `tools/ci/runner-env.sh` (+5 -0) ➕ `tools/ci/runner-gc.sh` (+53 -0) </details> ### 📄 Description Ludovic doesn't want frequent releases to bloat anything. This is the CI/release side (the launcher side is the features session's briefs/disk-lean.md). - **Artifacts:** `retention-days: 3` on every upload (PR parity logs, CI bundle, release and launcher build intermediates and notes); nightly parity logs 14 → 7. Releases carry their own assets. - **Mac runners** (they were 40 GB, 31 GB and 3.6 GB, mostly harness work folders and cargo targets under `.local/`): `tools/ci/runner-gc.sh`, run every 6 h by launchd on the Mac mini from a copy of main (never a PR checkout): - skips a runner in a job; - removes a checkout's cargo build folders (dirs with `CACHEDIR.TAG`) past 12 GB; - removes harness work folders under `.local/` untouched for 3 days (symlinks into the shared vanilla data and `parity-runner/` are never touched); - keeps the 2 newest shared preparations (~0.8 GB each) while no runner works, under the preparation lock. - **sccache:** `runner-env.sh` sets `RUSTC_WRAPPER=/opt/homebrew/bin/sccache` (+ `CARGO_INCREMENTAL=0`) on the Mac, so removed builds come back from the cache. - docs/release-flow.md: a "Disk" section. Checked: `bash -n`; detection run on the Mac mini (finds `target/` and `.local/parity-target`, 237 harness folders all touched in the last 3 days, so nothing removed today); actionlint: no new findings. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-02 15:55:56 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#2420
No description provided.