We've been seeing intermittent failures on our internal bots and we suspect
this may be due to the OS scheduling the child process to run before the parent
process.
This version ensures that the parent and child can be run in either order.
Differential D49501
Remove scheduling dependency from XRay :: Posix/fork_basic_logging.cc ormris on Jul 18 2018, 11:45 AM. Authored by
Details We've been seeing intermittent failures on our internal bots and we suspect This version ensures that the parent and child can be run in either order.
Diff Detail
Event TimelineComment Actions LGTM I've been wondering the same with local failures but hadn't looked at it closely, thanks @ormris! The scheduling dependency definitely is not required in this test. Comment Actions Thanks for the review! Before I commit this, would it be possible to change the second part of the test (after line 82) to be scheduling independent? Comment Actions The secondary test already should do that, since it's already looking for independent process markers. If it's not doing the right thing, then we (@Maknee or I) should look into how to re-structure this test to be less dependent on scheduling (maybe looking for a different function called from the child and the parent). Comment Actions Sorry for responding so late -- I noticed that this was happening too. Thanks for finding and fixing the issue. Comment Actions @Maknee We're now seeing intermittent failures for the second part of the test (after line 83). Is that part of the test scheduling independent? I see that the comments say "// The parent will print its pid first". Comment Actions There is an ordering currently (There shouldn't have been) On lines 92 and 100, TRACE should be TRACE-DAG. Refer to https://reviews.llvm.org/D49559 |