This is an archive of the discontinued Mercurial Phabricator instance.

remotefilelog: reduce probability of race-condition in remotefilelog tests
ClosedPublic

Authored by lothiraldan on Aug 29 2019, 8:50 AM.

Details

Summary

ca1014ad3de4 introduced a new parameter ensurestart to speed up
remotefilelog background processes start. Unfortunately it seems to have
increased the possibility of race-conditions in remotefilelog tests testing
those background processes.

With ensurestart=False, it seems that it's more probable to enter in a race
condition with debugwaitonprefetch and debugwaitonrepack in remotefilelog
background tests. Our CI seems to have a high probability of triggering this
race condition so make it configurable to ensure tests are stable.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

lothiraldan created this revision.Aug 29 2019, 8:50 AM

@durin42 Could you take a look? I think you are in the best condition to review this patch.

This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.