From 4abf7ea6beb0c952066b800039028a507ac25cd1 Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Mon, 16 Nov 2026 14:25:17 +0100 Subject: [PATCH 1/2] ci: use the pinned android regtest backend --- .github/workflows/e2e-staging.yml | 11 +++++++++-- .github/workflows/e2e.yml | 25 +++++++++++++------------ 2 files changed, 22 insertions(+), 14 deletions(-) diff --git a/.github/workflows/e2e-staging.yml b/.github/workflows/e2e-staging.yml index 6b9bc71dcc..e2127db480 100644 --- a/.github/workflows/e2e-staging.yml +++ b/.github/workflows/e2e-staging.yml @@ -167,8 +167,15 @@ jobs: if: matrix.shard.name == 'hardware_wallet' working-directory: bitkit-e2e-tests run: | - cd docker - docker compose --profile trezor pull --quiet trezor-user-env + if [[ -x ./scripts/local-backend ]]; then + ./scripts/local-backend prepare + export BITKIT_LOCAL_BACKEND_ROOT="$(./scripts/local-backend path)" + ./scripts/trezor-emulator pull + printf 'BITKIT_LOCAL_BACKEND_ROOT=%s\n' "$BITKIT_LOCAL_BACKEND_ROOT" >> "$GITHUB_ENV" + else + cd docker + docker compose --profile trezor pull --quiet trezor-user-env + fi - name: Run E2E Tests 1 (${{ matrix.shard.name }}) continue-on-error: true diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index ce1e3d422f..0fb07f86b8 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -119,7 +119,7 @@ jobs: # 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 + run: sudo sysctl -w net.ipv4.ip_local_reserved_ports=23009,23180,23735,39388,43782,60001 - name: Resolve E2E tests ref id: e2e-ref @@ -190,20 +190,21 @@ jobs: run: npm ci - name: Run regtest setup - working-directory: bitkit-e2e-tests - run: | - cd docker - mkdir lnd && chmod 777 lnd - docker compose pull --quiet - docker compose up -d - - - name: Wait for electrum server and LND working-directory: bitkit-e2e-tests timeout-minutes: 10 run: | - while ! nc -z '127.0.0.1' 60001; do sleep 1; done - sudo bash -c "while [ ! -f docker/lnd/data/chain/bitcoin/regtest/admin.macaroon ]; do sleep 1; done" - sudo chmod -R 777 docker/lnd + if [[ -x ./scripts/local-backend ]]; then + ./scripts/local-backend up + ./scripts/local-backend github-env >> "$GITHUB_ENV" + else + # Older E2E refs still use their bundled Compose stack. + mkdir -p docker/lnd + chmod 777 docker/lnd + (cd docker && docker compose pull --quiet && docker compose up -d) + while ! nc -z '127.0.0.1' 60001; do sleep 1; done + sudo bash -c "while [ ! -f docker/lnd/data/chain/bitcoin/regtest/admin.macaroon ]; do sleep 1; done" + sudo chmod -R 777 docker/lnd + fi - name: Run E2E Tests 1 (${{ matrix.shard.name }}) continue-on-error: true From 911193f846783a6f982628c64805058bf38eb1f2 Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Mon, 16 Nov 2026 15:21:28 +0100 Subject: [PATCH 2/2] ci: scope appium cache keys to the e2e lockfile --- .github/workflows/e2e-staging.yml | 2 +- .github/workflows/e2e.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-staging.yml b/.github/workflows/e2e-staging.yml index e2127db480..4d82d677b3 100644 --- a/.github/workflows/e2e-staging.yml +++ b/.github/workflows/e2e-staging.yml @@ -155,7 +155,7 @@ jobs: uses: actions/cache@v6 with: path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-node-${{ hashFiles('bitkit-e2e-tests/package-lock.json') }} restore-keys: | ${{ runner.os }}-node- diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index 0fb07f86b8..695d01bbea 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -181,7 +181,7 @@ jobs: uses: actions/cache@v6 with: path: ~/.npm - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + key: ${{ runner.os }}-node-${{ hashFiles('bitkit-e2e-tests/package-lock.json') }} restore-keys: | ${{ runner.os }}-node-