Skip to content

Commit 9c3d392

Browse files
committed
Update log output path from env in EKS jobs
1 parent 8c5b917 commit 9c3d392

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.github/eks-workflow-files/transformer-engine/scripts/multigpu.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77

88
set -ex
99
cd ${SRC_PATH_TRANSFORMER_ENGINE}/examples/jax/encoder
10-
pytest --report-log=/output/pytest-report.jsonl \
10+
pytest --report-log=${LOG_DIR}/pytest-report.jsonl \
1111
test_single_gpu_encoder.py \
1212
test_multigpu_encoder.py \
1313
test_model_parallel_encoder.py | tee -a ${LOG_DIR}/tests.log
1414

15-
touch /opt/output/done
15+
touch ${LOG_DIR}/done

.github/eks-workflow-files/transformer-engine/test.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ SCRIPT
3131
- sh
3232
- -c
3333
- |
34-
while [ ! -f /opt/output/done ]; do
34+
while [ ! -f ${LOG_DIR}/done ]; do
3535
sleep 5
3636
done
3737
3838
# Upload logs to S3 bucket
39-
aws s3 cp /opt/output/ s3://${S3_BUCKET}/${CI_NAME}/${RUN_ID}/ --recursive
39+
aws s3 cp ${LOG_DIR}/ s3://${S3_BUCKET}/${CI_NAME}/${RUN_ID}/ --recursive
4040
env:
41+
- name: LOG_DIR
42+
value: /opt/output
4143
- name: RUN_ID
4244
value: JOB_NAME
4345
- name: S3_BUCKET

0 commit comments

Comments
 (0)