Skip to content
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

Merged
merged 1 commit into from
Jun 20, 2024

Conversation

FedeDP
Copy link
Contributor

@FedeDP FedeDP commented Jun 20, 2024

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?:

new(ci): added perf CI job around scap file read.

@FedeDP
Copy link
Contributor Author

FedeDP commented Jun 20, 2024

/milestone 0.18.0

@poiana poiana added this to the 0.18.0 milestone Jun 20, 2024
@@ -30,52 +30,78 @@ jobs:
mkdir -p build
cd build && cmake -DUSE_BUNDLED_DEPS=False ../
make unit-test-libsinsp -j4
make sinsp-example -j4
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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

Copy link
Member

@Andreagit97 Andreagit97 left a 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
Copy link
Contributor Author

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

Copy link

Perf diff from master - unit tests

@poiana
Copy link
Contributor

poiana commented Jun 20, 2024

[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:
  • OWNERS [Andreagit97,FedeDP,leogr]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana merged commit 273299c into master Jun 20, 2024
39 of 41 checks passed
@poiana poiana deleted the new/perf_ci_scap_file branch June 20, 2024 12:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants