Skip to content

Conversation

@ddelnano
Copy link
Member

Summary: Update GetAgentStatus and kernel header UDTF to allow kelvin filtering

In order to leverage the GetAgentStatus's kernel_headers_installed column for #2051, it would be convenient for the the UDTF to provide the ability to filter kelvins out -- they don't have access to kernel headers since they don't have the host filesystem volume mounted. This change introduces an include_kelvin init argument to the UDTFs with a default of true to preserve the existing behavior.

This change also fixes a bug with UDTF's init arg default values, which didn't work prior to this change. Please review commit by commit to see the default arg bug fix followed by the UDTF changes.

Relevant Issues: #2051

Type of change: /kind bug

Test Plan: New logical planner test no longer fails with the following error

$ bazel test -c opt src/carnot/planner:logical_planner_test --test_output=all

[ RUN      ] LogicalPlannerTest.one_pems_one_kelvin
src/carnot/planner/logical_planner_test.cc:64: Failure
Value of: IsOK(::px::StatusAdapter(__status_or_value__64))
  Actual: false (Invalid Argument : DATA_TYPE_UNKNOWN not handled as a default value)
Expected: true

Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
(cherry picked from commit d676c49)
…w/ backwards compatible default value

Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
(cherry picked from commit 918c6f6)
@ddelnano ddelnano requested a review from a team as a code owner December 16, 2024 17:01
@aimichelle aimichelle merged commit 1b14e8c into pixie-io:main Dec 16, 2024
31 checks passed
ddelnano added a commit to ddelnano/pixie that referenced this pull request Aug 6, 2025
…ing (pixie-io#2061)

Summary: Update `GetAgentStatus` and kernel header UDTF to allow kelvin
filtering

In order to leverage the `GetAgentStatus`'s `kernel_headers_installed`
column for pixie-io#2051, it would be convenient for the the UDTF to provide the
ability to filter kelvins out -- they don't have access to kernel
headers since they don't have the host filesystem volume mounted. This
change introduces an `include_kelvin` init argument to the UDTFs with a
default of `true` to preserve the existing behavior.

This change also fixes a bug with UDTF's init arg default values, which
didn't work prior to this change. Please review commit by commit to see
the default arg bug fix followed by the UDTF changes.

Relevant Issues: pixie-io#2051

Type of change: /kind bug

Test Plan: New logical planner test no longer fails with the following
error
```
$ bazel test -c opt src/carnot/planner:logical_planner_test --test_output=all

[ RUN      ] LogicalPlannerTest.one_pems_one_kelvin
src/carnot/planner/logical_planner_test.cc:64: Failure
Value of: IsOK(::px::StatusAdapter(__status_or_value__64))
  Actual: false (Invalid Argument : DATA_TYPE_UNKNOWN not handled as a default value)
Expected: true
```
GitOrigin-RevId: 1b14e8c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants