Page MenuHomePhabricator

functional tests: Remove portseed_offset from test runner
ClosedPublic

Authored by PiRK on Jul 8 2021, 15:03.

Details

Summary

PR description:

The portseed_offset is no longer needed in the test runner, since we already kill leftover processes

The pseudo-random portseed causes port collisions with other daemons. Core devs had issues with port 11211 (memcached), and we are seeing issues with 21325 (trezord).
This backport is a first step in avoiding random failures, by making the ports more deterministic again.

We cannot use the number of tests as a unique seed for Bitcoin ABC like Core does, because we run tests in parallel, so use the test number instead.

This is a backport of core#13421

Test Plan

for i in {1..4}; do ninja check-functional; done

Diff Detail

Event Timeline

PiRK requested review of this revision.Jul 8 2021, 15:03
PiRK retitled this revision from qa: Remove portseed_offset from test runner to functional tests: Remove portseed_offset from test runner.Jul 8 2021, 15:14
This revision is now accepted and ready to land.Jul 8 2021, 15:21