-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new(ci): added perf CI job around scap file read. #1924
Conversation
Signed-off-by: Federico Di Pierro <[email protected]>
/milestone 0.18.0 |
@@ -30,52 +30,78 @@ jobs: | |||
mkdir -p build | |||
cd build && cmake -DUSE_BUNDLED_DEPS=False ../ | |||
make unit-test-libsinsp -j4 | |||
make sinsp-example -j4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build sinsp-example too
shell: bash | ||
run: | | ||
cd build | ||
wget https://download.falco.org/fixtures/trace-files/traces-positive.zip |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Download traces-positive
trace files from download.falco.org
if-no-files-found: error | ||
|
||
- name: Download latest master report | ||
if: github.event_name == 'pull_request' | ||
uses: dawidd6/action-download-artifact@v6 | ||
with: | ||
workflow: ci.yml | ||
workflow: perf.yml |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same fix made in last commit of #1910
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
if: github.event_name == 'pull_request' | ||
run: | | ||
sudo perf diff perf.data build/perf.data -d unit-test-libsinsp -b -o 0 --percentage relative -q &> perf_diff.txt | ||
sudo perf diff perf_tests.data build/perf_tests.data -d unit-test-libsinsp -b -o 1 --percentage relative -q &> perf_tests_diff.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Switched to -o 1
ordering that means to order the diff by absolute difference, descendent
Perf diff from master - unit tests
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, FedeDP, leogr The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
/area CI
Does this PR require a change in the driver versions?
What this PR does / why we need it:
Expands #1918 adding a perf CI job to test scap file read from sinsp-example.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
The CI will break because master perf_report has no scap file related perf data.
Does this PR introduce a user-facing change?: