Skip to content

[CI] Occasional failures WatchStatusIntegrationTests#testThatStatusGetsUpdated #38619

@cbuescher

Description

@cbuescher

I got this failure locally on master, it reproduces after a few iterations with:

./gradlew :x-pack:plugin:watcher:unitTest -Dtests.seed=A92DF59B55106F76 -Dtests.class=org.elasticsearch.xpack.watcher.watch.WatchStatusIntegrationTests -Dtests.method="testThatStatusGetsUpdated" -Dtests.security.manager=true -Dtests.locale=en-BW -Dtests.timezone=SystemV/YST9 -Dcompiler.java=11 -Druntime.java=11

The error is:

FAILURE 4.67s | WatchStatusIntegrationTests.testThatStatusGetsUpdated <<< FAILURES!
   > Throwable #1: java.lang.AssertionError:
   > Expected: is "2019-02-08T12:25:25.22141Z"
   >      but: was "2019-02-08T12:25:25.221410Z"
   >    at __randomizedtesting.SeedInfo.seed([A92DF59B55106F76:E51670CD660E2260]:0)
   >    at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
   >    at org.elasticsearch.xpack.watcher.watch.WatchStatusIntegrationTests.testThatStatusGetsUpdated(WatchStatusIntegrationTests.java:49)
   >    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   >    at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
   >    at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   >    at java.base/java.lang.reflect.Method.invoke(Method.java:566)
   >    at java.base/java.lang.Thread.run(Thread.java:834)

This looks like another of the cases where the new java time formatting swallows trailing zeros. @pgomulka could you take a look, I remember reviewing #38505 which looked similar.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions