Skip to content

Commit

Permalink
chore(ci): run capture-related perf CI on tmpfs.
Browse files Browse the repository at this point in the history
Signed-off-by: Federico Di Pierro <[email protected]>
  • Loading branch information
FedeDP committed Jul 25, 2024
1 parent 5c80f0e commit af716d8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/actions/composite-perf/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit af716d8

Please sign in to comment.