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

fix(ci): do not install headers if drivers are not modified #1617

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

LucaGuerra
Copy link
Contributor

What type of PR is this?

Uncomment one (or more) /kind <> lines:

/kind bug

Any specific area of the project related to this PR?

Uncomment one (or more) /area <> lines:

/area CI

Does this PR require a change in the driver versions?

No

What this PR does / why we need it:

Honestly not sure if this is the root cause but it seems that CI has difficulties downloading kernel headers, and the apt update step is only executed if needs.paths-filter.outputs.driver_changed == 'true' || needs.paths-filter.outputs.libscap_changed == 'true', so it seems right to always run it.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

@LucaGuerra
Copy link
Contributor Author

cc @FedeDP does this make sense to you?

@LucaGuerra
Copy link
Contributor Author

/milestone 0.14.1

@poiana poiana added this to the 0.14.1 milestone Jan 12, 2024
@FedeDP
Copy link
Contributor

FedeDP commented Jan 12, 2024

Indeed, i think we should add the
if: needs.paths-filter.outputs.driver_changed == 'true' || needs.paths-filter.outputs.libscap_changed == 'true'
to all steps here; these tests shouldn't be executed when there was no drivers/libscap changes.

@LucaGuerra
Copy link
Contributor Author

I will change the PR to do that then!

@LucaGuerra LucaGuerra changed the title fix(ci): run apt update in all driver test paths fix(ci): do not install headers if drivers are not modified Jan 12, 2024
Copy link
Contributor

@FedeDP FedeDP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana
Copy link
Contributor

poiana commented Jan 12, 2024

LGTM label has been added.

Git tree hash: cc3c4a9a27864feb3031e95c2a3c5723440f029d

Copy link
Contributor

@incertum incertum left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@poiana
Copy link
Contributor

poiana commented Jan 12, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP, incertum, LucaGuerra

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 [FedeDP,LucaGuerra,incertum]

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 8f4598a into falcosecurity:master Jan 12, 2024
31 checks passed
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