Skip to content

Commit dacafd4

Browse files
committedMar 13, 2025
check if we can use the pipefail here
1 parent 3f78165 commit dacafd4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎.github/eks-workflow-files/axlearn/axlearn-job.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ spec:
1717
- bash
1818
- -c
1919
- |
20+
set -exo pipefail
2021
pip install pytest-reportlog pytest-xdist
2122
2223
# Start MPS daemon
@@ -29,11 +30,8 @@ spec:
2930
pytest-xdist.sh 8 1 axlearn-unittests.jsonl bash /usr/local/bin/test-axlearn.sh --directory "." --output "/opt/output/" --test-files "/opt/axlearn/axlearn/common/*_test.py" | tee -a ${LOG_DIR}/pytest_stdout.log
3031
3132
wait
32-
# copy results to the mounted s3 bucket
3333
mkdir -p /jax-toolbox-eks-output/axlearn/${RUN_ID}
3434
cp /opt/output/summary.txt /jax-toolbox-eks-output/axlearn/${RUN_ID}/summary.txt
35-
# copy all the log files
36-
ls /opt/output/
3735
cp -r /opt/output/logs/*.log /jax-toolbox-eks-output/axlearn/${RUN_ID}/.
3836
cp -r axlearn-unittests.jsonl /jax-toolbox-eks-output/axlearn/${RUN_ID}/.
3937
env:

0 commit comments

Comments
 (0)