mirror of
https://github.com/ROCm/jax.git
synced 2025-04-15 19:36:06 +00:00
Fix CI cleanup race condition
This commit is contained in:
parent
1f93b4b9b5
commit
0f6beed48b
6
.github/workflows/rocm-ci.yml
vendored
6
.github/workflows/rocm-ci.yml
vendored
@ -28,15 +28,15 @@ jobs:
|
|||||||
TEST_IMAGE: ubuntu-jax-${{ github.run_id }}_${{ github.run_number }}_${{ github.run_attempt }}
|
TEST_IMAGE: ubuntu-jax-${{ github.run_id }}_${{ github.run_number }}_${{ github.run_attempt }}
|
||||||
PYTHON_VERSION: ${{ matrix.python }}
|
PYTHON_VERSION: ${{ matrix.python }}
|
||||||
ROCM_VERSION: ${{ matrix.rocm }}
|
ROCM_VERSION: ${{ matrix.rocm }}
|
||||||
WORKSPACE_DIR: workdir_${{ github.run_id }}_${{ github.run_number }}_${{ github.run_attempt }}
|
WORKSPACE_DIR: workdir_gpuci_${{ github.run_id }}_${{ github.run_number }}_${{ github.run_attempt }}
|
||||||
steps:
|
steps:
|
||||||
- name: Clean up old runs
|
- name: Clean up old runs
|
||||||
run: |
|
run: |
|
||||||
ls
|
ls
|
||||||
# Make sure that we own all of the files so that we have permissions to delete them
|
# Make sure that we own all of the files so that we have permissions to delete them
|
||||||
docker run -v "./:/jax" ubuntu /bin/bash -c "chown -R $UID /jax/workdir_* || true"
|
docker run -v "./:/jax" ubuntu /bin/bash -c "chown -R $UID /jax/workdir_gpuci_* || true"
|
||||||
# Remove any old work directories from this machine
|
# Remove any old work directories from this machine
|
||||||
rm -rf workdir_*
|
rm -rf workdir_gpuci_*
|
||||||
ls
|
ls
|
||||||
- name: Print system info
|
- name: Print system info
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user