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

ProcessCache: Disable interval test in VM #3179

Merged

Conversation

kevsecurity
Copy link
Contributor

The TestProcessCacheInterval test is flaky in VMs, probably because it relies on timing. This commit disables the test in the vmtests.

The TestProcessCacheInterval test is flaky in VMs, probably because it
relies on timing. This commit disables the test in the vmtests.

Signed-off-by: Kevin Sheldrake <[email protected]>
@kevsecurity kevsecurity added the release-note/misc This PR makes changes that have no direct user impact. label Dec 3, 2024
Copy link
Contributor

@kkourt kkourt left a comment

Choose a reason for hiding this comment

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

lgtm, thanks!

@kevsecurity kevsecurity marked this pull request as ready for review December 3, 2024 10:42
@kevsecurity kevsecurity requested a review from a team as a code owner December 3, 2024 10:42
@kevsecurity kevsecurity requested a review from mtardy December 3, 2024 10:42
@kevsecurity kevsecurity merged commit 2aaea0f into main Dec 3, 2024
41 checks passed
@kevsecurity kevsecurity deleted the pr/kevsecurity/disable-process-cache-interval-test branch December 3, 2024 11:18
@mtardy
Copy link
Member

mtardy commented Dec 9, 2024

These tests seem flaky in general. Can we make them better/remove them? https://github.com/cilium/tetragon/actions/runs/12203108081/job/34045336907?pr=3176#step:9:160

@kevsecurity
Copy link
Contributor Author

These tests seem flaky in general. Can we make them better/remove them? https://github.com/cilium/tetragon/actions/runs/12203108081/job/34045336907?pr=3176#step:9:160

I'm open to ideas of how we test timing-related functionality, without waiting with sleeps which are inherently flaky on cloud runners and especially in VMs. Simulating the delay by running the ticker function isn't the same as the normal order of events and doesn't check that the ticker is actually working. But testing a ticker is flaky when timing is flaky.

@kkourt kkourt mentioned this pull request Jan 30, 2025
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants