This is an archive of the discontinued Mercurial Phabricator instance.

remotefilelog: have command wait for background task in the tests
ClosedPublic

Authored by marmoute on Dec 9 2019, 8:02 AM.

Details

Summary

We leverage the feature introduced in the two previous commit to have the main
command wait for the background task to be finished before returning.

All test still pass and instability seems to have gone away.

Most of the sleep and explicit wait are now useless and will be cleaned up in
later changesets.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

marmoute created this revision.Dec 9 2019, 8:02 AM

target is the stable-branch

durin42 accepted this revision.Dec 9 2019, 10:14 AM
This revision is now accepted and ready to land.Dec 9 2019, 10:14 AM

For those who wants to see the test misbehaving, your just need to run it in a loop on heavy load:
python run-tests.py --runs-per-test 10000 --loop -j 90 test-remotefilelog-bgprefetch.t