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

test: Relax boot timer check in TestServices.testTimerSession #19522

Merged
merged 1 commit into from
Oct 24, 2023

Conversation

martinpitt
Copy link
Member

@martinpitt martinpitt commented Oct 24, 2023

Stop pretending that we can accurately predict the next OnBoot timer in TestServices.testTimerSession. It is very much not "now + 200 minutes", but "200 minutes after the current VM booted" (which may be long-running in Testing Farm or our CI machinery). As this is a neverending race condition in evenings, and we don't test the accuracy of systemd here, relax the check to just ensure that it happens today or tomorrow.


Fixes flakes like this or this

Stop predenting that we can accurately predict the next `OnBoot` timer
in TestServices.testTimerSession. It is very much *not* "now + 200
minutes", but "200 minutes after the current VM booted" (which may be
long-running in Testing Farm or our CI machinery). As this is a
neverending race condition in evenings, and we don't test the accuracy
of systemd here, relax the check to just ensure that it happens today or
tomorrow.
@martinpitt martinpitt added release-blocker Targetted for next release flake unstable test labels Oct 24, 2023
@martinpitt martinpitt merged commit 2f149fd into cockpit-project:main Oct 24, 2023
102 checks passed
@martinpitt martinpitt deleted the timer-race branch October 24, 2023 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flake unstable test release-blocker Targetted for next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants