File tree Expand file tree Collapse file tree 3 files changed +15
-8
lines changed
Expand file tree Collapse file tree 3 files changed +15
-8
lines changed Original file line number Diff line number Diff line change @@ -86,13 +86,18 @@ jobs:
8686 - name : Search the latest valid Translator cid
8787 if : ${{ env.TARGET_PRID == null }}
8888 run : |
89- env
90- ./scripts/check-update-translator-cid.sh $CID_LATEST $CID_CURRENT
89+ touch test_failed_summary.log
90+ ./scripts/check-update-translator-cid.sh $CID_LATEST $CID_CURRENT test_failed_summary.log
9191 if git status --porcelain ./lib/Target/SPIRV/spirv-llvm-translator.conf | grep '^ M'; then
9292 echo "MODIFIED=true" >> $GITHUB_ENV
9393 echo "spirv-llvm-translator.conf has been modified"
9494 fi
9595
96+ - name : Show summary of failed commit id
97+ if : ${{ env.TARGET_PRID == null }}
98+ run : |
99+ cat test_failed_summary.log
100+
96101 # raise PR by bot
97102 - name : Create PR if config is updated
98103 if : ${{ env.TARGET_PRID == null && env.MODIFIED == 'true' }}
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3- set -euo pipefail
3+ set -uo pipefail
44
55# $1 is the latest commit id from SPIRV-LLVM-Translator
66# $2 is the commit id from Triton's spirv-llvm-translator.conf
77
8- if [ " $# " -ne 2 ]; then
9- echo " Please provide commit id from Translator and from spirv-llvm-translator.conf. Usage: $0 cid1 cid2"
8+ if [ " $# " -ne 3 ]; then
9+ echo " Please provide commit id from Translator and from spirv-llvm-translator.conf and the summary log . Usage: $0 cid1 cid2 log "
1010 exit 1
1111fi
1212
@@ -32,13 +32,15 @@ for cid in $COMMIT_IDS; do
3232 fi
3333
3434 # execute default tests
35- if ./scripts/test-triton.sh --skip-pytorch-install; then
35+ ./scripts/test-triton.sh --skip-pytorch-install --core 2>&1 | tee tmp.log
36+ if [ ${PIPESTATUS[0]} -eq 0 ]; then
3637 echo " Tests passed for translator commit $cid "
3738 echo " A newer commit found: $cid "
3839 FOUND=true
3940 break
4041 else
41- echo " Tests failed for translator commit $cid "
42+ echo -e " \nTests failed for translator commit $cid :" | tee -a " $3 "
43+ awk ' /=+ FAILURES =+/, /=+ short test summary info =+/' tmp.log >> " $3 "
4244 fi
4345done
4446
Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ build_triton() {
179179
180180 cd python
181181 # Install triton and its dependencies.
182- pip install -vvv -e ' .[build,tests]'
182+ pip install -v -e ' .[build,tests]'
183183
184184 # Copy compile_commands.json in the build directory (so that cland vscode plugin can find it).
185185 cp $( find $TRITON_PROJ_BUILD -name compile_commands.json) $TRITON_PROJ /
You can’t perform that action at this time.
0 commit comments