Repository navigation
ci: export ACTIONS_CACHE_SERVICE_V2 so sccache uses the current cache API - #81
Merged
Merged
Conversation
… API Without it the GHA backend falls back to the retired v1 endpoint: run 39757585375 built with 0 hits and 675 write errors on macOS.
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.
Follow-up to #80's best-effort sccache start on the native runners.
sccache's GitHub Actions backend selects the current (v2) cache API only when
ACTIONS_CACHE_SERVICE_V2is set (opendalghacbackend,core/services/ghac/src/core.rs). The github-script step in #80 exported onlyACTIONS_RESULTS_URLandACTIONS_RUNTIME_TOKEN, as sccache's docs show, so sccache fell back to the retired v1 endpoint: run 39757585375 builtbuild (macos-aarch64)with 0 cache hits and 675 write errors (8 minutes against 3.5 with hits). The build still passed, which is what #80 set out to guarantee, but the cache no longer did anything on macOS and Windows.This exports
ACTIONS_CACHE_SERVICE_V2andACTIONS_CACHE_URLalongside the other two. Expected effect: hit rates back to what maturin-action's own sccache input produced, with the startup failure still non-fatal.Verification: actionlint clean; the first run on this branch is a cold write, the second run shows the hits.