Skip to content

reduce GitHub Actions cache pressure in e2e workflows - #18151

Merged
kevinushey merged 1 commit into
mainfrom
developer/trim-actions-cache-usage
Jul 5, 2026
Merged

kevinushey merged 1 commit into
mainfrom
developer/trim-actions-cache-usage

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

Summary

The repo's e2e Actions cache was pinned at the 10 GB quota (3,576 active cache entries), which was causing eviction of the caches PR builds most depend on (rstudio-tools, R-libs, GWT output). This trims two sources of pure waste:

  • Drop the RStudio installer caches (actions/cache@v4, no branch gate). These steps don't build anything — when build_from_source == false they just re-download an already-published daily build from dailies.rstudio.com (itself S3/CDN-backed). Because GitHub's cache scoping doesn't let concurrent PRs share a cache entry with each other (only with their base branch), every PR that hit this path was independently downloading and caching its own duplicate multi-hundred-MB copy of identical bytes, with no real time savings over just downloading fresh.
  • Gate the "Save GWT output" step to main-scoped runs only, matching the main-only-save pattern already used for the rstudio-tools and R-libs caches elsewhere in these same workflows. A cache saved from a PR run is only ever visible to that same PR (never to main or other PRs), so PR-side saves were pure one-way quota pressure on main's copy — the one every other PR actually depends on for a fast, warm GWT build.

Test plan

  • All 7 edited workflow YAML files parse successfully (validated with PyYAML)
  • Confirm a PR-triggered e2e run still downloads/installs the daily build correctly with caching removed
  • Confirm a main-branch run still saves the GWT cache, and a subsequent PR run restores it (cache-hit skips recompilation)

The repo's e2e workflows were pinned at the 10 GB Actions cache quota
(3,576 active caches), causing eviction of the caches PR builds most
depend on. Two changes:

- Drop the RStudio installer caches (actions/cache@v4, no branch gate).
  These just re-download an already-published daily build from
  dailies.rstudio.com (S3/CDN-backed), and since GH cache scoping
  doesn't let concurrent PRs share an entry, every PR that hit this
  path was minting its own duplicate multi-hundred-MB copy of the same
  bytes for no real time savings.

- Gate the GWT output "Save" step to main-scoped runs only, matching
  the main-only-save pattern already used for the rstudio-tools/R-libs
  caches. A cache saved from a PR run is only ever visible to that same
  PR, so it was pure one-way quota pressure on main's copy, which is
  the one every other PR actually depends on for a fast build.
@kevinushey kevinushey added this to the 2026.07 (Pacific Dogwood) milestone Jul 5, 2026
@github-actions

github-actions Bot commented Jul 5, 2026

Copy link
Copy Markdown

RStudio E2E - all platforms

All tests passed!

#################### 100% pass rate

Passed Failed Skipped Flaky
1804 0 54 3
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ desktop-linux 456 0 10 0
✅ desktop-macos 456 0 10 0
✅ desktop-windows 454 0 12 2
✅ server-linux 438 0 22 1
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


All platforms - commit b0718a15d107a382bc24f142f4de6c18db6646f9 - Run #95

@kevinushey
kevinushey merged commit 0f27e51 into main Jul 5, 2026
24 checks passed
@kevinushey
kevinushey deleted the developer/trim-actions-cache-usage branch July 5, 2026 21:18
gtritchie added a commit that referenced this pull request Jul 6, 2026
Restore the Windows build configuration to e4e2b13, the last commit with
a green Windows build, backing out the VS 2026 / MSVC 14.5 toolchain
migration that landed alongside the setlocale fix in #18141 (the #17986
work).

The migration bumped the Windows Docker base image to
windowsservercore-ltsc2022, but the Jenkins Windows agents run Windows
Server 2019 (10.0.17763). A 2022-based (10.0.20348) container cannot run
there under process isolation, so the image rebuild fails at the FROM
step, the jenkins/ide:windows-x86_64-pacific-dogwood tag in ECR stays at
the pre-migration image, and downstream builds pull that stale VS 2022
image -- which windows-checks.cmake then rejects for reporting toolset
143. main has been red on Windows since the migration merged.

Only the toolchain hunks are reverted. The #18139 setlocale fix and its
test fixes from #18141 are preserved, as are the unrelated e2e cache
changes from #18151. The migration can reland once the Windows CI fleet
is upgraded to Server 2022.
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.

1 participant