-
Notifications
You must be signed in to change notification settings - Fork 589
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
tests: ensure chrony syncs time before tests #14888
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #14888 +/- ##
==========================================
+ Coverage 78.20% 78.30% +0.10%
==========================================
Files 1151 1153 +2
Lines 151396 152626 +1230
==========================================
+ Hits 118402 119517 +1115
- Misses 25662 25743 +81
- Partials 7332 7366 +34
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This fixes tests running on 16.04 that rely on forcing auto-refreshes. These were failing because 16.04 uses chrony which wasn't being run. Since the auto-refresh manager waits for an NTP sync (times out after a while but too late for testing purposes), the auto-refreshes were never triggered and the tests failed. ``` - google:ubuntu-16.04-64:tests/main/auto-refresh-backoff - google:ubuntu-16.04-64:tests/main/auto-refresh-gating-from-snap - google:ubuntu-16.04-64:tests/main/auto-refresh-pre-download:close - google:ubuntu-16.04-64:tests/main/auto-refresh-pre-download:close_mid_restart - google:ubuntu-16.04-64:tests/main/auto-refresh-pre-download:ignore - google:ubuntu-16.04-64:tests/main/auto-refresh-retry - google:ubuntu-16.04-64:tests/main/auto-refresh:regular - google:ubuntu-16.04-64:tests/main/snap-refresh-hold - google:ubuntu-16.04-64:tests/main/snapd-state ``` Signed-off-by: Miguel Pires <[email protected]>
35f2de7
to
4222189
Compare
While investigating a different spread failure, I got some for information about the root cause of this issue. This might be replaced by another PR that fixes other tests as well, marking as Blocked for now |
replaced by #14905 |
This fixes tests running on 16.04 that rely on forcing auto-refreshes. These were failing because on Xenial chrony would sometimes exit without synchronizing time (unsure why at the moment). Since the auto-refresh manager waits for an NTP sync (times out after a while but too late for testing purposes), the auto-refreshes were never triggered and the tests failed.