8000 Resolve zip file permission issue when uploading artifacts on ROCm MI… · pytorch/pytorch@42aeb5d · GitHub
[go: up one dir, main page]

Skip to content

Commit 42aeb5d

Browse files
amdfaajithunnair-amd
authored andcommitted
Resolve zip file permission issue when uploading artifacts on ROCm MI300 CI runners (#145504)
E.g.: https://github.com/pytorch/pytorch/actions/runs/13500418791/job/37719437613#step:19:120 ``` Beginning upload of artifact content to blob storage Error: An error has occurred while creating the zip file for upload Error: EACCES: permission denied, open '/home/runner/_work/pytorch/pytorch/test/test-reports/backends.xeon.test_launch_1.1_22ba1133f3fcd140_.log' /home/runner/_work/_actions/actions/upload-artifact/v4/dist/upload/index.js:3459 throw new Error('An error has occurred during zip creation for the artifact'); ^ ``` Pull Request resolved: #145504 Approved by: https://github.com/jeffdaily Co-authored-by: Jithun Nair <37884920+jithunnair-amd@users.noreply.github.com>
1 parent 6e037ac commit 42aeb5d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/_rocm-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,6 +251,11 @@ jobs:
251251
# copy test results back to the mounted workspace, needed sudo, resulting permissions were correct
252252
docker exec -t "${{ env.CONTAINER_NAME }}" sh -c "cd ../pytorch && sudo cp -R test/test-reports ../workspace/test"
253253
254+
- name: Change permissions (only needed for MI300 runners for now)
255+
if: ${{ always() && steps.test.conclusion && contains(matrix.runner, 'mi300') }}
256+
run: |
257+
docker exec -t "${{ env.CONTAINER_NAME }}" sh -c "sudo chown -R 1001:1001 test"
258+
254259
- name: Print remaining test logs
255260
shell: bash
256261
if: always() && steps.test.conclusion

0 commit comments

Comments
 (0)
0