Skip to content

Commit

Permalink
[ci] update script
Browse files Browse the repository at this point in the history
  • Loading branch information
AshburnLee committed Sep 3, 2024
1 parent 3e6ef53 commit 6655663
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/auto-update-translator-cid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ on:
workflow_dispatch:
schedule:
- cron: '5 23 * * *'

pull_request:
branches:
- junhui/update-script
push:
branches:
- junhui/update-script
env:
PR_BRANCH: bot/update_translator_cid

Expand Down Expand Up @@ -58,6 +63,9 @@ jobs:
- name: Install test dependencies
if: ${{ env.TARGET_PRID == null }}
run: |
echo "=================== JUNHUI ========"
pip list | grep torch
echo "=================== JUNHUI ========"
pip install pytest pytest-xdist pytest-rerunfailures pytest-select pytest-timeout expecttest
pip install git+https://github.com/kwasd/pytest-capturewarnings-ng.git@v1.2.0
Expand All @@ -84,7 +92,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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 6655663

Please sign in to comment.