Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fork_test: remove pid export filter #2831

Merged
merged 1 commit into from
Aug 27, 2024
Merged

Conversation

kkourt
Copy link
Contributor

@kkourt kkourt commented Aug 22, 2024

As described in issue 2691, TestFork has been flaky. The way this test works is that a child is forked, which then forks a second chlid, which exits and we are looking for the exit event of the second child.

My best guess on why the flake happens is that the pid filtering filters out the second exit event. This can happen, for example, if the pid cache of the pid filter has not yet seen an event with a known parent.

So if the exit event of the second child comes before the exit event of the first chilid, then the first child's pid will not be in the cache when we get the second child exit and the event will be filtered out.

Based on the above reasoning, this commit removes the pid filter for the test.

Fixes: #2691

As described in issue 2691, TestForm has been flaky. The way this test
works is that a child is forked, which then forks a second chlid, which
exits and we are looking for the exit event of the second child.

My best guess on why the flake happens is that the pid filtering
filters out the second exit event. This can happen, for example, if the
pid cache of the pid filter has not yet seen an event with a known
parent.

So if the exit event of the second child comes before the exit event of
the first chilid, then the first child's pid will not be in the cache
when we get the second child exit and the event will be filtered out.

Based on the above reasoning, this commit removes the pid filter for the
test.

Signed-off-by: Kornilios Kourtis <[email protected]>
@kkourt kkourt added the release-note/ci This PR makes changes to the CI. label Aug 22, 2024
@kkourt kkourt requested a review from a team as a code owner August 22, 2024 10:15
@kkourt kkourt requested a review from kevsecurity August 22, 2024 10:15
@kkourt kkourt merged commit 7c233df into main Aug 27, 2024
42 checks passed
@kkourt kkourt deleted the pr/kkourt/fix-fork-test-flake branch August 27, 2024 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

tests: pkg.sensors.exec.TestFork is flaky
2 participants