Skip to content

Conversation

@dergoegge
Copy link
Member

This PR fixes the issue mentioned here, to avoid port collisions between nodes spun up by the test framework.

@fanquake fanquake added the Tests label Jun 8, 2022
@maflcko
Copy link
Member

maflcko commented Jun 8, 2022

The other tests could be fixed as well (in a follow-up)

@dergoegge dergoegge force-pushed the 2022-06-addr-cache-test-fix branch from 7670a11 to ea54ba2 Compare June 8, 2022 19:05
@maflcko maflcko merged commit c3daa32 into bitcoin:master Jun 10, 2022
maflcko pushed a commit to bitcoin-core/gui that referenced this pull request Jun 10, 2022
fa7a711 test: Fix out-of-range port collisions (MacroFake)

Pull request description:

  Otherwise the test will fail if two tests running in parallel use the same port. See bitcoin/bitcoin#25096 (comment) and bitcoin/bitcoin#25312

ACKs for top commit:
  dergoegge:
    ACK fa7a711 - This gets rid of some rather arbitrary choices for ports in some of our functional tests that can cause port collisions across test runs, resulting in intermittent failures.

Tree-SHA512: ac73da8a498230b992ab12e1ee3c4ff3d868cd63c00d2c71537d156cb7c8f8be8598ec574646b17c5a44ae3ac5bb54bf29d300f054a36cec6f6ce8054a0da0a4
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request Jun 13, 2022
…caching.py

ea54ba2 [test] Fix port collisions caused by p2p_getaddr_caching.py (dergoegge)
f9682e7 [test_framework] Set PortSeed.n directly after initialising params (dergoegge)

Pull request description:

  This PR fixes the issue mentioned [here](bitcoin#25096 (comment)), to avoid port collisions between nodes spun up by the test framework.

Top commit has no ACKs.

Tree-SHA512: ec9159f0af90db636f7889d664c24e1430cf2bcb3c02a9ab2dcfe531b2a4d18f6e3a0f8ba73071bdf2f7db518df9d5d86a9cd06695e67644d20fe4515fac32b7
Fabcien pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Apr 27, 2023
Summary:
Otherwise the test will fail if two tests running in parallel use the same port.

Backport of [[bitcoin/bitcoin#25333 | core#25333]] and [[bitcoin/bitcoin#25312 | core#25312]].

Test Plan:
  ./test/functional/test_runner.py feature_proxy feature_bind_extra p2p_getaddr_caching

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D13810
@bitcoin bitcoin locked and limited conversation to collaborators Jun 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants