dcerpc.bare test is a bit flappy

Tim Beale timbeale at catalyst.net.nz
Tue May 21 03:45:50 UTC 2019


Hi Gary,

I noticed the dcerpc.bare test is a bit flappy. I've seen it fail both
in gitlab CI and running it locally. Usually it just gives me an error like:

error:
samba.tests.dcerpc.bare.samba.tests.dcerpc.bare.BareTestCase.test_two_contexts_tcp
(samba.subunit.RemotedTestCase)(ad_dc_default:local) [
Exception: was started but never finished!
]

Sometimes the python test itself produces a segmentation fault.

It seems like it might be related to commit d65b7641c84976c543d 's4
librpc rpc pyrpc: Ensure tevent_context deleted last'. On master, the
test fails maybe 1 in 4 times I run it. I reverted this commit and ran
it 20+ times without problem.

To run the test locally, use:
SELFTEST_TESTENV=ad_dc_default:local make testenv
python3 -m samba.subunit.run  $LOADLIST samba.tests.dcerpc.bare 2>&1  |
python3 /home/timbeale/code/samba/selftest/filter-subunit
--fail-on-empty --prefix="samba.tests.dcerpc.bare."
--suffix="(ad_dc_default:local)"

Cheers,
Tim




More information about the samba-technical mailing list