vscode-R icon indicating copy to clipboard operation
vscode-R copied to clipboard

CI for macOS and windows always fails

Open ElianHugh opened this issue 1 year ago • 0 comments
trafficstars

Describe the bug mac and windows test runners always fail for all PRs, no matter if the PR in question has no issues with it. The failure is because the runners are crashing, which cancels all other test runners in the process.

Details
Run GabrielBB/[email protected]
/Users/runner/hostedtoolcache/node/16.20.1/arm64/bin/npm run test

> [email protected] pretest
> tsc -p ./


> [email protected] test
> node ./out/test/runTest.js

Downloading VS Code 1.89.0 from https://update.code.visualstudio.com/1.89.0/darwin-arm64/stable
Downloading VS Code (130895428B)
Downloading VS Code [------------------------------] 3%Downloading VS Code [=-----------------------------] 6%Downloading VS Code [===---------------------------] 10%Downloading VS Code [====--------------------------] 14%Downloading VS Code [=====-------------------------] 17%Downloading VS Code [======------------------------] 21%Downloading VS Code [=======-----------------------] 25%Downloading VS Code [========----------------------] 28%Downloading VS Code [=========---------------------] 32%Downloading VS Code [==========--------------------] 36%Downloading VS Code [============------------------] 41%Downloading VS Code [==============----------------] 47%Downloading VS Code [===============---------------] 51%Downloading VS Code [=================-------------] 57%Downloading VS Code [==================------------] 61%Downloading VS Code [===================-----------] 65%Downloading VS Code [====================----------] 67%Downloading VS Code [=====================---------] 72%Downloading VS Code [=======================-------] 78%Downloading VS Code [========================------] 83%Downloading VS Code [==========================----] 90%Downloading VS Code [============================--] 95%Downloaded VS Code into /Users/runner/work/vscode-R/vscode-R/.vscode-test/vscode-darwin-arm64-1.89.0
Downloaded VS Code into /Users/runner/work/vscode-R/vscode-R/.vscode-test/vscode-darwin-arm64-1.89.0
Test error: Error: spawn /Users/runner/work/vscode-R/vscode-R/.vscode-test/vscode-darwin-arm64-1.89.0/Visual Studio Code.app/Contents/MacOS/Electron ENOENT
Exit code:   -2
Failed to run tests
Error: The process '/Users/runner/hostedtoolcache/node/16.20.1/arm64/bin/npm' failed with exit code 1

Some thoughs:

  • @eitsupi has noted that the node version is very old (latest release is 22, we are on 16)
  • https://github.com/GabrielBB/xvfb-action has been deprecated, a potential replacement is https://github.com/coactions/setup-xvfb

ElianHugh avatar May 06 '24 05:05 ElianHugh