Skip to content

ci: failure to download 0.14.3-win64.zip in Win test cross-built #33913

Closed

Description

@fanquake

This is happening semi-frequently:

https://github.com/bitcoin/bitcoin/actions/runs/19520873587/job/55885060054:

Run ./test/get_previous_releases.py --target-dir $PREVIOUS_RELEASES_DIR

Download failed: Remote end closed connection without response
Releases directory: D:\a\_temp/previous_releases
Fetching: https://bitcoincore.org/bin/bitcoin-core-0.14.3/bitcoin-0.14.3-win64.zip
Error: Process completed with exit code 1.

https://github.com/bitcoin/bitcoin/actions/runs/19239483669/job/55006759227:

 Releases directory: D:\a\_temp/previous_releases
Fetching: https://bitcoincore.org/bin/bitcoin-core-0.14.3/bitcoin-0.14.3-win64.zip

Download failed: [WinError 10054] An existing connection was forcibly closed by the remote host
Downloading: [----------------------------------------] 0.0%
Error: Process completed with exit code 1.

https://github.com/bitcoin/bitcoin/actions/runs/19481968460/job/55756476621:

Run ./test/get_previous_releases.py --target-dir $PREVIOUS_RELEASES_DIR

Download failed: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond
Releases directory: D:\a\_temp/previous_releases
Fetching: https://bitcoincore.org/bin/bitcoin-core-0.14.3/bitcoin-0.14.3-win64.zip
Error: Process completed with exit code 1.

Activity

  1. maflcko commented on Nov 20, 2025

    @maflcko
    Member

    yeah, network requests should be retried.

    An alternative could be to cache the bins, but I am not sure how large they are and if the diff is worth it. It could look something like this, if the simply retry does not improve things:

    diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
    index 7ba353a..3e2e1a1 100644
    --- a/.github/workflows/ci.yml
    +++ b/.github/workflows/ci.yml
    @@ -394,6 +394,7 @@ jobs:
         env:
           PYTHONUTF8: 1
           TEST_RUNNER_TIMEOUT_FACTOR: 40
    +      CONTAINER_NAME: windows-native-test
     
         steps:
           - *ANNOTATION_PR_NUMBER
    @@ -452,6 +453,27 @@ jobs:
             run: |
               echo "PREVIOUS_RELEASES_DIR=${{ runner.temp }}/previous_releases" >> "$GITHUB_ENV"
     
    +      - name: Set previous releases hash
    +        run: |
    +          PREVIOUS_RELEASES_HASH=$(py -3 - <<'PY'
    +          import hashlib, subprocess
    +          data = subprocess.check_output(["git", "ls-tree", "HEAD", "test/get_previous_releases.py"])
    +          print(hashlib.sha256(data).hexdigest())
    +          PY)
    +          echo "PREVIOUS_RELEASES_HASH=$PREVIOUS_RELEASES_HASH" >> "$GITHUB_ENV"
    +
    +      - name: Restore previous releases cache
    +        id: previous-releases
    +        uses: actions/cache/restore@v4
    +        with:
    +          path: ${{ env.PREVIOUS_RELEASES_DIR }}
    +          key: previous-releases-${{ env.CONTAINER_NAME }}-${{ env.PREVIOUS_RELEASES_HASH }}
    +          restore-keys: |
    +            previous-releases-${{ env.CONTAINER_NAME }}-
    +
    +      - name: Record previous releases cache hit
    +        run: echo "PREVIOUS_RELEASES_CACHE_HIT=${{ steps.previous-releases.outputs.cache-hit }}" >> "$GITHUB_ENV"
    +
           - name: Get previous releases
             run: ./.github/get_previous_releases_with_retry.py --target-dir $PREVIOUS_RELEASES_DIR
     
    @@ -463,6 +485,13 @@ jobs:
               TEST_RUNNER_EXTRA: ${{ github.event_name != 'pull_request' && '--extended' || '' }}
             run: py -3 test/functional/test_runner.py --jobs $NUMBER_OF_PROCESSORS --ci --quiet --tmpdirprefix="$RUNNER_TEMP" --combinedlogslen=99999999 --timeout-factor=$TEST_RUNNER_TIMEOUT_FACTOR $EXCLUDE $TEST_RUNNER_EXTRA
     
    +      - name: Save previous releases cache
    +        if: ${{ (github.event_name == 'push') && (github.ref_name == github.event.repository.default_branch) && (env.PREVIOUS_RELEASES_CACHE_HIT != 'true') }}
    +        uses: actions/cache/save@v4
    +        with:
    +          path: ${{ env.PREVIOUS_RELEASES_DIR }}
    +          key: previous-releases-${{ env.CONTAINER_NAME }}-${{ env.PREVIOUS_RELEASES_HASH }}
    +
       ci-matrix:
         name: ${{ matrix.name }}
         needs: runners
  2. added a commit that references this issue on Nov 21, 2025
  3. added a commit that references this issue on Jun 28, 2026
  4. added a commit that references this issue on Jun 30, 2026
  5. added a commit that references this issue on Aug 19, 2026
  6. fanquake commented on Nov 18, 2026

    @fanquake
    MemberAuthor

    bitcoincore.org was down temporarily.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions