From 2c538074984134101271cad0491e18aae9b1851c Mon Sep 17 00:00:00 2001 From: AshburnLee Date: Mon, 2 Sep 2024 07:51:12 +0000 Subject: [PATCH] [ci] update script --- .github/workflows/auto-update-translator-cid.yml | 2 +- ...anlator_cid.sh => check-update-translator-cid.sh} | 12 +++++++++--- 2 files changed, 10 insertions(+), 4 deletions(-) rename scripts/{check_update_tranlator_cid.sh => check-update-translator-cid.sh} (80%) diff --git a/.github/workflows/auto-update-translator-cid.yml b/.github/workflows/auto-update-translator-cid.yml index 9525583437..a95251c91f 100644 --- a/.github/workflows/auto-update-translator-cid.yml +++ b/.github/workflows/auto-update-translator-cid.yml @@ -84,7 +84,7 @@ jobs: if: ${{ env.TARGET_PRID == null }} run: | env - ./scripts/check_update_tranlator_cid.sh $CID_LATEST $CID_CURRENT + ./scripts/check-update-translator-cid.sh $CID_LATEST $CID_CURRENT if git status --porcelain ./lib/Target/SPIRV/spirv-llvm-translator.conf | grep '^ M'; then echo "MODIFIED=true" >> $GITHUB_ENV echo "spirv-llvm-translator.conf has been modified" diff --git a/scripts/check_update_tranlator_cid.sh b/scripts/check-update-translator-cid.sh similarity index 80% rename from scripts/check_update_tranlator_cid.sh rename to scripts/check-update-translator-cid.sh index 0848d9dc3b..9938a3da70 100755 --- a/scripts/check_update_tranlator_cid.sh +++ b/scripts/check-update-translator-cid.sh @@ -27,11 +27,17 @@ FOUND=false for cid in $COMMIT_IDS; do echo "$cid" > ./lib/Target/SPIRV/spirv-llvm-translator.conf if ! ./scripts/compile-triton.sh --clean; then - echo "Compile failed for translator commit $cid" + echo "Triton compile failed for translator commit $cid" continue - fi + fi + + # download pinned upstream pytorch and no-op-ipex + if ! ./scripts/compile-pytorch-ipex.sh; then + echo "Download failed for translator commit $cid" + continue + fi - # build pytorch and IPEX outside of 'test-triton.sh' + # execute full tests if ./scripts/test-triton.sh --skip-deps; then echo "Tests passed for translator commit $cid" echo "A newer commit found: $cid"