I've getting fairly consistent build timeouts when running my tests on macOS. The same tests do not timeout on Ubuntu + Windows.
I understand it's really hard to debug this, so i'm just wondering if this is generally a known issue with the macOS VMs? Or perhaps the issue lies more with my application code?
An example check that fails on macOS due to timeout: https://github.com/badsyntax/vscode-gradle/pull/30/checks?check_run_id=290490146
Any advice would be appreciated. I'd really like to run my tests on macOS.
Check run is cancelled due to timeout 6hours, please refer to the link for more detail.
It's reported that nvm is not compatible with the "PREFIX" environment variable: currently set to "/usr/local".
Please add code 'unset npm_config_prefix' for your macOS section on master branch.
- name: Build & test extension run: | unset npm_config_prefix npm ci npm run lint npm test
It confirm it works on my side, hope it helps, thanks.
Thanks for the suggestion. I've noticed that on some of the timeout builds, that warning is not displayed, for example: https://github.com/badsyntax/vscode-gradle/commit/c28bb9b22478de61c1cf5dc0daf2a6acff9d8803/checks?ch...
Regardless. I will make the change and see if it makes any difference.
The main problem i'm facing is that the timeouts are fairly consistent, but not entirely consistent. Sometimes the step passes without problems, and sometimes it gets stuck and timeouts.
Thanks for your feedback!
I found the imcompatible error in the forked repo, yes please try and check if it works. :)
It's recommened to enable runner diagnostic logging to check more:
1. set the following secret in the repository that contains the workflow: 'ACTIONS_RUNNER_DEBUG' to true.
2. To download runner diagnostic logs, download the log archive of the workflow run. The runner diagnostic logs are contained in the runner-diagnostic-logs folder.
We can find more details about the timeout.
Hi, thanks for this, I was not aware of the runner diagnostic logging feature. I will enable the debug and see if I can spot anything.