From 3091f32c27ad4ac5bac94ba6556bf5f121b570ac Mon Sep 17 00:00:00 2001 From: Andy Gocke Date: Tue, 12 May 2026 18:39:42 +0000 Subject: [PATCH] Increase sccache cache size to 5 GiB The 3.5 GiB limit was causing sccache to evict useful entries, dropping the hit rate from ~97% to ~89%. The full working set is around 7-8 GiB. Bumping to 5 GiB should recover most of the hit rate. With continueOnError on the Cache task (#128052), any disk space issues during upload will no longer fail the build. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- eng/pipelines/coreclr/templates/setup-sccache.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/pipelines/coreclr/templates/setup-sccache.yml b/eng/pipelines/coreclr/templates/setup-sccache.yml index cdd232589cd80a..7d03864ae9ad9a 100644 --- a/eng/pipelines/coreclr/templates/setup-sccache.yml +++ b/eng/pipelines/coreclr/templates/setup-sccache.yml @@ -43,7 +43,7 @@ steps: chmod +x "$sccacheDir/sccache" echo "##vso[task.prependpath]$sccacheDir" echo "##vso[task.setvariable variable=SCCACHE_DIR]$(Pipeline.Workspace)/.sccache" - echo "##vso[task.setvariable variable=SCCACHE_CACHE_SIZE]3584M" + echo "##vso[task.setvariable variable=SCCACHE_CACHE_SIZE]5120M" echo "##vso[task.setvariable variable=SCCACHE_IDLE_TIMEOUT]0" echo "##vso[task.setvariable variable=USE_SCCACHE]true" displayName: Download and configure sccache