diff --git a/.github/actions/composite-perf/action.yml b/.github/actions/composite-perf/action.yml index a5e5ff901d..867dc86fe5 100644 --- a/.github/actions/composite-perf/action.yml +++ b/.github/actions/composite-perf/action.yml @@ -38,8 +38,8 @@ runs: cd build wget https://download.falco.org/fixtures/trace-files/traces-positive.zip unzip traces-positive.zip - df -h | grep tmpfs - mv traces-positive/falco-event-generator.scap /run/user/$(id -u)/falco-event-generator.scap + mkdir /dev/shm/${{ github.run_id }} + mv traces-positive/falco-event-generator.scap /dev/shm/${{ github.run_id }}/falco-event-generator.scap - name: Run - perf unit tests shell: bash @@ -51,7 +51,7 @@ runs: shell: bash run: | cd build - sudo nice ionice -c 1 -n 0 perf record --call-graph dwarf -o perf_scap.data -q ./libsinsp/examples/sinsp-example -s /run/user/$(id -u)/falco-event-generator.scap + sudo nice ionice -c 1 -n 0 perf record --call-graph dwarf -o perf_scap.data -q ./libsinsp/examples/sinsp-example -s /dev/shm/${{ github.run_id }}/falco-event-generator.scap - name: Run - heaptrack unit tests shell: bash @@ -63,11 +63,11 @@ runs: shell: bash run: | cd build - sudo nice ionice -c 1 -n 0 heaptrack -o heaptrack_scap.data ./libsinsp/examples/sinsp-example -s /run/user/$(id -u)/falco-event-generator.scap + sudo nice ionice -c 1 -n 0 heaptrack -o heaptrack_scap.data ./libsinsp/examples/sinsp-example -s /dev/shm/${{ github.run_id }}/falco-event-generator.scap - name: Cleanup tmpfs shell: bash - run: rm /run/user/$(id -u)/falco-event-generator.scap + run: ls /dev/shm/${{ github.run_id }}/ - name: Set Outputs id: store-outputs