-
Notifications
You must be signed in to change notification settings - Fork 110
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
Test and fix for issue #354 #355
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Hm. It seems the checks are failing…? Both warnings about running out of inotify capacity and an undefined |
(Oops, it seems my use of |
Well, I can't really make any sense of the check failures, here. |
Does it reproduce locally if you do |
The |
It works locally – tested that before creating the PR. Also, I don't quite see the link between the errors and the new code/test? |
It fails for me locally. Are you sure you tested it with |
Yes, I understood. I was sure it worked at some point, but I can see it doesn't, now. (It did work when run from the command-line without |
The new test succeeds, though, and the failure seems unrelated to |
Oh, well, I'll do some local debugging :-) |
Well, at least it seems to be specifically the use of
Is there no way of getting the full stack trace? |
Definitely a weird error. When I run at the REPL, I see it starting the cleanup phase and then Julia just quits outright, dumping me back to the Linux prompt. Might be a Julia bug. I suspect it's a task problem. |
Read about the complexities at JuliaLang/julia#6283 and then change the test so it doesn't try to stop the task. |
Ah, right. I actually came across that in my quest for how to stop the task without using exceptions. And I didn't look at it thoroughly enough :-} The reason I didn't want to use exceptions was that I seemed to end up with a compound exception that I had to unpack (similarly to in the other test), though I thought that throwing an And now, somehow, it does… So unless there's some reason not to, I'll just go with that. |
Whoah! Seemed to more or less for the early checks, but then triggered a segfault in Julia nightly! Any ideas? |
Yay! The segfault may be #344 But I get the same error that shows up in one of the appveyor tests, https://ci.appveyor.com/project/timholy/revise-jl/builds/27252479/job/d20rpoxf78awybn4. Looking at the code, I am a bit surprised it works; I would have thought your implementation would suffer from scope problems. Maybe make |
Codecov Report
@@ Coverage Diff @@
## master #355 +/- ##
==========================================
+ Coverage 77.18% 77.71% +0.52%
==========================================
Files 11 11
Lines 1188 1189 +1
==========================================
+ Hits 917 924 +7
+ Misses 271 265 -6
Continue to review full report at Codecov.
|
Hm. Could there still be scope issues, even when using a |
OK, trying to move the And now I remember why the |
Hm. And now it stalls (sometimes) – I guess the |
Hm. The stall was on macOS, where you've set |
Welp, at least now the only issues are the Julia nightly segfaults, as far as I can see. So I guess things are perhaps good to go? (Unless you want to turn off this new test on macOS, like the other |
This indeed looks fine. Thanks for your patience! While the final result is fairly simple, it's pretty amazing how many factors come into place when you combine watching file systems & recompilation. |
That's fine! Yes, it's indeed a bit tricky – and here we had issues with |
Incorporates @timholy's fix and adds my test.
Note: The test does not properly exercize the added
yield()
statement.