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
Remove "process already captured" errors. #9337
Conversation
This has been a very annoying source of CI failures. If it were technically more correct I'd say we should keep it around and attempt to fix the underlying issue, but I do not think it is. In most cases, we are either setting up on the same object (in which case no need to release any existing handlers) or we are providing a custom `MockProcess` object which really won't ever _need_ capturing.
afc1141
to
3fac7fa
Compare
If I remember correctly, in case if ember-cli would capture the process twice, it would not properly dispose stuff from the first capture. This was a reason why I've introduced this exception(sorry for a constant problems with this!). Is it some kind of sporadic failures of the ember-cli's own CI, or does it cause some issues for external projects? |
Ya, it is due to us using |
Here is an example failure: https://github.com/ember-cli/ember-cli/pull/9336/checks?check_run_id=1150804964#step:5:91 |
Seems like the failure occurrs only when the |
If that sounds reasonable, I can take a look at it this week. |
I've just checked Though, in my taste, it still might be a good idea to preserve the exception in order to avoid accidental double capture coming from the |
Ya, |
Ya, I'm happy to try that before completely removing (though I think the part of the changes here that are "if the process is the same thing, carry on" are probably still fine) if you have the time to look into it. FWIW, I also considered adding a |
Thanks, I'd definitely give it a try!
Yes, it's clever, and it makes sense in terms of the However, due to the requirement for the
Ya, that's an option. I think the drawback of this is that, |
A side note. I've just checked few more builds with this failure:
each time, the same test triggers the initial error:
This is suspicious at least... |
Ya, totally agree with you here. I absolutely would prefer to get this squared away without sacrificing strictness. |
for some reason we have sporadic test failures on CI, like: > process already captured This is quite hard to reproduce and the root cause of such a failure is not clear at the moment. This commit is an attempt to provide an alternative to ember-cli#9337, so with this we do not touch `will-interrupt-process`, and try to fix it in the tests land only.
for some reason we have sporadic test failures on CI, like: > process already captured This is quite hard to reproduce and the root cause of such a failure is not clear at the moment. This commit is an attempt to provide an alternative to ember-cli#9337, so with this we do not touch `will-interrupt-process`, and try to fix it in the tests land only.
This has been a very annoying source of CI failures. If it were technically more correct I'd say we should keep it around and attempt to fix the underlying issue, but I do not think it is. In most cases, we are either setting up on the same object (in which case no need to release any existing handlers) or we are providing a custom
MockProcess
object which really won't ever need capturing.