Skip to content

ci: add runs-on to vcpkg cache key to prevent macOS version cache thrashing#7604

Merged
DennisOSRM merged 1 commit into
masterfrom
dluxen/vcpkg-cache-key-macos-version
Jun 4, 2026
Merged

ci: add runs-on to vcpkg cache key to prevent macOS version cache thrashing#7604
DennisOSRM merged 1 commit into
masterfrom
dluxen/vcpkg-cache-key-macos-version

Conversation

@DennisOSRM
Copy link
Copy Markdown
Collaborator

@DennisOSRM DennisOSRM commented Jun 3, 2026

macos-15 and macos-26 jobs share the same runner.os/runner.arch/triplet combination, causing cache-key collisions. The first to finish populates the cache with SDK-specific binaries that the other rejects, forcing a full vcpkg rebuild from source on every run. Include matrix.runs-on in the key so macos-15-x64, macos-26-x64 (and the arm64 equivalents) each get their own bincache.

…ashing

macos-15 and macos-26 jobs share the same runner.os/runner.arch/triplet
combination, causing cache-key collisions. The first to finish populates
the cache with SDK-specific binaries that the other rejects, forcing a
full vcpkg rebuild from source on every run. Include matrix.runs-on in
the key so macos-15-x64, macos-26-x64 (and the arm64 equivalents) each
get their own bincache.
Copilot AI review requested due to automatic review settings June 3, 2026 20:24
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 fixes GitHub Actions vcpkg binary cache collisions between different macOS runner images (e.g., macos-15 vs macos-26) by adding the workflow’s matrix.runs-on value to the vcpkg cache key. This prevents incompatible SDK-built binaries from overwriting each other and triggering repeated full rebuilds.

Changes:

  • Include ${{ matrix.runs-on }} in the vcpkg cache key to differentiate caches per runner image.
  • Include ${{ matrix.runs-on }} in restore-keys to avoid restoring an incompatible cache from a different macOS runner image.

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

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.12%. Comparing base (824671b) to head (a2192cc).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7604   +/-   ##
=======================================
  Coverage   94.12%   94.12%           
=======================================
  Files         482      482           
  Lines       37420    37420           
=======================================
+ Hits        35221    35223    +2     
+ Misses       2199     2197    -2     

☔ 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@DennisOSRM DennisOSRM merged commit 337e910 into master Jun 4, 2026
52 of 53 checks passed
@DennisOSRM DennisOSRM deleted the dluxen/vcpkg-cache-key-macos-version branch June 4, 2026 00:59
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