Add clean up of buffered_storage files (#1738)
* Add clean up of buffered_storage files * Add step to workflows to test for remaining temp files after tests * Applied suggestions from code review * add deletion of all cache files --------- Co-authored-by: David Galiffi <David.Galiffi@amd.com>
This commit is contained in:
committed by
GitHub
parent
6b73f6ab5c
commit
d9b00da102
@@ -74,14 +74,14 @@ jobs:
|
||||
packages: read
|
||||
container:
|
||||
image: ghcr.io/rocm/rocprofiler-ubuntu:${{ matrix.system.os-release }}-systems-ci-${{ matrix.system.arch }}
|
||||
options:
|
||||
--privileged
|
||||
options:
|
||||
--privileged
|
||||
--ipc host
|
||||
--group-add video
|
||||
--device /dev/kfd
|
||||
--device /dev/dri
|
||||
--cap-add CAP_SYS_ADMIN
|
||||
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
with:
|
||||
@@ -171,6 +171,19 @@ jobs:
|
||||
-L "rocm" \
|
||||
-LE "rccl|runtime|ompvv"
|
||||
|
||||
- name: Check for Leftover Buffered Files
|
||||
timeout-minutes: 5
|
||||
working-directory: projects/rocprofiler-systems/
|
||||
run: |
|
||||
set -v
|
||||
if find /tmp -maxdepth 1 -name 'buffered*' -print -quit | grep -q .; then
|
||||
echo "Error: Found leftover buffered storage files in /tmp:"
|
||||
ls -lh /tmp/buffered*
|
||||
exit 1
|
||||
else
|
||||
echo "✓ No buffered storage files found in /tmp"
|
||||
fi
|
||||
|
||||
- name: Output Logs
|
||||
if: failure() && steps.run_ci.outcome == 'failure'
|
||||
working-directory: projects/rocprofiler-systems
|
||||
|
||||
@@ -136,6 +136,19 @@ jobs:
|
||||
-- \
|
||||
-LE "transpose|rccl|videodecode|jpegdecode|network"
|
||||
|
||||
- name: Check for Leftover Buffered Files
|
||||
timeout-minutes: 5
|
||||
working-directory: projects/rocprofiler-systems/
|
||||
run: |
|
||||
set -v
|
||||
if find /tmp -maxdepth 1 -name 'buffered*' -print -quit | grep -q .; then
|
||||
echo "Error: Found leftover buffered storage files in /tmp:"
|
||||
ls -lh /tmp/buffered*
|
||||
exit 1
|
||||
else
|
||||
echo "✓ No buffered storage files found in /tmp"
|
||||
fi
|
||||
|
||||
- name: Test Clean Up
|
||||
timeout-minutes: 10
|
||||
working-directory: projects/rocprofiler-systems/
|
||||
|
||||
@@ -136,6 +136,19 @@ jobs:
|
||||
--
|
||||
-LE "transpose|rccl|videodecode|jpegdecode|network"
|
||||
|
||||
- name: Check for Leftover Buffered Files
|
||||
timeout-minutes: 5
|
||||
working-directory: projects/rocprofiler-systems/
|
||||
run: |
|
||||
set -v
|
||||
if find /tmp -maxdepth 1 -name 'buffered*' -print -quit | grep -q .; then
|
||||
echo "Error: Found leftover buffered storage files in /tmp:"
|
||||
ls -lh /tmp/buffered*
|
||||
exit 1
|
||||
else
|
||||
echo "✓ No buffered storage files found in /tmp"
|
||||
fi
|
||||
|
||||
- name: Test Clean Up
|
||||
timeout-minutes: 10
|
||||
working-directory: projects/rocprofiler-systems/
|
||||
|
||||
@@ -320,6 +320,19 @@ jobs:
|
||||
-- \
|
||||
-LE "transpose|rccl|videodecode|jpegdecode|network"
|
||||
|
||||
- name: Check for Leftover Buffered Files
|
||||
timeout-minutes: 5
|
||||
working-directory: projects/rocprofiler-systems/
|
||||
run: |
|
||||
set -v
|
||||
if find /tmp -maxdepth 1 -name 'buffered*' -print -quit | grep -q .; then
|
||||
echo "Error: Found leftover buffered storage files in /tmp:"
|
||||
ls -lh /tmp/buffered*
|
||||
exit 1
|
||||
else
|
||||
echo "✓ No buffered storage files found in /tmp"
|
||||
fi
|
||||
|
||||
- name: Test Clean Up
|
||||
timeout-minutes: 10
|
||||
working-directory: projects/rocprofiler-systems/
|
||||
|
||||
@@ -135,6 +135,19 @@ jobs:
|
||||
-- \
|
||||
-LE "transpose|rccl|videodecode|jpegdecode|network"
|
||||
|
||||
- name: Check for Leftover Buffered Files
|
||||
timeout-minutes: 5
|
||||
working-directory: projects/rocprofiler-systems/
|
||||
run: |
|
||||
set -v
|
||||
if find /tmp -maxdepth 1 -name 'buffered*' -print -quit | grep -q .; then
|
||||
echo "Error: Found leftover buffered storage files in /tmp:"
|
||||
ls -lh /tmp/buffered*
|
||||
exit 1
|
||||
else
|
||||
echo "✓ No buffered storage files found in /tmp"
|
||||
fi
|
||||
|
||||
- name: Test Clean Up
|
||||
timeout-minutes: 10
|
||||
working-directory: projects/rocprofiler-systems/
|
||||
|
||||
Reference in New Issue
Block a user