-
Notifications
You must be signed in to change notification settings - Fork 23
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
Percy agent only handling exit case not error or close #381
Comments
Hey Callum! We shouldn't need to handle the close event since the spawned process inherits stdio. But we should definitely handle the error case! Although there is no code when an error is thrown, we can at least log the error and stop the server. I'll have a fix for that out shortly! 👍 I'm not quite sure where your example comes into play though? It looks like the process did successfully exit, and Percy correctly shut down its internal server after finishing up. I verified that the proper exit code is also returned from Percy. What are you expecting to happen in this situation? |
Hey @wwilsman, expecting percy to exit with an error code it seemed to exit successfully and let the CI progress, hard to say as I don't have a lot of logging for this, i'll do some more digging and see what I can find. Thanks for jumping on the suggested change so quickly 👌 |
@csi-lk No problem! If you Would you mind sharing the command you use to start Percy + Cypress? That might have something to do with this. 🤔 |
Going to close this issue since it's a bit old -- please comment back if this is still an issue! |
Hi, I am not able to resolve it. I run cypress and percy in docker compose, but it returns exti code 0 even if there is failed assertion of cypress test. Could you help me, please? |
Hey @MartinKristof! |
We use percy/cli of course. But still same issue. |
Hey guys, we're facing an issue with
percy-cypress
>percy-agent
where cypress has posted a code error and exited with an error code of 13, log:I don't know for sure but it could be related to Percy only catching exit from
spawn
, might be worth updating to includeerror
andclose
as per the node docs too eg.If not any ideas would be appreciated, cheers
The text was updated successfully, but these errors were encountered: