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

[7.x] [Metrics UI] Minor fixes to inventory timeline (#78226) #78339

Merged
merged 1 commit into from
Sep 23, 2020

Conversation

Zacqary
Copy link
Contributor

@Zacqary Zacqary commented Sep 23, 2020

Backports the following commits to 7.x:

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Chrome UI Functional Tests.test/functional/apps/discover/_inspector·js.discover app inspect should display request stats with no results

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 2 times on tracked branches: https://github.com/elastic/kibana/issues/39842

[00:00:00]       │
[00:00:00]         └-: discover app
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:19:00]           └-: inspect
[00:19:00]             └-> "before all" hook
[00:19:00]             └-> "before all" hook
[00:19:00]               │ info [logstash_functional] Loading "mappings.json"
[00:19:00]               │ info [logstash_functional] Loading "data.json.gz"
[00:19:00]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:19:00]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:19:00]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:19:02]               │ info [discover] Loading "mappings.json"
[00:19:02]               │ info [discover] Loading "data.json.gz"
[00:19:02]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600887803231600537] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:19:02]               │ info [discover] Created index ".kibana"
[00:19:02]               │ debg [discover] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:19:02]               │ info [discover] Indexed 2 docs into ".kibana"
[00:19:02]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600887803231600537] [.kibana/LGFAWU_1Q6OwfQxRXmb2Ow] update_mapping [_doc]
[00:19:02]               │ debg Migrating saved objects
[00:19:02]               │ proc [kibana]   log   [19:40:46.918] [info][savedobjects-service] Creating index .kibana_2.
[00:19:02]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600887803231600537] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:19:02]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600887803231600537] updating number_of_replicas to [0] for indices [.kibana_2]
[00:19:02]               │ proc [kibana]   log   [19:40:46.961] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:19:02]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600887803231600537] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:19:02]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600887803231600537] updating number_of_replicas to [0] for indices [.kibana_1]
[00:19:02]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600887803231600537] 8590 finished with response BulkByScrollResponse[took=16.5ms,timed_out=false,sliceId=null,updated=0,created=2,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:19:02]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600887803231600537] [.kibana/LGFAWU_1Q6OwfQxRXmb2Ow] deleting index
[00:19:02]               │ proc [kibana]   log   [19:40:47.283] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:19:02]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600887803231600537] [.kibana_2/oF6Y8ZY0SImV3W1VOKmesw] update_mapping [_doc]
[00:19:02]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600887803231600537] [.kibana_2/oF6Y8ZY0SImV3W1VOKmesw] update_mapping [_doc]
[00:19:02]               │ proc [kibana]   log   [19:40:47.337] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:19:02]               │ proc [kibana]   log   [19:40:47.363] [info][savedobjects-service] Finished in 446ms.
[00:19:02]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:19:02]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1600887803231600537] [.kibana_2/oF6Y8ZY0SImV3W1VOKmesw] update_mapping [_doc]
[00:19:04]               │ debg replacing kibana config doc: {"defaultIndex":"logstash-*"}
[00:19:05]               │ debg navigating to discover url: http://localhost:61201/app/discover#/
[00:19:05]               │ debg navigate to: http://localhost:61201/app/discover#/
[00:19:05]               │ debg ... sleep(700) start
[00:19:05]               │ debg browser[INFO] http://localhost:61201/app/discover?_t=1600890049967#/ 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.
[00:19:05]               │
[00:19:05]               │ debg browser[INFO] http://localhost:61201/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:19:06]               │ debg ... sleep(700) end
[00:19:06]               │ debg returned from get, calling refresh
[00:19:06]               │ debg browser[INFO] http://localhost:61201/app/discover?_t=1600890049967#/ 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.
[00:19:06]               │
[00:19:06]               │ debg browser[INFO] http://localhost:61201/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:19:06]               │ debg currentUrl = http://localhost:61201/app/discover#/
[00:19:06]               │          appUrl = http://localhost:61201/app/discover#/
[00:19:06]               │ debg TestSubjects.find(kibanaChrome)
[00:19:06]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:19:07]               │ debg ... sleep(501) start
[00:19:07]               │ debg browser[INFO] http://localhost:61201/35050/bundles/core/core.entry.js 97:272211 "Detected an unhandled Promise rejection.
[00:19:07]               │      Error: Saved \"field\" parameter is now invalid. Please select a new field."
[00:19:07]               │ERROR browser[SEVERE] http://localhost:61201/35050/bundles/plugin/data/data.plugin.js 13:52039 Uncaught Error: Saved "field" parameter is now invalid. Please select a new field.
[00:19:07]               │ debg ... sleep(501) end
[00:19:07]               │ debg in navigateTo url = http://localhost:61201/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:19:07]               │ debg --- retry.try error: URL changed, waiting for it to settle
[00:19:08]               │ debg ... sleep(501) start
[00:19:08]               │ debg ... sleep(501) end
[00:19:08]               │ debg in navigateTo url = http://localhost:61201/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:19:08]               │ debg TestSubjects.exists(statusPageContainer)
[00:19:08]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:19:11]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:19:11]             └-> should display request stats with no results
[00:19:11]               └-> "before each" hook: global before each
[00:19:11]               │ debg Inspector.open
[00:19:11]               │ debg TestSubjects.exists(inspectorPanel)
[00:19:11]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:19:14]               │ debg --- retry.tryForTime error: [data-test-subj="inspectorPanel"] is not displayed
[00:19:15]               │ debg TestSubjects.click(openInspectorButton)
[00:19:15]               │ debg Find.clickByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:19:15]               │ debg Find.findByCssSelector('[data-test-subj="openInspectorButton"]') with timeout=10000
[00:19:15]               │ debg TestSubjects.exists(inspectorPanel)
[00:19:15]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=2500
[00:19:15]               │ debg TestSubjects.find(inspectorPanel)
[00:19:15]               │ debg Find.findByCssSelector('[data-test-subj="inspectorPanel"]') with timeout=10000
[00:19:25]               │ debg --- retry.try error: no such element: Unable to locate element: {"method":"css selector","selector":"tbody"}
[00:19:25]               │        (Session info: headless chrome=84.0.4147.135)
[00:19:35]               │ debg --- retry.try failed again with the same message...
[00:19:46]               │ debg --- retry.try failed again with the same message...
[00:19:56]               │ debg --- retry.try failed again with the same message...
[00:20:07]               │ debg --- retry.try failed again with the same message...
[00:20:17]               │ debg --- retry.try failed again with the same message...
[00:20:28]               │ debg --- retry.try failed again with the same message...
[00:20:39]               │ debg --- retry.try failed again with the same message...
[00:20:49]               │ debg --- retry.try failed again with the same message...
[00:21:00]               │ debg --- retry.try failed again with the same message...
[00:21:10]               │ debg --- retry.try failed again with the same message...
[00:21:21]               │ debg --- retry.try failed again with the same message...
[00:21:21]               │ info Taking screenshot "/dev/shm/workspace/parallel/20/kibana/test/functional/screenshots/failure/discover app inspect should display request stats with no results.png"
[00:21:21]               │ info Current URL is: http://localhost:61201/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:21:21]               │ info Saving page source to: /dev/shm/workspace/parallel/20/kibana/test/functional/failure_debug/html/discover app inspect should display request stats with no results.html
[00:21:21]               └- ✖ fail: discover app inspect should display request stats with no results
[00:21:21]               │      Error: retry.try timeout: NoSuchElementError: no such element: Unable to locate element: {"method":"css selector","selector":"tbody"}
[00:21:21]               │   (Session info: headless chrome=84.0.4147.135)
[00:21:21]               │     at Object.throwDecodedError (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/error.js:550:15)
[00:21:21]               │     at parseHttpResponse (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:565:13)
[00:21:21]               │     at Executor.execute (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:491:26)
[00:21:21]               │     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:21:21]               │       at onFailure (test/common/services/retry/retry_for_success.ts:28:9)
[00:21:21]               │       at retryForSuccess (test/common/services/retry/retry_for_success.ts:68:13)
[00:21:21]               │ 
[00:21:21]               │ 

Stack Trace

Error: retry.try timeout: NoSuchElementError: no such element: Unable to locate element: {"method":"css selector","selector":"tbody"}
  (Session info: headless chrome=84.0.4147.135)
    at Object.throwDecodedError (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/error.js:550:15)
    at parseHttpResponse (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:565:13)
    at Executor.execute (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:491:26)
    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)

Build metrics

async chunks size

id value diff baseline
infra 3.9MB +384.0B 3.9MB

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@Zacqary Zacqary merged commit 3b75b1b into elastic:7.x Sep 23, 2020
@Zacqary Zacqary deleted the backport/7.x/pr-78226 branch September 23, 2020 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants