Skip to content

docs(build): add sccache research issue spec (#1726) - #1727

Merged
josecelano merged 1 commit into
torrust:developfrom
josecelano:1726-reduce-build-times-sccache
May 4, 2026
Merged

josecelano merged 1 commit into
torrust:developfrom
josecelano:1726-reduce-build-times-sccache

Conversation

@josecelano

@josecelano josecelano commented May 4, 2026 •

Copy link
Copy Markdown
Member

Description

Adds the issue spec document for #1726 - researching sccache as a build-time optimization for the torrust-tracker CI pipeline.

Changes

  • docs/issues/1726-reduce-build-times-sccache/ISSUE.md - research-framed issue spec covering:
    • Background with benchmark data and known limitations (bin crate exclusion, non-sticky runners, incremental compilation conflict)
    • Four tasks: branch creation, local A/B benchmark, local config decision, CI A/B benchmark
    • Acceptance criteria gating on measured CI speedup
  • docs/issues/1726-reduce-build-times-sccache/benchmark-results.md - raw benchmark artifact from 2026-05-01
  • project-words.txt - added cdylib, dylib, rlib

Related

@josecelano josecelano self-assigned this May 4, 2026
@codecov

codecov Bot commented May 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.66%. Comparing base (51bef34) to head (7ecd348).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #1727   +/-   ##
========================================
  Coverage    79.65%   79.66%           
========================================
  Files          354      354           
  Lines        25597    25597           
  Branches     25597    25597           
========================================
+ Hits         20390    20391    +1     
  Misses        4969     4969           
+ Partials       238      237    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@josecelano
josecelano requested a review from Copilot May 4, 2026 12:23
@josecelano
josecelano force-pushed the 1726-reduce-build-times-sccache branch from 853c9d9 to 7ecd348 Compare May 4, 2026 12:24
@josecelano

Copy link
Copy Markdown
Member Author

ACK 7ecd348

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds documentation to scope and support issue #1726 (researching sccache as a CI build-time optimization), including an issue spec and an accompanying benchmark artifact, plus updates to the repo spellcheck wordlist.

Changes:

  • Added an issue spec document describing goals, background constraints, tasks, and acceptance criteria for sccache research.
  • Added a benchmark-results document capturing timings and follow-up recommendations.
  • Updated project-words.txt with additional build/perf-related terminology.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 5 comments.

File Description
project-words.txt Expands the project wordlist with sccache/Rust build terminology used in the new docs.
docs/issues/1726-reduce-build-times-sccache/ISSUE.md Adds the issue-spec document for the sccache research effort.
docs/issues/1726-reduce-build-times-sccache/benchmark-results.md Adds benchmark data and additional narrative/recommendations derived from the run.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread project-words.txt
Comment on lines 56 to 60
Containerfile
conv
curr
cdylib
cvar
Comment thread project-words.txt
Comment on lines 309 to 313
Xacrimon
XBTT
zstd
Xdebug
Xeon
Comment thread project-words.txt
Comment on lines 99 to 105
heaptrack
hexdigit
hexlify
hlocalhost
hmac
hotspot
Hydranode
```yaml
# In every job that compiles Rust, add before the cargo step:
- name: Install sccache
uses: mozilla-actions/[email protected]
Comment on lines +111 to +112
subsequent clean build skips already-cached units. For the 126 s cold build here, a
warm `sccache` run would be roughly 5–10 s (only changed crates recompile).
@josecelano
josecelano merged commit 0c9d757 into torrust:develop May 4, 2026
25 of 26 checks passed

This branch was previously deployed

1 inactive deployment
coverage — 7ecd348b Deployed May 4, 2026 by josecelano via Generate Coverage Report #1187
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.

2 participants