From aa880355e6d31fa2e7a69e7e15f5561c4417d8a9 Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Sun, 12 Jan 2025 21:33:25 +0000 Subject: [PATCH 1/2] Revert "fix string mistakenly treated as number" This reverts commit 6c3e074e9ff8776ad99b44def15bc22ec7adada2. --- .github/BACKPORT_BRANCH | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/BACKPORT_BRANCH b/.github/BACKPORT_BRANCH index 406dda246e..9266e6784d 100644 --- a/.github/BACKPORT_BRANCH +++ b/.github/BACKPORT_BRANCH @@ -1 +1 @@ -"11.8.x" +11.8.x From 9bcf9d665bfc047a7e9a764a74ec2e61d29aa01e Mon Sep 17 00:00:00 2001 From: Leo Fang Date: Sun, 12 Jan 2025 21:38:21 +0000 Subject: [PATCH 2/2] avoid using fromJSON that converts strings to numbers; add a check for last id lookup --- .github/workflows/backport.yml | 2 +- .github/workflows/test-wheel.yml | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index ef3e0e3f6e..f5da165450 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -33,5 +33,5 @@ jobs: copy_labels_pattern: true copy_requested_reviewers: true label_pattern: to-be-backported - target_branches: ${{ fromJSON(env.OLD_BRANCH) }} + target_branches: ${{ env.OLD_BRANCH }} conflict_resolution: draft_commit_conflicts diff --git a/.github/workflows/test-wheel.yml b/.github/workflows/test-wheel.yml index a021ff34f0..d1454d3227 100644 --- a/.github/workflows/test-wheel.yml +++ b/.github/workflows/test-wheel.yml @@ -111,6 +111,10 @@ jobs: OLD_BRANCH=$(cat .github/BACKPORT_BRANCH) OLD_BASENAME="cuda-bindings-python${PYTHON_VERSION_FORMATTED}-cuda*-${{ inputs.host-platform }}*" LATEST_PRIOR_RUN_ID=$(gh run list -b ${OLD_BRANCH} -L 1 -w "CI: Build and test" -s completed -R NVIDIA/cuda-python --json databaseId | jq '.[]| .databaseId') + if [[ "$LATEST_PRIOR_RUN_ID" == "" ]]; then + echo "LATEST_PRIOR_RUN_ID not found!" + exit 1 + fi gh run download $LATEST_PRIOR_RUN_ID -p ${OLD_BASENAME} -R NVIDIA/cuda-python ls -al $OLD_BASENAME mkdir -p "${{ env.CUDA_BINDINGS_ARTIFACTS_DIR }}"