Skip to content

Commit 91ed1cc

Browse files
committed
show less verbose log
1 parent 8d5374a commit 91ed1cc

File tree

3 files changed

+15
-8
lines changed

3 files changed

+15
-8
lines changed

.github/workflows/auto-update-translator-cid.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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' }}

scripts/check-update-translator-cid.sh

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
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
1111
fi
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
4345
done
4446

scripts/compile-triton.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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/

0 commit comments

Comments
 (0)