File tree Expand file tree Collapse file tree 3 files changed +11
-7
lines changed
eks-workflow-files/axlearn Expand file tree Collapse file tree 3 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -219,18 +219,22 @@ done
219219# SUMMARY STATUS
220220passed=0
221221failed=0
222+ error=0
222223skipped=0
223224for log in ${LOG_DIRECTORY} /log_* .log; do
224225 count_pass=$( grep -Eo ' [0-9]+ passed' " ${log} " | awk ' {print $1}' || true)
225226 count_fail=$( grep -Eo ' [0-9]+ failed' " ${log} " | awk ' {print $1}' || true)
227+ count_error=$( grep -Eo ' [0-9]+ error' " ${log} " | awk ' {print $1}' || true)
226228 count_skipped=$( grep -Eo ' [0-9]+ skipped' " ${log} " | awk ' {print $1}' || true)
227229 # in case of None
228230 count_pass=${count_pass:- 0}
229231 count_fail=${count_fail:- 0}
232+ count_error=${count_error:- 0}
230233 count_skipped=${count_skipped:- 0}
231234 # count all the tests
232235 (( passed += count_pass ))
233236 (( failed += count_fail ))
237+ (( failed += count_error ))
234238 (( skipped += count_skipped ))
235239done
236240
Original file line number Diff line number Diff line change 2222 LOG_DIR="/output/${RUN_ID}"
2323 mkdir -p ${LOG_DIR}
2424 # test on JAX, make sure 8 devices are visible
25- pytest-xdist.sh 8 8 ${LOG_DIR}/axlearn-unittests.jsonl test-axlearn.sh --directory "." --output ${LOG_DIR} --test-files "/opt/axlearn/axlearn/common/*_test.py"
25+ pytest-xdist.sh 8 4 ${LOG_DIR}/axlearn-unittests.jsonl test-axlearn.sh --directory "." --output ${LOG_DIR} --test-files "/opt/axlearn/axlearn/common/*_test.py"
2626 env :
2727 - name : RUN_ID
2828 value : PLACEHOLDER
Original file line number Diff line number Diff line change @@ -616,14 +616,14 @@ jobs:
616616 id : log-s3
617617 run : |
618618 mkdir -p axlearn-output
619- aws s3 cp s3://jax-toolbox-eks-output/axlearn/${{ github.run_id }}/logs/summary.txt axlearn_output /
620- aws s3 cp s3://jax-toolbox-eks-output/axlearn/${{ github.run_id }}/logs/ axlearn_output / --recursive --exclude "*" --include "*.log"
621- aws s3 cp s3://jax-toolbox-eks-output/axlearn/${{ github.run_id }}/logs/ axlearn_output / --recursive --exclude "*" --include "*.xml"
619+ aws s3 cp s3://jax-toolbox-eks-output/axlearn/${{ github.run_id }}/logs/summary.txt axlearn-output /
620+ aws s3 cp s3://jax-toolbox-eks-output/axlearn/${{ github.run_id }}/logs/ axlearn-output / --recursive --exclude "*" --include "*.log"
621+ aws s3 cp s3://jax-toolbox-eks-output/axlearn/${{ github.run_id }}/logs/ axlearn-output / --recursive --exclude "*" --include "*.xml"
622622
623623
624- passed_tests=$(grep -Eo 'PASSED:[[:space:]]*[0-9]+' axlearn_output /summary.txt | grep -Eo '[0-9]+' )
625- failed_tests=$(grep -Eo 'FAILED:[[:space:]]*[0-9]+' axlearn_output /summary.txt | grep -Eo '[0-9]+' )
626- skipped_tests=$(grep -Eo 'SKIPPED:[[:space:]]*[0-9]+' axlearn_output /summary.txt | grep -Eo '[0-9]+' )
624+ passed_tests=$(grep -Eo 'PASSED:[[:space:]]*[0-9]+' axlearn-output /summary.txt | grep -Eo '[0-9]+' )
625+ failed_tests=$(grep -Eo 'FAILED:[[:space:]]*[0-9]+' axlearn-output /summary.txt | grep -Eo '[0-9]+' )
626+ skipped_tests=$(grep -Eo 'SKIPPED:[[:space:]]*[0-9]+' axlearn-output /summary.txt | grep -Eo '[0-9]+' )
627627 total_tests=$((failed_tests + passed_tests + skipped_tests))
628628
629629 echo "Passed tests: $passed_tests"
You can’t perform that action at this time.
0 commit comments