test: Use unassigned p2p_port instead of hardcoded 60000 in p2p_i2p_ports.py #33670

pull maflcko wants to merge 1 commits into bitcoin:master from maflcko:2510-test-i2p-proxy changing 1 files +6 −5
  1. maflcko commented at 4:32 pm on October 21, 2025: member

    The goal is to fix #30030.

    The root cause it unclear. However, hard-coding the port to 60000 does not seem ideal anyway. This could break in an unlikely setting where so many functional tests are run, such that the port is occupied. Also, it could fail when TEST_RUNNER_PORT_MIN is set sufficiently high. (This is purely theoretical, as I don’t think anyone would run a command like this, but on current master it fails, and on this pull it passes: TEST_RUNNER_PORT_MIN=60000 ./bld-cmake/test/functional/p2p_i2p_ports.py --portseed=0)

    So fix those issues (and hopefully also 30030) by using an unoccupied p2p_port.

    The logic is similar to the extra_port() logic in the feature_bind_extra.py test.

  2. test: Use unassigned p2p_port instead of hardcoded 60000 in p2p_i2p_ports.py fa20275db3
  3. DrahtBot added the label Tests on Oct 21, 2025
  4. DrahtBot commented at 4:32 pm on October 21, 2025: contributor

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    Code Coverage & Benchmarks

    For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33670.

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK laanwj, mzumsande

    If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.

  5. laanwj commented at 6:45 am on October 22, 2025: member
    Code review ACK fa20275db32c5b9b0fe35effe2d1cf3d958e7310
  6. mzumsande commented at 7:48 am on October 22, 2025: contributor

    ACK fa20275db32c5b9b0fe35effe2d1cf3d958e7310

    LGTM, I also took a look recently trying to find the root cause but didn’t come up with a better idea than just changing the port and hoping for the best.

  7. fanquake merged this on Oct 22, 2025
  8. fanquake closed this on Oct 22, 2025

  9. maflcko deleted the branch on Oct 22, 2025

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-10-28 18:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me