From ce5cae13d25d1e993bed572778a21e7c256f954a Mon Sep 17 00:00:00 2001 From: jvsena42 Date: Wed, 4 Nov 2026 20:06:30 -0300 Subject: [PATCH] ci: reserve regtest host ports before e2e network steps Co-Authored-By: Claude Opus 5.5 --- .github/workflows/e2e.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 26011ae823..ce1e3d422f 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -115,6 +115,12 @@ jobs: name: e2e-tests-local - ${{ matrix.shard.name }} steps: + # The regtest stack publishes 39388 (bitcoind P2P), 43782 (bitcoind RPC) and 60001 (electrs) on the host. + # They sit in Linux's ephemeral range, so an outbound connection made before `docker compose up` + # (npm ci, image pulls) can take one and fail the bind. Reserve them before any network step. + - name: Reserve regtest host ports + run: sudo sysctl -w net.ipv4.ip_local_reserved_ports=39388,43782,60001 + - name: Resolve E2E tests ref id: e2e-ref uses: synonymdev/bitkit-e2e-tests/.github/actions/resolve-e2e-ref@main