Repository navigation
Sporadic test failure with fast io.ascii reader - #2964
Conversation
|
There aren't any random numbers involved, so my guess is this is some problem with memory. The parser has a separate buffer for empty strings, so it could be something to do with that. I'll look closer at the relevant code and see if anything could be problematic. |
|
I've also run into this test failing (sporadically) when running tests manually. |
|
Unfortunately I have no way of testing this myself, but I may possibly have fixed the issue here. Can anyone see if the problem still exist with these changes? |
|
@AmrAS1 - I set up a script to test this many times and it seems like the issue happened 10% of the time: I tested out your branch and the result is similar: so I don't think the issue has been fixed. |
|
@AmrAS1 - in case this is useful, I noticed that it is not always the same assert that fails. Here is an example of one of the failures, with the tables printed out (this is with your branch): Here is another failure: and another |
|
@astrofrog - Thanks for the output -- I had been assuming it had something to do with the include/exclude names scheme, which doesn't seem to be the case. Looks like there's a problem with empty values that somehow screws up the rest of the column...I'll see if I can figure out what's up. |
|
@astrofrog - Sorry I haven't been able to look at this for a while. I managed to get hold of a Mac to do a bit of testing, and the fix in this branch worked for me. Can you test this out and see if the test failures persist? |
|
@AmrAS1 - unfortunately it looks like the issue is still there. I wrote this script to repeat the test many times: I seem to get a failure between 5 and 10% of the time. I'm wondering whether it has to do with optimization. |
|
@AmrAS1 - you can also instead use my (I had to rebase your branch on master to avoid the 'too many files' error) |
|
@astrofrog - I think I might have a solution with the latest commit in this branch; I repeated tests 100 times and didn't get an error. Can you test this out? Sorry it's taken so long for me to look more into this--I've been busier than I anticipated. By the way, I changed my Github username (previously amras1). |
|
@mdmueller - works for me! I've attached the branch to this issue. Thanks! |
|
@mdmueller - just to check, do you consider this ready to merge? |
|
Yes, this is good from my perspective. |
|
Ok, thanks! Merging :) |
Sporadic test failure with fast io.ascii reader
I'm seeing this test failure from time to time on the Mac Jenkins instance - it's not systematic, so maybe there is a race condition, or something to do with random numbers (haven't checked in detail):
cc @AmrAS1 @taldcroft