Repository navigation
move every e2e engine's sccache from s3 to the actions cache - #19387
Conversation
The macOS 26, macOS 15, Windows Server 2025 and Ubuntu 24 engines now keep their sccache objects in the Actions cache instead of the rstudio-sccache S3 bucket, whose every hit was billed as egress. Runs on main (the nightly seeds) write; every other ref reads main's entries with SCCACHE_GHA_RW_MODE=READ_ONLY, so PR entries can't crowd main's out of the repo's cache limit (#18337). The Linux desktop engine picks its backend per config: gha for ubuntu-24-x86_64, s3 for the rotation-only distros. The other rotation-only engines stay on S3. The Windows seed now runs nightly like the others, replacing the weekly Windows seed workflow. Addresses #19355
|
I ran a test build on this branch: Windows Server 2025, built from source, build only (run 41383259813, passed in 51 min).
The PR's own e2e run (41383246727) also built from source, so it tested the same read-only mode on the other platforms:
macOS and Linux get no hits because main has no sccache entries in the Actions cache for them yet. The seeds will save those when they run after this merges. Until then, those builds compile everything, just as these did. |
RStudio E2E - all platformsAll tests passed!
View / download the full reportView report online -- opens in the browser, no download needed. Available for 14 days. Download playwright-report.zip -- extract and open
All platforms - commit |
The rotation-only engines (macOS 14, macOS 27, Windows 11 arm64, and the Linux rotation distros) follow the daily engines off the rstudio-sccache S3 bucket. Every engine now uses the same rule: main writes, every other ref reads main's entries. The sccache_backend and sccache_key_prefix engine-config keys, the S3 credential steps, and the AWS_SCCACHE_ROLE_ARN secret plumbing go away, and make-package skips the AWS credential probe when the Actions cache backend is already configured. Addresses #19355
|
Pushed 4219d33: the rotation-only engines (macOS 14, macOS 27, Windows 11 arm64, and the Linux rotation distros) now use the Actions cache too, under the same rule as the daily engines (main writes, every other ref reads). That removes the S3 code path and the |
|
Validation of 4219d33, which puts every engine on the Actions cache:
Every build logged
As before, the Windows hits come from the entries the seed saved on main on Oct 27-29; the other platforms have no main entries yet, so they get them when the seeds run after this merges. The write errors are the saves read-only mode refuses, one per miss. The branch scope and the PR's merge-ref scope both still hold 0 cache entries, so nothing wrote to the cache. |
Addresses #19355 (step 5).
Every e2e engine moves its sccache objects from the
rstudio-sccacheS3 bucket, where each hit from a GitHub-hosted runner is billed as egress, to the Actions cache. #19357 has already cleared space in the cache, and the repo's limit is now 20 GB.Changes
SCCACHE_GHA_ENABLED=true, withSCCACHE_GHA_RW_MODE=READ_WRITEonrefs/heads/mainandREAD_ONLYeverywhere else. Only runs on main write. PR builds read main's entries and don't add their own, so they can't push main's entries out of the cache, which is what happened in speed up e2e ci builds #18337.windows-2025image as Windows Server 2025, so it reads that engine's nightly entries. Linux engines that build bare on the Ubuntu 24 runner with the same toolchain read Ubuntu 24's.AWS_SCCACHE_ROLE_ARNsecret from every workflow that declared or passed it, and thesccache_backendandsccache_key_prefixkeys from the.github/e2e-linux/configs. TheAWS_SCCACHE_ROLE_ARNrepo secret, theAWS_SCCACHE_BUCKETrepo variable, the IAM role, and the bucket itself are now unused by this repo.aws stscredential probe whenSCCACHE_GHA_ENABLEDis set, so GitHub builds no longer log a spurious AWS error. Jenkins builds still default to therstudio-build-cachebucket; they run inside AWS and are unchanged.os-test-e2e-rstudio-desktop-os-windows-server-2025-seed.yml, the separate weekly Windows seed, is deleted because it duplicated that run.Trade-offs
rel-*branches only hit objects that are byte-identical to main's, since nothing seeds arel-*scope. Under S3 they shared one cache with everything else. About tenrel-*PRs merged in October against roughly two hundred on main. If that becomes a problem, arel-*seed is a follow-up.Validation
RSTUDIO_USE_SYSTEM_DEPENDENCIES#19239), which can't use the AWS role, has already been building with this backend. It got 638/648 cache hits on Windows and 904/918 on Linux server, at about 0.14 s per read, which matches S3.mainand on this branch; shellcheck likewise formake-package.