Skip to content
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

Failing ES Promotion: management scripted fields creating and using Painless date scripted fields should see scripted field value in Discover #113745

Closed
mistic opened this issue Oct 4, 2021 · 6 comments · Fixed by #114224
Assignees
Labels
blocker failed-es-promotion skipped-test Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. v8.0.0

Comments

@mistic
Copy link
Member

mistic commented Oct 4, 2021

This failure is preventing the promotion of the current Elasticsearch nightly snapshot.

For more information on the Elasticsearch snapshot promotion process including how to reproduce using the unverified nightly ES build: https://www.elastic.co/guide/en/kibana/master/development-es-snapshots.html

CI failure logs: https://buildkite.com/elastic/kibana-elasticsearch-snapshot-verify/builds/202#94903184-1b67-445e-acfe-453d6537b2ce

│1)    management
--
  | │
  | │         scripted fields
  | │           creating and using Painless date scripted fields
  | │             should see scripted field value in Discover:
  | │
  | │      Error: Timeout of 360000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/var/lib/buildkite-agent/builds/kb-cigroup-4d-c570666d31b585e4/elastic/kibana-elasticsearch-snapshot-verify/kibana/test/functional/apps/management/_scripted_fields.js)
  | │       at listOnTimeout (internal/timers.js:557:17)
  | │       at processTimers (internal/timers.js:500:7)
@mistic mistic added blocker v8.0.0 skipped-test failed-es-promotion Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. labels Oct 4, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-data-discovery (Team:DataDiscovery)

@mistic
Copy link
Member Author

mistic commented Oct 4, 2021

Skipped.

master/8.0: fefc34e

@majagrubic majagrubic self-assigned this Oct 5, 2021
@majagrubic
Copy link
Contributor

Managed to reproduce the test failure

@majagrubic
Copy link
Contributor

Error message:
Screenshot 2021-10-06 at 10 21 31

@majagrubic
Copy link
Contributor

majagrubic commented Oct 6, 2021

According to the docs, getMillis indeed doesn't exist in ZonedDateTime java package:
https://docs.oracle.com/javase/8/docs/api/java/time/ZonedDateTime.html

According to Painless docs, this should be read from java.time.Clock package.

I would pass this on to Painless team for further investigation.

@majagrubic
Copy link
Contributor

The fix is merged into master. Just to be clear - this does not need to be backported to 7.x?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker failed-es-promotion skipped-test Team:DataDiscovery Discover, search (e.g. data plugin and KQL), data views, saved searches. For ES|QL, use Team:ES|QL. v8.0.0
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants