-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Windows build on GitHub Actions CI has exit code 1 with passing tests #9413
Comments
This is very odd, and the first I've heard of it - surely somebody else has tried to use Jest on GH Actions CI? I've set it up myself here: https://github.com/jest-community/eslint-plugin-jest/runs/385531999. It's also missing the footer. I have absolutely no idea how to debug this, maybe @ericsciple (or someone they can poke) could shed some light on this? |
Hi there! I'm having the same issue. You can see an example here: |
I thought maybe the difference was running yarn instead of npm, so I created test branch with yarn, but that wasn't the case: |
Does it only fail on Windows when using the hosted runner, e.g. That may help narrow whether it's related to the VM image for the hosted Windows runners, or whether it's related to the actual runner itself (the program that runs the job locally on the machine and posts logs back to the service). If it fails on self-hosted runner also, then try take the runner out of the picture and see if it fails from a plain command prompt on that same machine. fwiw we're using jest on several repos (e.g. this one) and it's working on the hosted |
Got the same problem and maybe the following information helps. The described problem occurs when using the |
thanks @Supereg that helps rule out the runner itself and points to the VM. The repo actions/virtual-environments contains the scripts that build the VM image. I would recommend file an issue in that repo, and request advice how to debug an issue only failing on windows-2019 (i.e. windows-latest) and not windows-2016. I am hopeful they may have some advice like how to setup the VM image locally for debugging. Or they may have other suggestions. @thejoebourneidentity @densto88 @stbeam fyi |
This jest issue mentions having similar problems with jest. The recommendation there was to downgrade. Gonna try it. jestjs/jest#9413
Same problem here. I wrote native code so at first I thought my code had memory access issue. https://github.com/netheril96/securefs/runs/524324735?check_suite_focus=true |
@Deseteral and others, please open an issue for this over at actions/virtual-environments so the Actions team can help and look into why this might be happening. Thanks |
@thejoebourneidentity thanks for suggestion, I just did that :) |
It looks like the issue doesn't occur anymore. My two repos with windows builds now have passing tests. |
Great to hear. Feel free to close issues and reach out to us again if you see it again! |
Hi everybody i hope you got a good day ! this is my ts.yml
Only the jest-ts have this behaviour. |
Got kind of the same issue with an off-the-shell compilation of Pangolin. The change from |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
🐛 Bug Report
Jest quits with exit code 1 even though all tests are passing. This happens only on GitHub Actions CI on Windows.
Ubuntu and MacOS builds are working correctly. When I run the same test suite on my personal Windows PC it also works (tests are passing and
%errorlevel%
is 0).I've notices this behaviour on Electron+TypeScript project so I thought that maybe there is something wrong with configuration, but then I've created simple repo to reproduce the problem without TypeScript and without any configuration and the issue still persists.
To Reproduce
Run jest on GitHub Actions CI.
Expected behavior
When all tests are passing jest should stop with exit code 0.
Link to repl or repo (highly encouraged)
Repo: https://github.com/Deseteral/jest-gh-actions-issue
Logs of last failing build: https://github.com/Deseteral/jest-gh-actions-issue/commit/dc21dd4b95bbe88ef73163156f4cdac0a253b37d/checks?check_suite_id=402904990
envinfo
envinfo on GitHub Actions CI with
windows-latest
OS:The text was updated successfully, but these errors were encountered: