Skip to content

Conversation

@leogr
Copy link
Member

@leogr leogr commented Oct 31, 2025

Parsing of ARG_ALLOWED fields in output formatting (e.g., proc_args=%proc.args) was broken because the val == check always returned false. This fix drops the unnecessary checks so that argid = -1 is set /, argname is cleared where appropriate, and correctly sets field-name length using std::size(...)-1.

What type of PR is this?

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

/kind bug

/kind cleanup

/kind design

/kind documentation

/kind failing-test

/kind test

/kind feature

/kind sync

Any specific area of the project related to this PR?

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

/area API-version

/area build

/area CI

/area driver-kmod

/area driver-bpf

/area driver-modern-bpf

/area libscap-engine-bpf

/area libscap-engine-gvisor

/area libscap-engine-kmod

/area libscap-engine-modern-bpf

/area libscap-engine-nodriver

/area libscap-engine-noop

/area libscap-engine-source-plugin

/area libscap-engine-savefile

/area libscap

/area libpman

/area libsinsp

/area tests

/area proposals

Does this PR require a change in the driver versions?

/version driver-API-version-major

/version driver-API-version-minor

/version driver-API-version-patch

/version driver-SCHEMA-version-major

/version driver-SCHEMA-version-minor

/version driver-SCHEMA-version-patch

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

/milestone 0.22.2

Does this PR introduce a user-facing change?:

NONE

Parsing of ARG_ALLOWED fields in output formatting (e.g., `proc_args=%proc.args`) was broken because the `val ==` check always returned false. This fix drops the unnecessary checks so that `argid = -1` is set /, `argname` is cleared where appropriate, and correctly sets field-name length using `std::size(...)-1`.

Signed-off-by: Leonardo Grasso <[email protected]>
@poiana poiana added release-note-none kind/bug Something isn't working labels Oct 31, 2025
@poiana poiana added this to the 0.22.2 milestone Oct 31, 2025
@poiana poiana added dco-signoff: yes kind/sync PRs syncing branch with changes coming from another branch area/libsinsp size/M labels Oct 31, 2025
@leogr leogr changed the title fix(userspace/libsinsp): correct fallback for arg-less proc.* fields sync(0.22.2): fix(userspace/libsinsp): correct fallback for arg-less proc.* fields Oct 31, 2025
Copy link
Contributor

@ekoops ekoops 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 Oct 31, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ekoops, 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:

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

@codecov
Copy link

codecov bot commented Oct 31, 2025

Codecov Report

❌ Patch coverage is 47.36842% with 10 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release/0.22.x@1a8b912). Learn more about missing BASE report.

Files with missing lines Patch % Lines
userspace/libsinsp/sinsp_filtercheck_thread.cpp 47.36% 10 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##             release/0.22.x    #2708   +/-   ##
=================================================
  Coverage                  ?   76.93%           
=================================================
  Files                     ?      294           
  Lines                     ?    30857           
  Branches                  ?     4681           
=================================================
  Hits                      ?    23739           
  Misses                    ?     7118           
  Partials                  ?        0           
Flag Coverage Δ
libsinsp 76.93% <47.36%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Contributor

@irozzo-1A irozzo-1A left a comment

Choose a reason for hiding this comment

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

LGTM

@github-project-automation github-project-automation bot moved this from Todo to In progress in Falco Roadmap Oct 31, 2025
@poiana poiana merged commit b63182f into release/0.22.x Oct 31, 2025
46 of 47 checks passed
@poiana poiana deleted the sync/0.22.2 branch October 31, 2025 14:54
@github-project-automation github-project-automation bot moved this from In progress to Done in Falco Roadmap Oct 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved area/libsinsp dco-signoff: yes kind/bug Something isn't working kind/sync PRs syncing branch with changes coming from another branch lgtm release-note-none size/M

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

5 participants