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

hive: Make timer job test less flaky #25308

Merged

Conversation

jrajahalme
Copy link
Member

@jrajahalme jrajahalme commented May 8, 2023

job_test.go would typically fail on local test runs on Linux on arm64 VM
on a Mac. Fix this by not trying to assert the observed timer intervals,
but just make sure the timer function is called repeatedly so that we
catch regressions of timer not functioning at all.

@jrajahalme jrajahalme added area/CI Continuous Integration testing issue or flake release-note/misc This PR makes changes that have no direct user impact. labels May 8, 2023
@jrajahalme jrajahalme requested a review from a team as a code owner May 8, 2023 07:58
@jrajahalme jrajahalme requested a review from giorio94 May 8, 2023 07:58
@jrajahalme jrajahalme force-pushed the hive-timer-job-test-less-flaky branch from 9f87d7f to d019f16 Compare May 8, 2023 08:26
pkg/hive/job/job_test.go Show resolved Hide resolved
@jrajahalme jrajahalme force-pushed the hive-timer-job-test-less-flaky branch from d019f16 to d86d125 Compare May 8, 2023 10:37
job_test.go would typically fail on local test runs on Linux on arm64 VM
on a Mac. Fix this by not trying to assert the observed timer intervals,
but just make sure the timer function is called repeatedly so that we
catch regressions of timer not functioning at all.

Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
@jrajahalme jrajahalme force-pushed the hive-timer-job-test-less-flaky branch from d86d125 to 8050476 Compare May 8, 2023 10:38
@jrajahalme
Copy link
Member Author

/test

@maintainer-s-little-helper maintainer-s-little-helper bot added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label May 8, 2023
@michi-covalent michi-covalent merged commit 4fd6ac7 into cilium:main May 9, 2023
57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake ready-to-merge This PR has passed all tests and received consensus from code owners to merge. 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.

None yet

4 participants