docker / setup-qemu-action

GitHub Action to install QEMU static binaries
https://github.com/marketplace/actions/docker-setup-qemu
Apache License 2.0
456 stars 61 forks source link

setup-qemu-action not working with recursive option #150

Closed ArtemIsmagilov closed 4 months ago

ArtemIsmagilov commented 4 months ago

Contributing guidelines

I've found a bug, and:

Description

this job not working then i try set submodules: 'recursive'

Expected behaviour

correct working in aarch systems

Actual behaviour

Error: The process '/usr/bin/docker' failed with exit code 1

Repository URL

https://github.com/ArtemIsmagilov/emcache

Workflow run URL

https://github.com/ArtemIsmagilov/emcache/actions/runs/9774907951/job/26984204133

YAML workflow

name: PyPi release
on:
  push
#    tags:
#      - v*

jobs:
  # Use Any Python version, cibuildwheel downloads multiple python version to create each build environment.
  # We can only use x86-64 macOS, so we can test on x86-64. But murmur3 is now universal2 binary. So It'll be works for arm64 too.
  build_linux_aarch64:
    outputs:
      version: ${{ steps.get_version.outputs.VERSION }}
    strategy:
      matrix:
        os: [ubuntu-latest]
        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
        platforms:
          - linux/arm64
    runs-on: ${{ matrix.os }}
    steps:
    - uses: actions/checkout@v4
      with:
        submodules: 'recursive'
    - name: Set up QEMU
      uses: docker/setup-qemu-action@v3
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v5
      with:
        python-version: ${{ matrix.python-version }}
    - name: Generate manylinux2014_aarch64-wheel
      run: |
        mkdir /tmp/emcache
        cp -r . /tmp/emcache
        docker run --platform linux/arm64 -v /tmp/emcache:/io -e "PYTHON_VERSION=${{matrix.python-version}}" quay.io/pypa/manylinux_2_28_aarch64 /io/bin/build_manylinux_2_28_wheel.sh
        mkdir test_wheel/
        cp /tmp/emcache/dist/emcache-*.whl test_wheel/
    - name: Run unit tests using the wheel
      run: |
        docker run --platform linux/arm64 --entrypoint bash -v `pwd`:/io python:${{matrix.python-version}}-bookworm /io/bin/test_aarch_wheel.sh
    - name: Get the version
      id: get_version
      run: echo "VERSION=$GITHUB_REF_NAME" >> $GITHUB_OUTPUT
    - uses: actions/upload-artifact@v3
      with:
        name: aarch64-${{ steps.get_version.outputs.VERSION }}
        path: test_wheel/emcache-*.whl

Workflow logs

No response

BuildKit logs

No response

Additional info

No response

crazy-max commented 4 months ago

Looking at your logs: https://github.com/ArtemIsmagilov/emcache/actions/runs/9774907951/job/26984204133#step:3:99

Error response from daemon: Head "https://registry-1.docker.io/v2/tonistiigi/binfmt/manifests/latest": received unexpected HTTP status: 500 Internal Server Error

Seems to be an intermittent issue on Docker Hub so not related to the action. It should work after retrying but if it still happens I suggest to open an issue on https://github.com/docker/hub-feedback

ArtemIsmagilov commented 4 months ago

thank you so much for answering, now I understand)