Skip to content

Commit f62a38b

Browse files
committed
try to run docker as current user
1 parent 3e22a9f commit f62a38b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/_ci.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,7 @@ jobs:
336336
EXECUTE: |
337337
set -o pipefail
338338
docker run -i --shm-size=1g --gpus all \
339+
--user $(id -u)$(id -g) \
339340
-v $PWD:/opt/output \
340341
${{ needs.build-jax.outputs.DOCKER_TAG_FINAL }} \
341342
bash <<"EOF" |& tee test-nsys-jax.log
@@ -345,8 +346,8 @@ jobs:
345346
test_path=$(python -c 'import importlib.resources; print(importlib.resources.files("nsys_jax").joinpath("..", "tests").resolve())')
346347
pytest --basetemp=/opt/output/pytest-tmp --report-log=/opt/output/pytest-report.jsonl "${test_path}"
347348
EOF
348-
sudo chown -R $USER:$USER pytest-tmp/ pytest-report.jsonl test-nsys-jax.log 2>/dev/null || true
349-
chmod -R u+rwX,go+rX pytest-tmp/ 2>/dev/null || true
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
350351
STATISTICS_SCRIPT: |
351352
summary_line=$(tail -n1 test-nsys-jax.log)
352353
num_errors=$(echo $summary_line | grep -oE '[0-9]+ error' | awk '{print $1} END { if (!NR) print 0}')

0 commit comments

Comments
 (0)