perf(ci): comprehensive ccache/sccache optimizations — all platforms#433
Merged
Conversation
Windows x64: - Remove sccache entirely (0% hit rate in all runs, caused C1041 PDB contention that /FS could not fix) - Remove mozilla-actions/sccache-action step - Remove SCCACHE_GHA_ENABLED env var - Keep CMP0141=NEW + CMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embedded (correct setup for sccache if ever re-enabled; also harmless without it) macOS + Linux (ccache): - Add include_file_mtime + include_file_ctime to CCACHE_SLOPPINESS: CI file timestamps change between runs causing unnecessary cache misses (documented in ccache manual as recommended for CI) - Add CCACHE_BASEDIR=GITHUB_WORKSPACE: converts absolute paths to relative ones before hashing, allowing cache sharing across different checkout paths Debian + Fedora (cd-packages.yml): same sloppiness + basedir additions Sources: ccache 4.10 manual (troubleshooting), sccache README (MSVC), sccache issue bambulab#2320 (C1041 is a known unresolved issue with sccache+MSVC)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Properly researched fixes for all platforms based on official documentation.
Windows x64
Removes sccache entirely. Reasons:
/FSnor/Z7inCMAKE_FLAGScan fix reliably for all subprojectsKeeps
CMP0141=NEW + CMAKE_MSVC_DEBUG_INFORMATION_FORMAT=Embedded— correct setup per sccache docs should sccache ever be re-enabled.macOS + Linux (ccache)
Per ccache 4.10 manual:
include_file_mtime+include_file_ctimetoCCACHE_SLOPPINESS: CI file timestamps change between runs causing unnecessary cache missesCCACHE_BASEDIR=GITHUB_WORKSPACE: converts absolute paths to relative before hashing → cache hits even if checkout path changes