mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
fix: resolve CI e2e test ETIMEDOUT errors when downloading VS Code (#7583)
This commit is contained in:
parent
1e403a7c92
commit
687b37943a
2 changed files with 33 additions and 0 deletions
32
.github/workflows/code-qa.yml
vendored
32
.github/workflows/code-qa.yml
vendored
|
|
@ -86,6 +86,38 @@ jobs:
|
|||
- name: Create .env.local file
|
||||
working-directory: apps/vscode-e2e
|
||||
run: echo "OPENROUTER_API_KEY=${{ secrets.OPENROUTER_API_KEY }}" > .env.local
|
||||
- name: Set VS Code test version
|
||||
run: echo "VSCODE_VERSION=1.101.2" >> $GITHUB_ENV
|
||||
- name: Cache VS Code test runtime
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: apps/vscode-e2e/.vscode-test
|
||||
key: ${{ runner.os }}-vscode-test-${{ env.VSCODE_VERSION }}
|
||||
- name: Pre-download VS Code test runtime with retry
|
||||
working-directory: apps/vscode-e2e
|
||||
run: |
|
||||
for attempt in 1 2 3; do
|
||||
echo "Download attempt $attempt of 3..."
|
||||
node -e "
|
||||
const { downloadAndUnzipVSCode } = require('@vscode/test-electron');
|
||||
downloadAndUnzipVSCode({ version: process.env.VSCODE_VERSION || '1.101.2' })
|
||||
.then(() => {
|
||||
console.log('✅ VS Code test runtime downloaded successfully');
|
||||
process.exit(0);
|
||||
})
|
||||
.catch(err => {
|
||||
console.error('❌ Failed to download VS Code (attempt $attempt):', err);
|
||||
process.exit(1);
|
||||
});
|
||||
" && break || {
|
||||
if [ $attempt -eq 3 ]; then
|
||||
echo "All download attempts failed"
|
||||
exit 1
|
||||
fi
|
||||
echo "Retrying in 5 seconds..."
|
||||
sleep 5
|
||||
}
|
||||
done
|
||||
- name: Run integration tests
|
||||
working-directory: apps/vscode-e2e
|
||||
run: xvfb-run -a pnpm test:ci
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ async function main() {
|
|||
extensionTestsPath,
|
||||
launchArgs: [testWorkspace],
|
||||
extensionTestsEnv,
|
||||
version: process.env.VSCODE_VERSION || "1.101.2",
|
||||
})
|
||||
|
||||
// Clean up the temporary workspace
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue