-
Notifications
You must be signed in to change notification settings - Fork 69
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
Error: EBADF: bad file descriptor, write #72
Comments
Mocha version is I tried removing the |
So I forked the reporter and added some debugging: and it looks like the the second time it's called, the |
I disabled our
which is coming from mocha's base reporter: https://github.com/mochajs/mocha/blob/8b79c5d209249a5362538e35837afa3c2a581b28/lib/reporters/base.js#L227 I'm still not sure how this is related to the duplicate triggering of the |
Some more updates, this is what I think is happening:
A few things I don't understand:
|
since it is causing issues in some cases juhovh#72
Any updates on this? I have the exact same problem, and I haven't been able to work around this. |
@Pourliver I tried to fix this in the latest 0.3.12 release, please try it out and let me know if it helped. |
Well the fixe mutes the error, so I think we can see this as a fix :) Thanks for the fast reply. |
Running version 0.3.9 of this plugin, my setup is as follows (all running in jenkins):
running using docker-compose I have 1 selenium hub instance, 2 chrome nodes, 1 instance of the frontend application.
once that is running, I'm constructing multiple commands similar to:
I then run these inside a docker container using
parallel
. This has worked well using thexunit
reporter (though I had other issues with it, unrelated to the runtime itself), but ever since integratingmocha-jenkins-reporter
I'm getting the following error every time a suite fails:After looking at the source, this comes from the following line:
https://github.com/juhovh/mocha-jenkins-reporter/blob/master/lib/jenkins.js#L308
Since this is happening only after errors, I assume it's related to the
onError
handler I use, which basically dumps the client console and takes a screenshot:and relevant functions:
Again, this never happened with the xunit reporter, and this also doesn't happen when I try to replicate it locally. It seems like it's coming from the writing of the xml file itself, but AFAICT the xml file is written.
The text was updated successfully, but these errors were encountered: