Repository navigation
perf(build): repin zccache to 8475316 for the fast miss path (#1464) - #1474
Conversation
Repin the embedded zccache from 1.13.1 (8cf6dd0) to main 8475316, which carries forge-ci/zccache#1668 (trust the compiler depfile), #1669 (memoize per-file include scans across TUs) and #1670 (single-pass include lexer). zccache now takes running-process =4.10.14 from crates.io, so the workspace running-process and running-process-probe-daemon pins move to that exact registry version to keep a single rp_*_public symbol identity. - DaemonStdioSource::Fd/Handle became File(&File) in running-process 4.10. - dep_identity.rs now accepts an exact registry pin as well as a git rev. Blink cold build, 4 cores (taskset -c 0-3), median of 3, isolated cache: main 791 ms (warm 50 ms) branch 394 ms (warm 50 ms) perf (cold build, system-wide): compiler processes ~28% of samples vs the daemon's tokio workers ~13% (was 85% daemon / ~11% compiler). Closes #1464. Refs #1469.
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (1)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Repository: FastLED/fbuild/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository: FastLED/fbuild/.coderabbit.yaml Review profile: CHILL Plan: Advanced Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (11)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe pull request updates zccache and running-process dependency pins, adapts the dependency identity test to accept exact registry versions, and changes detached-process stderr handling across Linux, macOS, and Windows. ChangesDependency and process alignment
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other · Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to No actionable issue is established for the dependency repin or detached-process changes. The PR is mergeable after normal checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The current dependency lock uses the intended registry version, and the process changes do not appear to give callers new authority. The dependency check is less specific about registry origin than its stated contract, while the new cache behavior cannot be fully assessed from the code included in this PR. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 3 | ❌ 1 | ❓ 1❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
Full details: Linked Issues checkExplanation PR Resolution Provide the Full details: Docstring CoverageExplanation Docstring coverage is 57.14% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 4 files. (7 skipped: 7 unsupported.) ✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
…0 import changes (#1464)
CI benchmark (
|
| tool | cold median | cold trials | warm median |
|---|---|---|---|
| Arduino CLI | 640 ms | 692 / 640 / 631 | 318 ms |
| PlatformIO | 868 ms | 872 / 863 / 868 | 622 ms |
| fbuild (this PR) | 451 ms | 443 / 451 / 462 | 46.3 ms |
| fbuild, nightly baseline (0433e96) | 2111 ms | 45.9 ms |
- perf: cold build 3x slower than PlatformIO — zccache miss-path include scan dominates CPU #1464 acceptance met: fbuild's cold build is now 0.52× PlatformIO's. It was 2.8×.
- Warm builds did not regress (46.3 ms vs 45.9 ms).
The first dispatched run (36234375809) measured warm at 251 ms, and its log showed daemon binary updated, restarting... on every fbuild command. I couldn't reproduce that:
- A step replicating the runner's exact capture semantics on CI showed warm at 47 ms.
- Two more benchmark runs of the same code, one with
RUST_LOG=fbuild_cli=info, both showed warm at about 46 ms and no restart lines.
I'm treating it as a one-off runner artifact. The throwaway debug branch has been deleted.
Closes #1464. Part of #1469 (Phase 2).
What
This repins the embedded zccache from 1.13.1 (
8cf6dd0) to zccache main8475316. The new rev carries the three Phase 1 miss-path fixes:Follow-on changes the new zccache requires
running-process =4.10.14from crates.io instead of a git rev. The workspacerunning-processandrunning-process-probe-daemonpins move to that exact registry version, so the lock keeps a singlerp_*_publicidentity (chore(deps): cascade latest running-process and zccache releases into fbuild #1239).crates/fbuild-core/tests/dep_identity.rsnow accepts an exact registry pin as well as a git rev. It still requires exactly one resolved identity matching the pin.DaemonStdioSource::Fd(BorrowedFd)andDaemonStdioSource::Handle(BorrowedHandle)becameFile(&File). The Linux, macOS and Windowsspawn_detachedcall sites are updated.crash-handler0.7.Numbers (audit rules: median of 3, 4 cores)
Blink
--environment uno --release,taskset -c 0-3. Each binary uses an isolatedFBUILD_CACHE_DIRand daemon port. Cold meansfbuild clean cacheand then build; warm means an immediate no-change rebuild.main(16a9412)The cold build is about 2× faster. Warm builds did not regress.
perf record -aover one cold build shows the compiler processes (cc1plus, cc1, as and the avr-gcc/g++ drivers) at about 28% of samples, against about 13% for the daemon'stokio-rt-workerthreads. The #1464 baseline was 85% daemon and about 11% compiler.A
benchmark-build-comparison.ymlrun has been dispatched on this branch for the CI-runner comparison against PlatformIO. Its result will be added below.Validation
soldr cargo check --workspace --all-targetsandsoldr cargo clippy --workspace --all-targets -- -D warnings: cleanbash test: all 84 test binaries passSummary by CodeRabbit