microsoft / vscode-test

Testing utility for VS Code extensions
MIT License
246 stars 59 forks source link

Hangs on Mac mini M2 headless #290

Open ubmarco opened 3 weeks ago

ubmarco commented 3 weeks ago

I am running tests for a VS Code extension on a self-hosted Github runner. The runner is installed on an Mac mini M2 ARM architecture. The Mac has a display connected, but no user is logged in during the test. I also don't want to connect a display for productive usage.

Run coactions/setup-xvfb@v1
/opt/homebrew/bin/npm test
> new_ext@0.1.1 test
> npm run compile && npm run test:compile && vscode-test --timeout=5000
> new_ext@0.1.1 compile
> npm run check-types && node esbuild.mjs
> new_ext@0.1.1 check-types
> tsc --noEmit
[watch] build started
[watch] build finished
> new_ext@0.1.1 test:compile
> node esbuild-tests.mjs
- Resolving version...
✔ Validated version: 1.95.1
- Found at https://update.code.visualstudio.com/1.95.1/darwin-arm64/stable?released=true
✔ Found at https://update.code.visualstudio.com/1.95.1/darwin-arm64/stable?released=true
- Downloading (128.81 MB)
✔ Downloaded VS Code into /Users/gh-runner/actions-runner-3/_work/new_ext/new_ext/vscode/.vscode-test/vscode-darwin-arm64-1.95.1
2024-11-05 14:49:18.393 Electron[6385:33271] +[NSXPCSharedListener endpointForReply:withListenerName:replyErrorCode:]: an error occurred while attempting to obtain endpoint for listener 'ClientCallsAuxiliary': Connection interrupted

It hangs at this step for a couple of minutes until the Github action times out. Any clue what's wrong?

ubmarco commented 3 weeks ago

The error also appears when I connect to the machine via SSH and run it locally outside of a github action. And without coactions/setup-xvfb.

It just returns

bash-3.2$ node_modules/.bin/vscode-test 
✔ Validated version: 1.95.1
✔ Found existing install in /Users/gh-runner/new_ext/vscode/.vscode-test/vscode-darwin-arm64-1.95.1
2024-11-05 16:19:32.147 Electron[7215:51296] +[NSXPCSharedListener endpointForReply:withListenerName:replyErrorCode:]: an error occurred while attempting to obtain endpoint for listener 'ClientCallsAuxiliary': Connection interrupted

and hangs there forever.