cache the .test-extensions folder to avoid flaky tests due to VS Code Extension Marketplace timeout

This commit is contained in:
Nate 2025-03-07 17:40:13 -08:00
parent fbb15387f8
commit fe036fa509

View file

@ -409,6 +409,14 @@ jobs:
path: extensions/vscode/node_modules
key: ${{ runner.os }}-vscode-node-modules-${{ hashFiles('extensions/vscode/package-lock.json') }}
# We don't want to cache the Continue extension, so it is deleted at the end of the job
- uses: actions/cache@v4
id: test-extensions-cache
with:
path: extensions/vscode/e2e/.test-extensions
# package.json used as the key because that's where the download script is defined
key: vscode-test-extensions-${{ hashFiles('extensions/vscode/package.json') }}
- name: Download build artifact
uses: actions/download-artifact@v4
with:
@ -450,6 +458,11 @@ jobs:
env:
DISPLAY: :99
- name: Delete continue from test extensions
run: |
cd extensions/vscode
rm -rf e2e/.test-extensions/continue*
- name: Upload e2e test screenshots
if: failure()
uses: actions/upload-artifact@v4