-
Notifications
You must be signed in to change notification settings - Fork 912
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
update: engine_version in semver representation #2838
update: engine_version in semver representation #2838
Conversation
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.
Looks great! Left some comments. Also, not strong on this but we may want to check that
falco/.github/workflows/ci.yml
Line 100 in cca1d70
base_engine_ver=$(grep ENGINE_VERSION "./userspace/engine/falco_engine_version.h" | awk '{print $3}' | sed -e 's/(//g' -e 's/)//g') |
e4f0306
to
7dcc2fb
Compare
1a7c330
to
106e822
Compare
Signed-off-by: Lorenzo Susini <[email protected]>
… able to load rules with both numeric and semver string required_engine_version Signed-off-by: Lorenzo Susini <[email protected]>
…ns_info Signed-off-by: Lorenzo Susini <[email protected]>
…nability Signed-off-by: Lorenzo Susini <[email protected]>
6326958
to
86c20cf
Compare
Signed-off-by: Lorenzo Susini <[email protected]>
86c20cf
to
0b6b432
Compare
Signed-off-by: Lorenzo Susini <[email protected]>
/milestone 0.37.0 |
LGTM label has been added. Git tree hash: 449e969acb49f3b7c9f24d28311a8428611e2641
|
Signed-off-by: Lorenzo Susini <[email protected]>
Updated the checksum with the last commit |
LGTM label has been added. Git tree hash: 9dc3bd714eb7c4ef601c7a15555ee93fa7bd2112
|
Unfortunately |
cee5c42
to
f3ae2c4
Compare
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
LGTM label has been added. Git tree hash: 9dc3bd714eb7c4ef601c7a15555ee93fa7bd2112
|
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: incertum, jasondellaluce, loresuso 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 |
Great work!!! 🎉 |
@@ -45,6 +45,9 @@ message response | |||
string prerelease = 5; | |||
string build = 6; | |||
// falco engine version | |||
uint32 engine_version = 7; | |||
uint32 engine_minor = 7; |
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.
why did we change the proto here? I've seen that we keep engine_version
as a field but we moved it to 11
, maybe we can keep it here, WDYT?
@@ -79,6 +80,10 @@ void falco::grpc::server_impl::version(const context& ctx, const version::reques | |||
|
|||
res.set_engine_version(FALCO_ENGINE_VERSION); | |||
res.set_engine_fields_checksum(FALCO_ENGINE_CHECKSUM); | |||
auto engine_version = falco_engine::engine_version(); | |||
res.set_engine_major(engine_version.major()); |
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.
i would remove the above line
res.set_engine_version(FALCO_ENGINE_VERSION);
and use
res.set_engine_version(engine_version.as_string());
What type of PR is this?
/kind feature
Any specific area of the project related to this PR?
/area engine
What this PR does / why we need it:
This PR convert the falco
engine_version
to semver. It does so while trying to deal with possible breaking changes with rules. In particular, ifrequired_engine_version
yaml field in rule isWhich issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: