Skip to content

Make sccache cache task non-fatal#128052

Merged
agocke merged 1 commit into
dotnet:mainfrom
agocke:sccache-continue-on-error
May 12, 2026
Merged

Make sccache cache task non-fatal#128052
agocke merged 1 commit into
dotnet:mainfrom
agocke:sccache-continue-on-error

Conversation

@agocke

@agocke agocke commented May 11, 2026

Copy link
Copy Markdown
Member

Note

This PR was created with Copilot assistance.

The Cache@2 task for sccache can fail when the disk runs out of space during the post-job cache upload (see build log). Since this is purely a performance optimization, a failure should not fail the entire build.

This adds continueOnError: true so the task reports a warning instead of an error on failure.

Fixes #128051

Copilot AI review requested due to automatic review settings May 11, 2026 20:45
@github-actions github-actions Bot added the area-Infrastructure-coreclr Only use for closed issues label May 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the CoreCLR pipeline sccache templates to reduce CI brittleness by making the Azure Pipelines Cache@2 step for the sccache directory non-fatal, so cache upload/restore problems don’t fail the overall build.

Changes:

  • Mark the Cache@2 “Sccache cache” task as continueOnError: true so failures become warnings.
  • Expand sccache setup/stats execution to include Linux _musl legs and incorporate osSubgroup into the cache key/restore keys.
  • Set SCCACHE_CACHE_SIZE in the sccache configuration step.

Reviewed changes

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

File Description
eng/pipelines/coreclr/templates/setup-sccache.yml Makes sccache cache task non-fatal; adjusts cache keying and eligibility for _musl; sets sccache cache size env var.
eng/pipelines/coreclr/templates/sccache-stats.yml Aligns sccache stats collection eligibility with the updated _musl gating.

Comment thread eng/pipelines/coreclr/templates/setup-sccache.yml Outdated
Comment thread eng/pipelines/coreclr/templates/setup-sccache.yml
@agocke agocke force-pushed the sccache-continue-on-error branch from 37cb997 to e6e4e9c Compare May 11, 2026 21:45
The Cache@2 task for sccache can fail when the disk runs out of space
during the post-job cache upload. This is purely a performance
optimization, so a failure should not fail the entire build.

Add continueOnError: true so the task reports a warning instead of
an error on failure.

Fixes dotnet#128051

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings May 11, 2026 22:00
@agocke agocke force-pushed the sccache-continue-on-error branch from e6e4e9c to 29e4f7c Compare May 11, 2026 22:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.

Comment thread eng/pipelines/coreclr/templates/setup-sccache.yml
@agocke

agocke commented May 12, 2026

Copy link
Copy Markdown
Member Author

/ba-g timeouts in unrelated legs

@agocke agocke merged commit ea0cf22 into dotnet:main May 12, 2026
107 of 122 checks passed
@agocke agocke deleted the sccache-continue-on-error branch May 12, 2026 07:21
@github-project-automation github-project-automation Bot moved this to Done in AppModel May 12, 2026
agocke added a commit to agocke/runtime that referenced this pull request May 12, 2026
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 (dotnet#128052), any disk
space issues during upload will no longer fail the build.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
agocke added a commit to agocke/runtime that referenced this pull request May 12, 2026
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 (dotnet#128052), any disk
space issues during upload will no longer fail the build.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 11, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Infrastructure-coreclr Only use for closed issues

Projects

Status: Done
Status: Done

Development

Successfully merging this pull request may close these issues.

SCCache cache pipeline step: No space left on device fails build

3 participants