Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
459eba8
Update currency-build.yaml
Vipul-Ajmera Mar 9, 2026
70dc788
Create post_process_wheel.py
Vipul-Ajmera Mar 9, 2026
05e4667
Update create_wheel_wrapper.sh
Vipul-Ajmera Mar 9, 2026
ad50744
Update build_wheels.sh
Vipul-Ajmera Mar 9, 2026
16425d3
Update build_wheels.py
Vipul-Ajmera Mar 9, 2026
5f46e12
Update read_buildinfo.sh
Vipul-Ajmera Mar 9, 2026
c8d0884
Update read_buildinfo.sh
Vipul-Ajmera Mar 9, 2026
3307008
Update read_buildinfo.sh
Vipul-Ajmera Mar 9, 2026
ae545bb
Update read_buildinfo.sh
Vipul-Ajmera Mar 9, 2026
2b58f47
Update read_buildinfo.sh
Vipul-Ajmera Mar 9, 2026
101333f
Update currency-build.yaml
Vipul-Ajmera Mar 9, 2026
675cb27
Merge branch 'ppc64le:master' into ci_changes
Vipul-Ajmera Mar 9, 2026
fa806b8
Update currency-build.yaml
Vipul-Ajmera Mar 9, 2026
54bc979
Update read_buildinfo.sh
Vipul-Ajmera Mar 9, 2026
05f9478
Update read_buildinfo.sh
Vipul-Ajmera Mar 9, 2026
f4dca94
Update currency-build.yaml
Vipul-Ajmera Mar 9, 2026
f4f0a01
Update currency-build.yaml
Vipul-Ajmera Mar 9, 2026
31d425f
Update currency-build.yaml
Vipul-Ajmera Mar 9, 2026
e06a40a
Update read_buildinfo.sh
Vipul-Ajmera Mar 9, 2026
969e5e0
Update create_wheel_wrapper.sh
Vipul-Ajmera Mar 9, 2026
3ac9a77
Update read_buildinfo.sh
Vipul-Ajmera Mar 9, 2026
139ab53
Update create_wheel_wrapper.sh
Vipul-Ajmera Mar 10, 2026
2617182
Merge branch 'ppc64le:master' into ci_changes
Vipul-Ajmera Mar 10, 2026
a4242a0
Update currency-build.yaml
Vipul-Ajmera Mar 10, 2026
3a85a25
Update currency-build.yaml
Vipul-Ajmera Mar 10, 2026
74f2182
Update currency-build.yaml
Vipul-Ajmera Mar 10, 2026
71441a2
Update build_wheels.py
Vipul-Ajmera Mar 10, 2026
57d88ff
Update read_buildinfo.sh
Vipul-Ajmera Mar 10, 2026
b479ec2
Update currency-build.yaml
Vipul-Ajmera Mar 10, 2026
5b5cd7e
Update currency-build.yaml
Vipul-Ajmera Mar 10, 2026
a9057e1
Update create_wheel_wrapper.sh
Vipul-Ajmera Mar 10, 2026
db1a5ff
Update create_wheel_wrapper.sh
Vipul-Ajmera Mar 11, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 20 additions & 9 deletions .github/workflows/currency-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ run-name: Currency Build ${{ inputs.package_name }} && Unique ID ${{ inputs.uniq

jobs:
build_info:
runs-on: ubuntu-24.04-ppc64le-p10
runs-on: ubuntu-24.04-ppc64le
env:
PACKAGE_NAME: ${{ inputs.package_name }}
VERSION: ${{ inputs.version }}
Expand All @@ -55,6 +55,8 @@ jobs:
ENABLE_TRIVY: ${{ inputs.enable_trivy }}
ENABLE_SYFT: ${{ inputs.enable_syft }}
ENABLE_GRYPE: ${{ inputs.enable_grype }}
COS_BUCKET: ${{secrets.COS_BUCKET}}
COS_ENDPOINT: ${{secrets.COS_ENDPOINT}}
steps:
- name: Checkout code
uses: actions/checkout@v6
Expand All @@ -71,6 +73,8 @@ jobs:

- name: Get Build Info and Save Variables
run: |
echo "==== ${COS_BUCKET: -1} ======"
echo "==== $COS_ENDPOINT ====="
chmod +x ./gha-script/read_buildinfo.sh
bash ./gha-script/read_buildinfo.sh

Expand Down Expand Up @@ -108,10 +112,10 @@ jobs:
build:
needs: build_info
if: ${{ inputs.validate_build_script == 'true' }}
runs-on: ubuntu-24.04-ppc64le-p10
runs-on: ubuntu-24.04-ppc64le
steps:
- uses: actions/checkout@v6

- name: Download package-cache
uses: actions/download-artifact@v7
with:
Expand Down Expand Up @@ -172,7 +176,7 @@ jobs:
needs: build_info
name: Create Wheel for Python ${{ matrix.python-version }}
if: ${{ inputs.wheel_build == 'true' }}
runs-on: ubuntu-24.04-ppc64le-p10
runs-on: ubuntu-24.04-ppc64le
strategy:
fail-fast: false
matrix:
Expand All @@ -192,9 +196,16 @@ jobs:
PYTHON_VERSION: ${{ matrix.python-version }}
PACKAGE_NAME: ${{ inputs.package_name }}
VERSION: ${{ inputs.version }}
COS_API_KEY: ${{ secrets.COS_API_KEY }}
COS_BUCKET: ${{secrets.COS_BUCKET}}
COS_ENDPOINT: ${{secrets.COS_ENDPOINT}}
COS_SERVICE_INSTANCE_ID: ${{secrets.COS_SERVICE_INSTANCE_ID}}

steps:
- name: Checkout code
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Install system dependencies
run: |
Expand Down Expand Up @@ -268,7 +279,7 @@ jobs:

wheel_licenses:
needs: wheel_build
runs-on: ubuntu-24.04-ppc64le-p10
runs-on: ubuntu-24.04-ppc64le
steps:
- uses: actions/checkout@v6

Expand Down Expand Up @@ -318,7 +329,7 @@ jobs:
source_scanner:
needs: build
if: ${{ inputs.validate_build_script == 'true' }}
runs-on: ubuntu-24.04-ppc64le-p10
runs-on: ubuntu-24.04-ppc64le
steps:
- uses: actions/checkout@v6

Expand Down Expand Up @@ -392,7 +403,7 @@ jobs:
build_docker:
needs: build_info
if: ${{ inputs.build_docker == 'true' }}
runs-on: ubuntu-24.04-ppc64le-p10
runs-on: ubuntu-24.04-ppc64le
steps:
- uses: actions/checkout@v6

Expand Down Expand Up @@ -436,7 +447,7 @@ jobs:
image_scanner:
needs: build_docker
if: ${{ inputs.build_docker == 'true' }}
runs-on: ubuntu-24.04-ppc64le-p10
runs-on: ubuntu-24.04-ppc64le
steps:
- uses: actions/checkout@v6

Expand Down Expand Up @@ -506,7 +517,7 @@ jobs:
final_summary:
name: Final Summary Stage
needs: [build, source_scanner]
runs-on: ubuntu-24.04-ppc64le-p10
runs-on: ubuntu-24.04-ppc64le
steps:
- name: Checkout code
uses: actions/checkout@v6
Expand Down
14 changes: 10 additions & 4 deletions gha-script/build_wheels.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import docker
import json

def trigger_build_wheel(wrapper_file, python_version, image_name, file_name, version):
def trigger_build_wheel(wrapper_file, python_version, image_name, file_name, version, post_process_file):
# Docker client setup
client = docker.DockerClient(base_url='unix://var/run/docker.sock')

Expand All @@ -28,7 +28,7 @@ def trigger_build_wheel(wrapper_file, python_version, image_name, file_name, ver
command = [
"bash",
"-c",
f"cd /home/tester/ && ./{wrapper_file} {python_version} {file_name} {version}"
f"cd /home/tester/ && ./{wrapper_file} {python_version} {file_name} {version} {post_process_file}"
]

# Run container
Expand All @@ -39,7 +39,13 @@ def trigger_build_wheel(wrapper_file, python_version, image_name, file_name, ver
detach=True,
volumes={current_dir: {'bind': '/home/tester/', 'mode': 'rw'}}, # Mount current directory with both files
stderr=True,
stdout=True
stdout=True,
environment={
"COS_API_KEY": os.getenv("COS_API_KEY"),
"COS_SERVICE_INSTANCE_ID": os.getenv("COS_SERVICE_INSTANCE_ID"),
"COS_ENDPOINT": os.getenv("COS_ENDPOINT"),
"COS_BUCKET": os.getenv("COS_BUCKET")
}
)

# STREAM logs in real-time
Expand Down Expand Up @@ -69,4 +75,4 @@ def trigger_build_wheel(wrapper_file, python_version, image_name, file_name, ver

if __name__=="__main__":
print("Inside python program")
trigger_build_wheel(sys.argv[1],sys.argv[2],sys.argv[3],sys.argv[4],sys.argv[5])
trigger_build_wheel(sys.argv[1],sys.argv[2],sys.argv[3],sys.argv[4],sys.argv[5],sys.argv[6])
3 changes: 2 additions & 1 deletion gha-script/build_wheels.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ else
fi

WHEEL_SCRIPT=gha-script/create_wheel_wrapper.sh
POST_PROCESS_SCRIPT_PATH=gha-script/post_process_wheel.py
#python3 gha-script/build_wheels.py "$WHEEL_SCRIPT" "$PYTHON_VERSION" "$docker_image" "$PKG_DIR_PATH$BUILD_SCRIPT" "$VERSION" > build_log &

# SCRIPT_PID=$!
Expand All @@ -47,7 +48,7 @@ WHEEL_SCRIPT=gha-script/create_wheel_wrapper.sh
# sleep 100
# done
# wait $SCRIPT_PID
python3 gha-script/build_wheels.py "$WHEEL_SCRIPT" "$PYTHON_VERSION" "$docker_image" "$PKG_DIR_PATH$BUILD_SCRIPT" "$VERSION" 2>&1 | tee wheel_build_log
python3 gha-script/build_wheels.py "$WHEEL_SCRIPT" "$PYTHON_VERSION" "$docker_image" "$PKG_DIR_PATH$BUILD_SCRIPT" "$VERSION" "$POST_PROCESS_SCRIPT_PATH" 2>&1 | tee wheel_build_log
wheel_status=${PIPESTATUS[0]}

log_size=$(stat -c %s wheel_build_log)
Expand Down
Loading
Loading