Problem
Agent CI sometimes takes ~1 hour even when sources/agent/vcpkg.json is unchanged. Fast runs (~2 min) restore the cache; slow ones rebuild deps from source during CMake Configure (grpc alone ~49 min).
Cause
x-gha binary cache is gone - workflow sets VCPKG_BINARY_SOURCES=clear;x-gha,readwrite, but vcpkg removed that backend (~Apr 2025). Logs warn: "The 'x-gha' binary caching backend has been removed."
actions/cache misses the real binary cache dir - lukka/run-vcpkg puts packages under a per-run UUID path (VCPKG_DEFAULT_BINARY_CACHE), while we only cache ~/.cache/vcpkg + sources/agent/build/vcpkg_installed.
- Eviction / branch scope - unused caches expire after 7 days; PR vs base/default branch visibility can miss the same key. Repo often ends up with 0 active caches after quiet periods.
Proposed fix
- Drop
x-gha.
- Use a fixed
VCPKG_DEFAULT_BINARY_CACHE and cache that with actions/cache.
- Optionally add NuGet → GitHub Packages for a durable shared binary cache across branches.
Refs
Problem
Agent CI sometimes takes ~1 hour even when
sources/agent/vcpkg.jsonis unchanged. Fast runs (~2 min) restore the cache; slow ones rebuild deps from source duringCMake Configure(grpc alone ~49 min).Cause
x-ghabinary cache is gone - workflow setsVCPKG_BINARY_SOURCES=clear;x-gha,readwrite, but vcpkg removed that backend (~Apr 2025). Logs warn: "The 'x-gha' binary caching backend has been removed."actions/cachemisses the real binary cache dir -lukka/run-vcpkgputs packages under a per-run UUID path (VCPKG_DEFAULT_BINARY_CACHE), while we only cache~/.cache/vcpkg+sources/agent/build/vcpkg_installed.Proposed fix
x-gha.VCPKG_DEFAULT_BINARY_CACHEand cache that withactions/cache.Refs
.github/workflows/agent_ci.yml