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 test: Chrome UI Functional Tests.test/functional/apps/discover/_field_data·js - discover app discover tab field data search php should show the correct hit count #78689

Closed
kibanamachine opened this issue Sep 28, 2020 · 11 comments · Fixed by #80670 or #82991
Labels
blocker failed-test A test failure on a tracked branch, potentially flaky-test Feature:Discover Discover Application skipped-test Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.10.0

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Sep 28, 2020

A test failed on a tracked branch

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="discoverQueryHits"])
Wait timed out after 10009ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (test/common/services/retry/retry_for_success.ts:68:13)

First failure: Jenkins Build

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Sep 28, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-test-triage (failed-test)

@flash1293 flash1293 added the Team:Visualizations Visualization editors, elastic-charts and infrastructure label Sep 29, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@flash1293 flash1293 added the Feature:Discover Discover Application label Sep 29, 2020
@kertal
Copy link
Member

kertal commented Sep 30, 2020

hmm, another one of those Error loading data errors 🤔 image

@kertal
Copy link
Member

kertal commented Oct 5, 2020

Here's now a better error message:

image

However it makes no sense, how could a field that normally works be suddenly invalid for use with the "Date histogram" aggregation, don't think this is an issue of the test but there might be some underlying problem, since several tests seem to have the same message in a flaky way CC: @elastic/kibana-app-arch

@kertal
Copy link
Member

kertal commented Oct 5, 2020

seems it starts to fail just when navigating to Discover before even starting to test

debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[16:22:58]               │ info [o.e.c.m.MetadataMappingService] [worker-c07ld3e5dwym.build.macstadium.elasticnet.co] [.kibana_2/43sPH01hRxGzAKf6aHSZXg] update_mapping [_doc]
[16:22:59]               │ debg replacing kibana config doc: {"defaultIndex":"logstash-*"}
[16:23:00]               │ debg navigating to discover url: http://localhost:5620/app/discover#/
[16:23:00]               │ debg navigate to: http://localhost:5620/app/discover#/
[16:23:00]               │ debg browser[INFO] http://localhost:5620/app/discover?_t=1601835361555#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[16:23:00]               │
[16:23:00]               │ debg browser[INFO] http://localhost:5620/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[16:23:00]               │ debg ... sleep(700) start
[16:23:01]               │ debg ... sleep(700) end
[16:23:01]               │ debg returned from get, calling refresh
[16:23:01]               │ debg currentUrl = http://localhost:5620/app/discover#/
[16:23:01]               │          appUrl = http://localhost:5620/app/discover#/
[16:23:01]               │ debg TestSubjects.find(kibanaChrome)
[16:23:01]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[16:23:02]               │ debg browser[INFO] http://localhost:5620/app/discover?_t=1601835361555#/ 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[16:23:02]               │
[16:23:02]               │ debg browser[INFO] http://localhost:5620/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[16:23:02]               │ debg ... sleep(501) start
[16:23:02]               │ debg browser[INFO] http://localhost:5620/35411/bundles/core/core.entry.js 40:233045 "Detected an unhandled Promise rejection.
[16:23:02]               │      Error: Saved field \"@timestamp\" is invalid for use with the \"Date Histogram\" aggregation. Please select a new field."
[16:23:02]               │ERROR browser[SEVERE] http://localhost:5620/35411/bundles/plugin/data/data.plugin.js 5:526255 Uncaught Error: Saved field "@timestamp" is invalid for use with t…istogram" aggregation. Please select a new field.
[16:23:03]               │ debg ... sleep(501) end
``

spalger added a commit that referenced this issue Oct 7, 2020
spalger added a commit that referenced this issue Oct 7, 2020
(cherry picked from commit 1062957)
@spalger
Copy link
Contributor

spalger commented Oct 7, 2020

This has failed 13 times in PRs over the last week

image

Skipped

master: 1062957
7.x/7.11: ec74660
7.10: df5af4e

gmmorris added a commit to gmmorris/kibana that referenced this issue Oct 8, 2020
* master: (217 commits)
  Fix dashboard "snapshot share" is not sharing panel state in view mode (elastic#79837)
  fix can't edit a scripted field with special char (elastic#79842)
  [ML] clear selection action (elastic#79834)
  [TSVB] Show tooltip on external pointer events (elastic#77306)
  Fixes bug where the same index was being passed in (elastic#79949)
  Adds date time query and return fields for timestamps and overrides (elastic#79911)
  [Security Solution][Detections] Reverts rules table tag filter to use AND operator (elastic#79920)
  add the correct class to truncate the names (elastic#79921)
  [kbn/optimizer] report limits with ci metrics (elastic#78205)
  [release notes] extract "dev docs" comment too (elastic#79351)
  Revert "skips test failing promotion (elastic#79777)" (elastic#79904)
  share tslib across bundles (elastic#79915)
  remove entire suite as partial skips aren't doing the trick
  skip flaky suite (elastic#78689)
  Skip failing suite (elastic#79522)
  skip flaky suite (elastic#79910)
  [es/mappings] remove doc_values from text fields (elastic#79869)
  remove skipped snapshots
  skip flaky tests (elastic#79891)
  chore(NA): add missing branches into backportrc configuration file (elastic#79848)
  ...
@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

@spalger spalger added v7.10.0 and removed v7.11.0 labels Oct 14, 2020
spalger added a commit that referenced this issue Oct 14, 2020
(cherry picked from commit 1062957)
@kibanamachine kibanamachine reopened this Oct 18, 2020
@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

@kibanamachine
Copy link
Contributor Author

New failure: Jenkins Build

spalger added a commit that referenced this issue Oct 21, 2020
spalger added a commit that referenced this issue Oct 21, 2020
(cherry picked from commit f4eb447)
spalger added a commit that referenced this issue Oct 21, 2020
(cherry picked from commit f4eb447)
@spalger
Copy link
Contributor

spalger commented Oct 21, 2020

11 failures in the last week across master, 7.x, 7.10, and PRs

image

Skipped

master: f4eb447
7.x/7.11: d631576
7.10: 6701ace

gmmorris added a commit to gmmorris/kibana that referenced this issue Oct 22, 2020
* master: (63 commits)
  [KP] Fix Headers timeout issue (elastic#81140)
  [ML] Functional tests - stabilize typing with checks service method (elastic#81338)
  tabify - support docs (elastic#80351)
  [Security Solution][Detections] Look-back time logic fix (elastic#81383)
  [Workplace Search] Add top-level tests for Groups (elastic#81215)
  [Fleet] Fix agent action observable for long polling (elastic#81376)
  [Maps] fix feature tooltip remains open when zoom level change hides layer (elastic#81373)
  skip flaky suite (elastic#78689)
  chore(NA): add spec-to-console and plugin-helpers as devOnly dependencies (elastic#81357)
  Ensure some data is returned (elastic#81375)
  Change dumb-init to tini (elastic#81126)
  [Reporting/Tech Debt] Convert PdfMaker class to TypeScript (elastic#81242)
  Use Storybook Controls instead of Knobs (elastic#80705)
  [junit] make sure that report paths are unique (elastic#81255)
  bump elastic/elasticsearch-js version to 7.10.0-rc1 (elastic#81288)
  run ssl tests on CI (elastic#81320)
  Fix alert defaults (elastic#81207)
  [ML] DF Analytics wizard: ensure user can set mml manually or select to use given estimate (elastic#81078)
  Add UI notifier to indicate secret fields and to remember / reenter values (elastic#80657)
  [Monitoring] Use async/await (elastic#81200)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocker failed-test A test failure on a tracked branch, potentially flaky-test Feature:Discover Discover Application skipped-test Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.10.0
Projects
None yet
6 participants