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

build: divorce driver version from libs version #2086

Merged
merged 11 commits into from Jun 23, 2022

Conversation

leogr
Copy link
Member

@leogr leogr commented Jun 22, 2022

What type of PR is this?

/kind cleanup
/kind design

Any specific area of the project related to this PR?

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

/area build

What this PR does / why we need it:

This PR allows using different versions of libs and driver.
Versions can be set respectively using the following cmake vars:

  • FALCOSECURITY_LIBS_VERSION
  • DRIVER_VERSION

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

This is required to make Falco work with the new libs and drivers versioning system work.
We expect to git-tag those versions soon.

/milestone 0.32.1

Still a WIP since it Requires 👇
falcosecurity/libs#423

Does this PR introduce a user-facing change?:

build: introduce `DRIVER_VERSION` that allows setting a driver version (which may differ from the falcosecurity/libs version)
update: add more info to `--version` output

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
@leogr leogr force-pushed the build/divorce-driver-version branch from 74e4fa1 to 32594c6 Compare June 23, 2022 08:48
@leogr leogr changed the title wip: build: divorce driver version from libs version build: divorce driver version from libs version Jun 23, 2022
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
Note that another bump is required before releasing Falco, since this commit uses alpha versions.

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
Since now each Falco version is compatible with a range of driver version and not just one.

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
@leogr leogr force-pushed the build/divorce-driver-version branch from f9495d3 to 2a5c407 Compare June 23, 2022 09:42
Co-authored-by: Federico Di Pierro <nierro92@gmail.com>
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
FedeDP
FedeDP previously approved these changes Jun 23, 2022
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.

This is very very very nice! Thanks Leo!
/approve

Copy link
Contributor

@jasondellaluce jasondellaluce left a comment

Choose a reason for hiding this comment

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

Left few comments Leo! This is awesome

cmake/modules/driver-repo/CMakeLists.txt Show resolved Hide resolved
userspace/falco/app_actions/print_version.cpp Outdated Show resolved Hide resolved
userspace/falco/app_actions/print_version.cpp Outdated Show resolved Hide resolved
… gets invoked


Signed-off-by: Leonardo Grasso <me@leonardograsso.com>

Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
…ll for schema version


Signed-off-by: Leonardo Grasso <me@leonardograsso.com>

Co-authored-by: Jason Dellaluce <jasondellaluce@gmail.com>
@leogr
Copy link
Member Author

leogr commented Jun 23, 2022

Close and reopen to update tide
/close

@poiana poiana closed this Jun 23, 2022
@poiana
Copy link

poiana commented Jun 23, 2022

@leogr: Closed this PR.

In response to this:

Close and reopen to update tide
/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@leogr
Copy link
Member Author

leogr commented Jun 23, 2022

/reopen

@poiana poiana reopened this Jun 23, 2022
@poiana
Copy link

poiana commented Jun 23, 2022

@leogr: Reopened this PR.

In response to this:

/reopen

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

Copy link
Contributor

@jasondellaluce jasondellaluce left a comment

Choose a reason for hiding this comment

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

/approve

🥳

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

poiana commented Jun 23, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: FedeDP, jasondellaluce, 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 [FedeDP,jasondellaluce,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 2f208b5 into master Jun 23, 2022
@poiana poiana deleted the build/divorce-driver-version branch June 23, 2022 10:47
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.

None yet

4 participants