From af716d87eb9cb803e95db976eff7d7cd50ca7ec1 Mon Sep 17 00:00:00 2001 From: Federico Di Pierro Date: Thu, 25 Jul 2024 09:58:27 +0200 Subject: [PATCH] chore(ci): run capture-related perf CI on tmpfs. Signed-off-by: Federico Di Pierro --- .github/actions/composite-perf/action.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/actions/composite-perf/action.yml b/.github/actions/composite-perf/action.yml index 60a94ba77f6..cb821360b52 100644 --- a/.github/actions/composite-perf/action.yml +++ b/.github/actions/composite-perf/action.yml @@ -38,6 +38,7 @@ runs: cd build wget https://download.falco.org/fixtures/trace-files/traces-positive.zip unzip traces-positive.zip + mv traces-positive/falco-event-generator.scap /run/user/$(id -u)/ - name: Run - perf unit tests shell: bash @@ -49,7 +50,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 traces-positive/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 /run/user/$(id -u)/falco-event-generator.scap - name: Run - heaptrack unit tests shell: bash @@ -61,7 +62,11 @@ runs: shell: bash run: | cd build - sudo nice ionice -c 1 -n 0 heaptrack -o heaptrack_scap.data ./libsinsp/examples/sinsp-example -s traces-positive/falco-event-generator.scap + 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 + + - name: Cleanup tmpfs + shell: bash + run: rm /run/user/$(id -u)/falco-event-generator.scap - name: Set Outputs id: store-outputs