-
Notifications
You must be signed in to change notification settings - Fork 17
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
[CSR-3] Report results for spec files when cypress has a hard crash #79
Comments
WARNING Cannot find run result for spec ...
cause the Cypress Cloud to keep on running even if the Jenkins Job is already doneWARNING Cannot find run result for spec ...
cause the Cypress Cloud Run to keep on running even if the Jenkins Job is already done
Thanks for reporting that @bilarallen. It seems like cypress had a hard crash without returning anything at all. |
Hi @agoldis I think I found the possible root cause of the issue but I'm not that really sure, it seems that based on my comment #79 (comment) its a problem with the tnicola/cypress-parallel#89 (comment) I get some point in the comment to run a particular command for xvfb but I don't know how to do it in my jenkins pipeline since it is using docker cypress/base image |
@bilarallen are you running cypress in parallel on the same machine? It'd be still great to have the crash reported to the dashboard. |
Hi @agoldis yes I am running the parallel test on the same machine. |
WARNING Cannot find run result for spec ...
cause the Cypress Cloud Run to keep on running even if the Jenkins Job is already done
Hello, we have the same issue. We are running our test in parallel on the same machine as well. @agoldis Do I understand you correctly the problem is that the Cypress cloud processes are running on the same machine. So running each cypress cloud process in a different docker container might solve the issue, right? |
@MaltePetersen This issue deals is about |
Hi @agoldis, would just like to ask what's the update for this one, please? As we have experienced it again. Here is the debug logs. Thanks! |
Hello @bilarallen I am very sorry that this issue is taking so much to resolve, we are working on a fix, expecting to roll out a release next week. |
Hi @agoldis cool! Looking forward to it 😄 thanks! |
@bilarallen @MaltePetersen |
@agoldis Thanks for the update. Through the appropriate error handling, I recognized that my concurrent approach on the same machine did not work because xvfb was sometimes locked from the other cypress-cloud instance accessing it on initialization. Just putting a sleep 5 && before my second cypress-cloud initialization solved the issue. |
That's great! Will release to the latest npm channel |
Before opening, please confirm:
Environment information
Describe the bug
When the Jenkins Job is already finished and is a success, the run associated with that build in the Currents keeps on running. This only happens whenever we encounter the warning message
WARNING Cannot find run result for spec ../spec/Path
andWARNING Cannot determine run result for spec ../spec/Path
every afterReporting results and artifacts in background...
in the console logExpected behavior
Should be able to finish the run and perhaps give more information as to why it cannot find and determine the result for a particular spec that was run.
Command and Setup
Jenkins File Snippet
Full log and debug output
This is an intermittent issue and produces a lot of logs if we do it in Jenkins CI and doesn't happen all the time but here's a screen recording of it
2023-03-14_12h31_02.mp4
Edit by @agoldis
Also, make sure to mark the run as failed in CI when a crash is detected
The text was updated successfully, but these errors were encountered: