You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Research whether sccache is effective for this workspace in local development and on GitHub-hosted CI runners, and decide if it should be adopted fully, partially, or not at all.
This is an evidence-driven research issue. No workflow changes are assumed until benchmarks confirm a measurable benefit.
Background
A benchmark on 2026-05-01 shows a clean build takes ~142 s, of which ~89 % is compilation.
Swatinem/rust-cache appears ineffective at this workspace size (~9 GB target/; transfer cost exceeds compile time).
sccache caches individual codegen units by content hash, so a single changed crate does not bust the whole cache.
Known limitations to validate:
bin, dylib, cdylib, and proc-macro crates are never cached by sccache (the heaviest crate torrust-tracker is a bin).
Incremental compilation must be disabled (CARGO_INCREMENTAL=0).
GitHub-hosted runners are non-sticky; every run starts cold from remote cache.
The full issue spec, benchmark data, and task breakdown are in docs/issues/<issue-number>-reduce-build-times-sccache/ in the repository.
Tasks
Local A/B benchmark (baseline vs sccache, cold/warm/warm-after-change).
Decide whether to enable sccache in .cargo/config.toml for developers.
CI A/B benchmark on GitHub-hosted runners (first and repeat runs).
Document recommendation: adopt, hybrid, or reject.
Activity
docs(build): add sccache research issue spec (torrust#1726)
Merge #1727: docs(build): add sccache research issue spec (#1726)
Merge #1746: ci(workflows): add docs-only CI fast path
Merge #1747: ci(workflows): scope persistence workflows to tracker-co…
josecelano commentedon May 19, 2026
Merge #1842: docs(issues): add EPIC #1840 and baseline #1841 specs
Merge #1855: docs(issues): draft sub-issue specs for EPIC #1840 workf…
docs(epic): mark subissues created/linked and log PR #1855 merge
Merge #1905: Reduce build times with sccache
josecelano commentedon Jun 14, 2026
Closed via #1905
chore(issues): archive completed issue specs #1507, #1726, #1786, #1904…
Merge #1919: chore(issues): archive completed issue specs #1507, #1726,