cilium / tetragon

eBPF-based Security Observability and Runtime Enforcement
https://tetragon.io
Apache License 2.0
3.66k stars 369 forks source link

[fork_test.go:55] Return error <nil> #3148

Open ScriptSathi opened 1 day ago

ScriptSathi commented 1 day ago

What happened?

While running make test on a PR, the tests crashing at fork_test.go:55 with the following line

fork_test.go:55: command failed with exit status 1. Context error: <nil>

https://github.com/cilium/tetragon/blob/main/pkg/sensors/exec/fork_test.go#L55

This occurs because ctx.Err() is displayed before it is done.

Tetragon Version

git source

More logs

...  
  logcapture.go:25: time="2024-11-21T12:56:40+01:00" level=info msg="Listening for events..."
    cmd.go:100: stdout>: parent: (pid:86725, ppid:85754) starts
    cmd.go:100: stdout>: child 1 (pid:86726) exits
    cmd.go:100: stdout>: parent: (pid:86725, ppid:85754) starts
    cmd.go:100: stdout>: parent: (pid:86725) child (86726) exited with: 0
    cmd.go:100: stderr>: got an alarm, bailing out
    cmd.go:100: stderr>: giving up on waiting our parent to die
    cmd.go:100: stdout>: parent: (pid:86725, ppid:85754) starts
    fork_test.go:55: command failed with exit status 1. Context error: <nil>
    logcapture.go:25: time="2024-11-21T12:57:10+01:00" level=info msg="Listening for events completed." error="context canceled"
...