Skip to content

[CI] CronEvalToolTests testEnsureDateIsShownInRootLocale sometimes fails #35687

@droberts195

Description

@droberts195

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/consoleText

The exception is:

   > Throwable #1: java.lang.AssertionError: 
   > Expected: a string containing "] in UTC, local time is"
   >      but: was "Valid!
   > Now is [Mon, 19 Nov 2018 05:20:04] in UTC
   > Here are the next 1 times this cron expression will trigger:
   > 1.	Mon, 2 Jan 2040 11:00:00
   > "

The , local time is bit is missing.

This did not reproduce locally for me:

./gradlew :x-pack:plugin:watcher:test \
  -Dtests.seed=204FA128FA77A81C \
  -Dtests.class=org.elasticsearch.xpack.watcher.trigger.schedule.tool.CronEvalToolTests \
  -Dtests.method="testEnsureDateIsShownInRootLocale" \
  -Dtests.security.manager=true \
  -Dtests.locale=ar-SS \
  -Dtests.timezone=Asia/Seoul \
  -Dcompiler.java=11 \
  -Druntime.java=11

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions