marmoute added a comment.

  In D8189#123323 <https://phab.mercurial-scm.org/D8189#123323>, @durin42 wrote:
  
  > In D8189#123280 <https://phab.mercurial-scm.org/D8189#123280>, @marmoute 
wrote:
  >
  >> By using explicit wait on signal (through the fs) that each process 
reached the appropriate file. We avoid flackyness. There are already multiple 
use of this approach in the test suite, that does not suffer from flackyness 
(unlike the wheelbarrow of flaky test relying on sleep for sync).
  >
  > You avoid flakyness iff the test manages to finish this step in under 20 
seconds (in the next change, as an example). Which is to say, this is still a 
flake waiting to happen, you've just made it less likely. I think it might be 
better to poll more often in the script and not even take a timeout: sleep 
forever waiting for the condition, and if it never comes let the test timeout 
at the runner level. Thoughts?
  
  The 20 seconds seems like a lots of margin already, but I am fine with 
bumping it more it that make your more confortable.
  
  Waiting for the test timeout is not a reasonable option because the test is 
killed without any details (and it is LOONG). The most common case for reaching 
the timeout is for one of the process to crash before reaching the checkpoing. 
When that happens, we want to be able to read the traceback. The second most 
common is code misbehaving and not going through the expected codepath. We also 
was to get output in this case. So in short, we need a clean way out in case of 
error and I have no better option than a (possibly long) timeout right now.
  
  > I'm also not happy about the 1-second floor this puts on the step. Doesn't 
sleep(1) support sub-second sleeps on all platforms at this point?
  
  I am extremly sad too. But last time I checked, it was still not the case. We 
detect plateform and use small increment on better plateform (but I would 
rather follow up for that).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D8189/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D8189

To: marmoute, #hg-reviewers
Cc: mharbison72, durin42, mercurial-devel
_______________________________________________
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel

Reply via email to