openldap-its@openldap.org wrote:
https://bugs.openldap.org/show_bug.cgi?id=9891
--- Comment #2 from Ondřej Kuzník ondra@mistotebe.net --- On Tue, Aug 02, 2022 at 09:07:00AM +0000, openldap-its@openldap.org wrote:
In addition, relying on sleep seems to make test case execution unstable, often failing when my environment is busy.
Yes, you are rehashing points I made a while ago[0]. Nowadays we have a nascent Python test suite in the master branch that, among other things, does not have to rely on sleeping in the same way. We welcome any help making it mature and porting the current test suite to this.
That can speed up a few points when testing on an idle system, but it can't speed anything up when testing on a busy system. You still need to set some upper bound on waiting for events to complete, to detect when the event isn't happening at all.
Aside from that, the simple sleeps in the current test suite could be replaced by loops of short delay checks instead. Again, you still need a reasonable upper bound on timeouts for these checks, and those upper bounds will still need to be extended when running on a busy (or slow) system.
Until that's done, you can keep adjusting the environment variables SLEEP{0,1,2} to deal with the false positives.
[0]. https://lists.openldap.org/hyperkitty/list/openldap-devel@openldap.org/threa...
Thanks,