-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
infoschema: improve test stability in other timezones #20704
Conversation
/run-all-tests |
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.
LGTM
LGTM |
/merge |
/run-all-tests |
@nullnotnil merge failed. |
/run-integration-compatibility-test |
/merge |
Your auto merge job has been accepted, waiting for:
|
/run-all-tests |
@nullnotnil merge failed. |
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.
LGTM
/run-check_dev_2 |
/merge |
/run-all-tests |
What problem does this PR solve?
This improves stability of information_schema tests when run in Timezones outside of China.
Problem Summary:
The type of
cluster_slow_query.Time
is a timestamp, which has the semantics of converting from the current timestamp to UTC before comparing to the value in storage. The test-suite previously did not explicitly set the timestamp, which lead to an ambiguous comparision:I have seen this fail inconsistently (i.e. it's only flaky: not a failing test). I think the reason might be because the test-suite runs in parallel. See
TestSlowQuery()
which sets the timezone for consistency, butTestSelectClusterTable()
does not.This instability was introduced in #19938
What is changed and how it works?
What's Changed:
Improvements to test stability.
Related changes
Check List
Tests
Side effects
Release note