Skip to content

Commit 3e22a9f

Browse files
committed
try to fix permissions after docker
1 parent 90c6b69 commit 3e22a9f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/_ci.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -344,10 +344,9 @@ jobs:
344344
# abuse knowledge that nsys-jax is installed editable, so the tests exist
345345
test_path=$(python -c 'import importlib.resources; print(importlib.resources.files("nsys_jax").joinpath("..", "tests").resolve())')
346346
pytest --basetemp=/opt/output/pytest-tmp --report-log=/opt/output/pytest-report.jsonl "${test_path}"
347-
# change permissions to the tmp directory so GHA can process it afterwards
348-
chmod -R a+rw /opt/output/pytest-tmp
349-
350347
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
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}')

0 commit comments

Comments
 (0)