Skip to content

cache VS Code downloads to speed up test runs#3342

Merged
Dave Shoup (shouples) merged 2 commits intomainfrom
djs/cache-vscode-downloads
Mar 24, 2026
Merged

cache VS Code downloads to speed up test runs#3342
Dave Shoup (shouples) merged 2 commits intomainfrom
djs/cache-vscode-downloads

Conversation

@shouples
Copy link
Copy Markdown
Contributor

Minor addition to the caching to include the VS Code executable (150MB+), which will also help if we see waves of failed downloads like we did today:
image

@shouples Dave Shoup (shouples) requested a review from a team as a code owner March 23, 2026 23:44
Copilot AI review requested due to automatic review settings March 23, 2026 23:44
Comment thread mk-files/semaphore.mk Outdated
[[ $(os_name) == "Darwin" ]] && $(MAKE) sem-cache-store-entry SEM_CACHE_KEY=$(PLATFORM)_$(ARCH)_playwright_cache SEM_CACHE_PATH=$(HOME)/Library/Caches/ms-playwright || true
[[ $(os_name) == "Linux" ]] && $(MAKE) sem-cache-store-entry SEM_CACHE_KEY=$(PLATFORM)_$(ARCH)_playwright_cache SEM_CACHE_PATH=$(HOME)/.cache/ms-playwright || true
# Also cache VS Code binaries downloaded by @vscode/test-electron if present
[[ -d $(CURDIR)/.vscode-test ]] && $(MAKE) sem-cache-store-entry SEM_CACHE_KEY=$(PLATFORM)_$(ARCH)_vscode_test_cache SEM_CACHE_PATH=$(CURDIR)/.vscode-test || true
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.vscode-test/ as seen locally after running a few months' worth of tests:

Image

Copy link
Copy Markdown

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

Adds Semaphore CI caching for the VS Code binaries downloaded during tests (via @vscode/test-electron) to reduce repeated 150MB+ downloads and improve test reliability during upstream download issues.

Changes:

  • Store .vscode-test/ in Semaphore cache when present.
  • Restore the .vscode-test/ cache during CI setup.

Comment thread mk-files/semaphore.mk Outdated
@sonarqube-confluent
Copy link
Copy Markdown

Quality Gate passed Quality Gate passed

Issues
0 New issues
0 Fixed issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarQube

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wow yes makes a ton of sense not to re-download every time

@shouples Dave Shoup (shouples) merged commit 4836c71 into main Mar 24, 2026
14 checks passed
@shouples Dave Shoup (shouples) deleted the djs/cache-vscode-downloads branch March 24, 2026 21:29
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.

3 participants