-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
[CI] CronEvalToolTests testEnsureDateIsShownInRootLocale sometimes fails #35687
Comments
Pinging @elastic/es-core-infra |
Test is muted in master in 2ee25c8 |
I was able to reproduce this via Eclipse only (it seems gradle won't let me pass the same in the command line) by passing
Not sure how would this scenario reach this stage so that the comparison fails... somehow @spinscale @rjernst my investigation above does sound right to you? Is it worth changing the test to use the same approach for local timezone - UTC comparison as CronEvalTool? |
Reproduceable with gradle command: |
@astefan @spinscale when using java-time
|
The test is now expected to be always passing no matter what the random locale is. This is fixed with using jdk ZoneId.systemDefault() in both the test and CronEvalTool closes elastic#35687
The test is now expected to be always passing no matter what the random locale is. This is fixed with using jdk ZoneId.systemDefault() in both the test and CronEvalTool closes #35687
CronEvalToolTests testEnsureDateIsShownInRootLocale
sometimes fails. An example is https://elasticsearch-ci.elastic.co/job/elastic+elasticsearch+master+matrix-java-periodic/ES_BUILD_JAVA=java11,ES_RUNTIME_JAVA=java11,nodes=virtual&&linux/67/consoleTextThe exception is:
The
, local time is
bit is missing.This did not reproduce locally for me:
The text was updated successfully, but these errors were encountered: