Skip to content

fix(kernelrelease): fix parsing for kern ver specifying just the major#426

Merged
poiana merged 1 commit intofalcosecurity:masterfrom
ekoops:ekoops/fix-kernel-release-parsing
Apr 13, 2026
Merged

fix(kernelrelease): fix parsing for kern ver specifying just the major#426
poiana merged 1 commit intofalcosecurity:masterfrom
ekoops:ekoops/fix-kernel-release-parsing

Conversation

@ekoops
Copy link
Copy Markdown
Contributor

@ekoops ekoops commented Apr 13, 2026

What type of PR is this?

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

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind feature

Any specific area of the project related to this PR?

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

/area build

/area cmd

/area pkg

/area docs

/area tests

What this PR does / why we need it:

This PR allows parsing kernel version string specifying just the major number, like "7". Notice that this is required in order to be flexible to situations in which the user specifies something like 7.0 (unquoted) in the configuration and the YAML parser drops the ".0" while converting the value (recognized as a float number) to string.

The aforementioned example is taken from here: https://github.com/falcosecurity/libs/actions/runs/24333996573

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

NONE

Allow parsing kernel version string specifying just the major number,
like "7". Notice that this is required in order to be flexible to
situations in which the user specifies something like 7.0 (unquoted)
in the configuration and the YAML parser drops the ".0" while
converting the value (recognized as a float number) to string.

Signed-off-by: Leonardo Di Giovanna <leonardodigiovanna1@gmail.com>
@poiana poiana requested review from FedeDP and leogr April 13, 2026 15:51
@poiana poiana added the size/S label Apr 13, 2026
Copy link
Copy Markdown
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
Copy Markdown

poiana commented Apr 13, 2026

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ekoops, FedeDP

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

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

@FedeDP
Copy link
Copy Markdown
Contributor

FedeDP commented Apr 13, 2026

Uh failing tests :/

@poiana poiana merged commit b358b68 into falcosecurity:master Apr 13, 2026
11 of 12 checks passed
@ekoops ekoops deleted the ekoops/fix-kernel-release-parsing branch April 14, 2026 09:07
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.

3 participants