Skip to content

Sync with power changes#99

Open
SaiSrivatsa1 wants to merge 5 commits into
linux-on-ibm-z:mainfrom
SaiSrivatsa1:sync-with-power
Open

Sync with power changes#99
SaiSrivatsa1 wants to merge 5 commits into
linux-on-ibm-z:mainfrom
SaiSrivatsa1:sync-with-power

Conversation

@SaiSrivatsa1

Copy link
Copy Markdown
Contributor
  • Error handlings
  • Auditwheel implementations on create_wrapper_wheel
  • post_process_wheel.py for wheel name changes...

Comment thread gha-script/post_process_wheel.py Outdated
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"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update the COS bucket name to ose-s390x-artifacts-production

@SaiSrivatsa1 SaiSrivatsa1 requested a review from sankalp-sde June 10, 2026 16:27
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)
}}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skip for now, and remove changes

Comment thread .github/workflows/currency-build.yaml Outdated
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' }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skip for now

- python-version: "3.13"
allow-failure: true
runs-on: ${{ inputs.large-runner-label != '' && inputs.large-runner-label || 'ubuntu-24.04-s390x' }}
env:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check if we have an service ID

Comment thread .github/workflows/currency-build.yaml Outdated
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' }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

large runner checks

Comment thread .github/workflows/currency-build.yaml Outdated
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' }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

large runner lablec checks

Comment thread .github/workflows/pr-build.yml Outdated
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 }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

skip for now , remove these changes

Comment thread .github/workflows/pr-build.yml Outdated
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 }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or conditon we can remove

Comment thread .github/workflows/pr-build.yml Outdated

build:
needs: build_info
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04-s390x' || inputs.large-runner }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|| inputs.large-runner remove

Comment thread .github/workflows/pr-build.yml Outdated
wheel_build_py310:
needs: build_info
if: ${{ success() }}
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04-s390x' || inputs.large-runner }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|| inputs.large-runner remove

Comment thread .github/workflows/pr-build.yml Outdated
wheel_build_py311:
needs: build_info
if: ${{ success() }}
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04-s390x' || inputs.large-runner }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|| inputs.large-runner remove

Comment thread .github/workflows/pr-build.yml Outdated
wheel_build_py312:
needs: build_info
if: ${{ success() }}
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04-s390x' || inputs.large-runner }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|| inputs.large-runner remove

Comment thread .github/workflows/pr-build.yml Outdated
wheel_build_py313:
needs: build_info
if: ${{ success() }}
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04-s390x' || inputs.large-runner }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|| inputs.large-runner remove

Comment thread .github/workflows/pr-build.yml Outdated
wheel_build_py314:
needs: build_info
if: ${{ success() }}
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04-s390x' || inputs.large-runner }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|| inputs.large-runner remove

Comment thread .github/workflows/pr-build.yml Outdated
build_docker:
needs: build_info
if: ${{ success() }}
runs-on: ${{ github.event_name == 'pull_request' && 'ubuntu-24.04-s390x' || inputs.large-runner }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

|| inputs.large-runner remove

- name: Send inactivity reminders
uses: actions/github-script@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will check with power team

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants