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
Watcher integration test #3379
Watcher integration test #3379
Conversation
CURRENTLY: Investigating failures (in process of debugging). |
add blocking mocha and test renamed to hanging rename file
debugging 2
debug appveyor debug - check colors debug - sigints event debug - proc listeners remove logs
c5579d1
to
5792f15
Compare
Issue seems to be AppVeyor's Windows not receiving the SIGINT signal, despite using the readline approach. |
Replicated on local Windows VM, does appear to be SIGINT not being received on spawned process. The problem appears to be due to Windows signals support. The signal simulation appears to ONLY work on manual terminal termination and does not proxy (i.e. only on real user input. Currently no supported way to pass CTRL+C programmatically). Its a problem as the tests run Mocha in a child process. TESTED IN ISOLATION
|
MY SOLUTION - i have had to ignore the test on Windows. I am happy to try other solutions if people have ideas but i did not find a way to do this without re-writing a load (e.g. switch to using messages). |
@craigtaub Thanks for your much needed contribution! Can you check this solution for windows to check for sigint and manually close the process? |
hi @Bamieh |
@craigtaub okay, I'll try to fiddle around with your code to give it another try. Although this is definitely better than having no tests IMO, specific implementation tests might introduce unexpected side effects, i believe @mochajs/core might have some input on this as well. |
Ok @Bamieh please let me know if you make any progress. I have tried again to no avail. |
@craigtaub I will let you know by tomorrow |
Ok thanks @Bamieh . |
Hey @Bamieh, is there any update on this? |
@craigtaub Sorry for the delay, it is hard to get my hands on a windows computer. I was unable to find a solution with our current implementation, although I want to mention:
I am not confident about having falsely passing tests on certain platforms, I'm sure @boneskull have some thoughts on this. |
@Bamieh completely sensible point. Also, have been trying with |
@craigtaub yes that would be much better i believe. |
@Bamieh cool, have updated the PR to reflect this. Could you have a look please. |
@craigtaub looks good, thank you |
@Bamieh great. If there is nothing outstanding any chance we can merge it please? Happy to look at other watcher scenarios once it is in. |
Description of the Change
exit.fixture
to keep process hanging inside spawned child.Benefits
Possible Drawbacks
Applicable issues