File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -337,17 +337,16 @@ jobs:
337337 set -o pipefail
338338 docker run -i --shm-size=1g --gpus all \
339339 --user $(id -u)$(id -g) \
340+ -e HOME=/tmp \
340341 -v $PWD:/opt/output \
341342 ${{ needs.build-jax.outputs.DOCKER_TAG_FINAL }} \
342343 bash <<"EOF" |& tee test-nsys-jax.log
343344 # nsys-jax is already installed, this is just adding the test dependencies
344- pip install pytest-reportlog nsys-jax[test]
345+ pip install --user pytest-reportlog nsys-jax[test]
345346 # abuse knowledge that nsys-jax is installed editable, so the tests exist
346347 test_path=$(python -c 'import importlib.resources; print(importlib.resources.files("nsys_jax").joinpath("..", "tests").resolve())')
347348 pytest --basetemp=/opt/output/pytest-tmp --report-log=/opt/output/pytest-report.jsonl "${test_path}"
348349 EOF
349- #sudo chown -R $USER:$USER pytest-tmp/ pytest-report.jsonl test-nsys-jax.log 2>/dev/null || true
350- #chmod -R u+rwX,go+rX pytest-tmp/ 2>/dev/null || true
351350 STATISTICS_SCRIPT : |
352351 summary_line=$(tail -n1 test-nsys-jax.log)
353352 num_errors=$(echo $summary_line | grep -oE '[0-9]+ error' | awk '{print $1} END { if (!NR) print 0}')
You can’t perform that action at this time.
0 commit comments