Description
Description
Please treat this as low urgency. I am trying to package the latest version of tracee for NixOS and have issue making all of the integration tests pass:
=== RUN Test_EventsDependencies/non_existing_probe_function_with_sanity
logger.go:19: --- setting test logger ---
dependencies_test.go:146: --- started tracee ---
event_filters_test.go:2483: >>> running: cp /run/current-system/sw/bin/ls /tmp/ls
tracee.go:219: . waiting for at least 0 event(s) for 5s
tracee.go:226: . got 0 event(s) so far
tracee.go:228: . done waiting for 0 event(s)
event_filters_test.go:2483: >>> running: /tmp/ls
tracee.go:208: . waiting events collection for 1s
tracee.go:219: . waiting for at least 1 event(s) for 5s
tracee.go:226: . got 0 event(s) so far
tracee.go:226: . got 0 event(s) so far
tracee.go:226: . got 0 event(s) so far
tracee.go:226: . got 0 event(s) so far
tracee.go:226: . got 0 event(s) so far
tracee.go:232: . done waiting for 1 event(s)
dependencies_test.go:184: Test Test_EventsDependencies/non_existing_probe_function_with_sanity failed: timed out on waiting for 1 event(s)
logger.go:31: --- restoring default logger ---
dependencies_test.go:208: --- stopped tracee ---
=== NAME Test_EventsDependencies
dependencies_test.go:216: found unexpected goroutines:
[Goroutine 282 in state chan send, with github.com/aquasecurity/tracee/tests/testutils.TestLogs.func1 on top of the stack:
github.com/aquasecurity/tracee/tests/testutils.TestLogs.func1()
github.com/aquasecurity/tracee/tests/testutils/logger.go:118 +0x265
created by github.com/aquasecurity/tracee/tests/testutils.TestLogs in goroutine 281
github.com/aquasecurity/tracee/tests/testutils/logger.go:92 +0x157
Goroutine 349 in state chan send, with github.com/aquasecurity/tracee/tests/testutils.TestLogs.func1 on top of the stack:
github.com/aquasecurity/tracee/tests/testutils.TestLogs.func1()
github.com/aquasecurity/tracee/tests/testutils/logger.go:118 +0x265
created by github.com/aquasecurity/tracee/tests/testutils.TestLogs in goroutine 348
github.com/aquasecurity/tracee/tests/testutils/logger.go:92 +0x157
Goroutine 416 in state chan send, with github.com/aquasecurity/tracee/tests/testutils.TestLogs.func1 on top of the stack:
github.com/aquasecurity/tracee/tests/testutils.TestLogs.func1()
github.com/aquasecurity/tracee/tests/testutils/logger.go:118 +0x265
created by github.com/aquasecurity/tracee/tests/testutils.TestLogs in goroutine 415
github.com/aquasecurity/tracee/tests/testutils/logger.go:92 +0x157
]
do you know what could cause these tests to timeout? I am using the libbpf already packaged in nixpkgs instead of the one in the repo and NixOS doesn't have the same FHS as Ubuntu but other than that there should be no difference.
The following tests are failing, mostly due to timeouts:
"Test_EventFilters/comm:_event:_data:_trace_event_magic_write_set_in_multiple_policies_using_multiple_filter_types"
"Test_EventFilters/comm:_event:_data:_trace_event_security_file_open_and_magic_write_using_multiple_filter_types"
"Test_EventFilters/comm:_event:_data:_trace_event_security_file_open_and_magic_write_using_multiple_filter_types_combined"
"Test_EventFilters/comm:_event:_data:_trace_event_security_file_open_set_in_multiple_policies_\\(with_and_without_in-kernel_filter\\)"
"Test_EventFilters/comm:_event:_data:_trace_event_security_file_open_set_in_multiple_policies_using_multiple_filter_types"
"Test_EventFilters/comm:_event:_data:_trace_event_set_in_a_specific_policy_with_data_from_ls_command"
"Test_EventFilters/comm:_event:_trace_events_set_in_two_specific_policies_from_ls_and_uname_commands"
"Test_EventFilters/pid:_event:_data:_trace_event_sched_switch_with_data_from_pid_0"
"Test_EventsDependencies/non_existing_ksymbol_dependency_with_sanity"
"Test_EventsDependencies/non_existing_probe_function_with_sanity"
"Test_EventsDependencies/sanity_of_exec_test_event"
"Test_TraceeCapture/capture_packet_context"
Output of tracee version
:
[root@machine:~]# /nix/store/2pvmmgvbmqlncv3ar02wr74810lvkvbk-tracee-0.23.1/bin/tracee version
Tracee version: v0.23.1
Output of uname -a
:
[root@machine:~]# uname -a
Linux machine 6.12.28 #1-NixOS SMP PREEMPT_DYNAMIC Fri May 9 07:50:53 UTC 2025 x86_64 GNU/Linux