Sync with power changes#99
Conversation
SaiSrivatsa1
commented
Jun 10, 2026
- Error handlings
- Auditwheel implementations on create_wrapper_wheel
- post_process_wheel.py for wheel name changes...
| COS_API_KEY = os.environ["GHA_CURRENCY_SERVICE_ID_API_KEY"] | ||
| COS_SERVICE_INSTANCE_ID = os.environ["GHA_CURRENCY_SERVICE_ID"] | ||
| COS_ENDPOINT = "https://s3.us.cloud-object-storage.appdomain.cloud" | ||
| COS_BUCKET = "ose-power-artifacts-production" |
There was a problem hiding this comment.
Update the COS bucket name to ose-s390x-artifacts-production
| format('Retriggered Currency Build for package {0} and Unique ID {1} on {2}', inputs.package_name, inputs.unique_id, inputs.large-runner-label) || | ||
| format('Currency Build {0} && Unique ID {1}', inputs.package_name, inputs.unique_id) | ||
| }} | ||
|
|
There was a problem hiding this comment.
Skip for now, and remove changes
| needs: build_info | ||
| if: ${{ inputs.validate_build_script == 'true' }} | ||
| runs-on: ubuntu-24.04-s390x | ||
| runs-on: ${{ inputs.large-runner-label != '' && inputs.large-runner-label || 'ubuntu-24.04-s390x' }} |
| - python-version: "3.13" | ||
| allow-failure: true | ||
| runs-on: ${{ inputs.large-runner-label != '' && inputs.large-runner-label || 'ubuntu-24.04-s390x' }} | ||
| env: |
There was a problem hiding this comment.
large lable runner checks
| env: | ||
| GHA_CURRENCY_SERVICE_ID_API_KEY: ${{ secrets.GHA_CURRENCY_SERVICE_ID_API_KEY }} | ||
| PYTHON_VERSION: ${{ matrix.python-version }} | ||
| GHA_CURRENCY_SERVICE_ID: ${{ secrets.GHA_CURRENCY_SERVICE_ID }} |
There was a problem hiding this comment.
check if we have an service ID
| wheel_build_py311: | ||
| needs: build_info | ||
| if: ${{ inputs.wheel_build == 'true' }} | ||
| runs-on: ${{ inputs.large-runner-label != '' && inputs.large-runner-label || 'ubuntu-24.04-s390x' }} |
There was a problem hiding this comment.
large runner checks
| needs: build_info | ||
| if: ${{ inputs.build_docker == 'true' }} | ||
| runs-on: ubuntu-24.04-s390x | ||
| runs-on: ${{ inputs.large-runner-label != '' && inputs.large-runner-label || 'ubuntu-24.04-s390x' }} |
There was a problem hiding this comment.
large runner lablec checks
| run-name: > | ||
| ${{ github.event_name == 'workflow_dispatch' | ||
| && format('Retriggered build on {0} for PR {1}', inputs.large-runner, inputs.pr_number) | ||
| || github.event.pull_request.title }} |
There was a problem hiding this comment.
skip for now , remove these changes
| runs-on: ubuntu-24.04-s390x # Ensure this self-hosted runner exists | ||
|
|
||
| build_info: | ||
| runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04-s390x' || inputs.large-runner }} |
There was a problem hiding this comment.
or conditon we can remove
|
|
||
| build: | ||
| needs: build_info | ||
| runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04-s390x' || inputs.large-runner }} |
There was a problem hiding this comment.
|| inputs.large-runner remove
| wheel_build_py310: | ||
| needs: build_info | ||
| if: ${{ success() }} | ||
| runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04-s390x' || inputs.large-runner }} |
There was a problem hiding this comment.
|| inputs.large-runner remove
| wheel_build_py311: | ||
| needs: build_info | ||
| if: ${{ success() }} | ||
| runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04-s390x' || inputs.large-runner }} |
There was a problem hiding this comment.
|| inputs.large-runner remove
| wheel_build_py312: | ||
| needs: build_info | ||
| if: ${{ success() }} | ||
| runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04-s390x' || inputs.large-runner }} |
There was a problem hiding this comment.
|| inputs.large-runner remove
| wheel_build_py313: | ||
| needs: build_info | ||
| if: ${{ success() }} | ||
| runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04-s390x' || inputs.large-runner }} |
There was a problem hiding this comment.
|| inputs.large-runner remove
| wheel_build_py314: | ||
| needs: build_info | ||
| if: ${{ success() }} | ||
| runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04-s390x' || inputs.large-runner }} |
There was a problem hiding this comment.
|| inputs.large-runner remove
| build_docker: | ||
| needs: build_info | ||
| if: ${{ success() }} | ||
| runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04-s390x' || inputs.large-runner }} |
There was a problem hiding this comment.
|| inputs.large-runner remove
| - name: Send inactivity reminders | ||
| uses: actions/github-script@v7 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
There was a problem hiding this comment.
verify this exists in our secrets
|
|
||
| sudo apt update -y && sudo apt install -y jq | ||
| GRYPE_VERSION=$(curl -s https://api.github.com/repos/anchore/grype/releases/latest | grep -Po '"tag_name": "\K.*?(?=")') | ||
| wget https://github.com/anchore/grype/releases/download/$GRYPE_VERSION/grype_${GRYPE_VERSION#v}_linux_s390x.tar.gz |
There was a problem hiding this comment.
recheck the grype download
|
|
||
| # run auditwheel | ||
| set +e | ||
| audit_output=$(auditwheel repair "$wheel_file" --wheel-dir "$WHEELHOUSE" --exclude libtvm_ffi.so --exclude libtensorflow_framework.so.2 --exclude libpython3.11.so.1.0 --exclude libpython3.10.so.1.0 --exclude libpython3.12.so.1.0 --exclude libpython3.13.so.1.0 --exclude libc10.so --exclude libtorch.so --exclude libtorch_cpu.so --exclude libtorch_python.so --exclude libshm.so --exclude libtorchaudio.so --exclude libtorchtext.so --exclude libavutil-ffmpeg.so.54 --exclude libavformat-ffmpeg.so.56 --exclude libswscale-ffmpeg.so.3 --exclude libavcodec-ffmpeg.so.56 --exclude libavformat.so.57 --exclude libswscale.so.4 --exclude libavutil.so.55 --exclude libswscale.so.5 --exclude libavformat.so.58 2>&1) |
There was a problem hiding this comment.
will check with power team