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

Deangularize Dashboard, but with Hooks #84913

Closed

Conversation

clintandrewhall
Copy link
Contributor

Summary

This is a Hooks-based approach to #82909 ... I had to merge the previous branch into a single commit to make the changes... hopefully this makes sense.

@kibanamachine
Copy link
Contributor

kibanamachine commented Dec 3, 2020

💔 Build Failed

Failed CI Steps


Test Failures

Chrome UI Functional Tests.test/functional/apps/dashboard/empty_dashboard·js.dashboard app using current data empty dashboard "before all" hook for "should display empty widget"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: dashboard app
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: using current data
[00:00:00]             └-> "before all" hook
[00:00:00]             └-> "before all" hook: loadCurrentData
[00:00:00]               │ info [logstash_functional] Unloading indices from "mappings.json"
[00:00:00]               │ info [logstash_functional] Unloading indices from "data.json.gz"
[00:00:03]               │ info [dashboard/current/data] Loading "mappings.json"
[00:00:03]               │ info [dashboard/current/data] Loading "data.json.gz"
[00:00:03]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [animals-dogs-2018-01-01] creating index, cause [api], templates [], shards [5]/[1]
[00:00:03]               │ info [dashboard/current/data] Created index "animals-dogs-2018-01-01"
[00:00:03]               │ debg [dashboard/current/data] "animals-dogs-2018-01-01" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:00:03]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [animals-dogs-2018-04-10] creating index, cause [api], templates [], shards [5]/[1]
[00:00:03]               │ info [dashboard/current/data] Created index "animals-dogs-2018-04-10"
[00:00:03]               │ debg [dashboard/current/data] "animals-dogs-2018-04-10" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:00:03]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [animals-cats-2018-01-01] creating index, cause [api], templates [], shards [5]/[1]
[00:00:04]               │ info [dashboard/current/data] Created index "animals-cats-2018-01-01"
[00:00:04]               │ debg [dashboard/current/data] "animals-cats-2018-01-01" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:00:04]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [animals-cats-2018-04-10] creating index, cause [api], templates [], shards [5]/[1]
[00:00:04]               │ info [dashboard/current/data] Created index "animals-cats-2018-04-10"
[00:00:04]               │ debg [dashboard/current/data] "animals-cats-2018-04-10" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:00:04]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [dogbreeds] creating index, cause [api], templates [], shards [5]/[1]
[00:00:05]               │ info [dashboard/current/data] Created index "dogbreeds"
[00:00:05]               │ debg [dashboard/current/data] "dogbreeds" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:00:05]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [logstash-0] creating index, cause [api], templates [], shards [1]/[0]
[00:00:05]               │ info [dashboard/current/data] Created index "logstash-0"
[00:00:05]               │ debg [dashboard/current/data] "logstash-0" settings {"index":{"analysis":{"analyzer":{"makelogs_url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:13]               │ info progress: 301
[00:00:23]               │ info progress: 3908
[00:00:33]               │ info progress: 7815
[00:00:43]               │ info progress: 12925
[00:00:44]               │ info [dashboard/current/data] Indexed 6 docs into "animals-dogs-2018-01-01"
[00:00:44]               │ info [dashboard/current/data] Indexed 6 docs into "animals-dogs-2018-04-10"
[00:00:44]               │ info [dashboard/current/data] Indexed 6 docs into "animals-cats-2018-01-01"
[00:00:44]               │ info [dashboard/current/data] Indexed 5 docs into "animals-cats-2018-04-10"
[00:00:44]               │ info [dashboard/current/data] Indexed 6 docs into "dogbreeds"
[00:00:44]               │ info [dashboard/current/data] Indexed 14005 docs into "logstash-0"
[00:00:46]             └-: empty dashboard
[00:00:46]               └-> "before all" hook
[00:00:46]               └-> "before all" hook
[00:00:46]                 │ info [dashboard/current/kibana] Loading "mappings.json"
[00:00:46]                 │ info [dashboard/current/kibana] Loading "data.json.gz"
[00:00:47]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_1/ACu1zLU5R3yKPay_ddOD4A] deleting index
[00:00:47]                 │ info [dashboard/current/kibana] Deleted existing index [".kibana_1"]
[00:00:47]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:00:47]                 │ info [dashboard/current/kibana] Created index ".kibana_1"
[00:00:47]                 │ debg [dashboard/current/kibana] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:00:47]                 │ info [dashboard/current/kibana] Indexed 143 docs into ".kibana_1"
[00:00:47]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_1/PdT-zmlXRj2DH0-_9TWnQg] update_mapping [_doc]
[00:00:47]                 │ debg Migrating saved objects
[00:00:48]                 │ proc [kibana]   log   [15:42:03.501] [info][savedobjects-service] Creating index .kibana_2.
[00:00:48]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:00:49]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:49]                 │ proc [kibana]   log   [15:42:03.971] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:49]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2/ABhCoBr9T9-iDEV-CzcO9A] update_mapping [_doc]
[00:00:50]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2/ABhCoBr9T9-iDEV-CzcO9A] update_mapping [_doc]
[00:00:50]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2/ABhCoBr9T9-iDEV-CzcO9A] update_mapping [_doc]
[00:00:50]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2/ABhCoBr9T9-iDEV-CzcO9A] update_mapping [_doc]
[00:00:50]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2/ABhCoBr9T9-iDEV-CzcO9A] update_mapping [_doc]
[00:00:51]                 │ proc [kibana]   log   [15:42:05.685] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:51]                 │ proc [kibana]   log   [15:42:05.868] [info][savedobjects-service] Finished in 2382ms.
[00:00:51]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:52]                 │ debg replacing kibana config doc: {"defaultIndex":"0bf35f60-3dc9-11e8-8660-4d65aa086b3c"}
[00:00:53]                 │ debg navigating to dashboard url: http://localhost:61121/app/dashboards#/list
[00:00:53]                 │ debg navigate to: http://localhost:61121/app/dashboards#/list
[00:00:54]                 │ debg browser[INFO] http://localhost:61121/app/dashboards?_t=1607010128318#/list 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:00:54]                 │
[00:00:54]                 │ debg browser[INFO] http://localhost:61121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:54]                 │ debg ... sleep(700) start
[00:00:54]                 │ debg ... sleep(700) end
[00:00:54]                 │ debg returned from get, calling refresh
[00:00:55]                 │ debg browser[INFO] http://localhost:61121/app/dashboards?_t=1607010128318#/list 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:00:55]                 │
[00:00:55]                 │ debg browser[INFO] http://localhost:61121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:55]                 │ debg currentUrl = http://localhost:61121/app/dashboards#/list
[00:00:55]                 │          appUrl = http://localhost:61121/app/dashboards#/list
[00:00:55]                 │ debg TestSubjects.find(kibanaChrome)
[00:00:55]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:58]                 │ debg ... sleep(501) start
[00:00:59]                 │ debg ... sleep(501) end
[00:00:59]                 │ debg in navigateTo url = http://localhost:61121/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:00:59]                 │ debg TestSubjects.exists(statusPageContainer)
[00:00:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:01:02]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:01:03]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:03]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:03]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:03]                 │ debg browser[INFO] http://localhost:61121/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now)) 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:01:03]                 │
[00:01:03]                 │ debg browser[INFO] http://localhost:61121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:05]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:05]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:05]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:05]                 │ debg TestSubjects.exists(newItemButton)
[00:01:05]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:01:05]                 │ debg TestSubjects.click(newItemButton)
[00:01:05]                 │ debg Find.clickByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:01:05]                 │ debg Find.findByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:01:06]                 │ debg waitForRenderComplete
[00:01:06]                 │ debg in getSharedItemsCount
[00:01:06]                 │ debg Find.findByCssSelector('[data-shared-items-count]') with timeout=10000
[00:01:16]                 │ info Taking screenshot "/dev/shm/workspace/parallel/12/kibana/test/functional/screenshots/failure/dashboard app using current data empty dashboard _before all_ hook.png"
[00:01:16]                 │ info Current URL is: http://localhost:61121/app/dashboards#/create
[00:01:16]                 │ info Saving page source to: /dev/shm/workspace/parallel/12/kibana/test/functional/failure_debug/html/dashboard app using current data empty dashboard _before all_ hook.html
[00:01:16]                 └- ✖ fail: dashboard app using current data empty dashboard "before all" hook for "should display empty widget"
[00:01:16]                 │      TimeoutError: Waiting for element to be located By(css selector, [data-shared-items-count])
[00:01:16]                 │ Wait timed out after 10060ms
[00:01:16]                 │       at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:01:16]                 │       at runMicrotasks (<anonymous>)
[00:01:16]                 │       at processTicksAndRejections (internal/process/task_queues.js:97:5)
[00:01:16]                 │ 
[00:01:16]                 │ 

Stack Trace

TimeoutError: Waiting for element to be located By(css selector, [data-shared-items-count])
Wait timed out after 10060ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  remoteStacktrace: ''
}

Chrome UI Functional Tests.test/functional/apps/dashboard/empty_dashboard·js.dashboard app using current data empty dashboard "after all" hook for "should add new visualization from dashboard"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: dashboard app
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: using current data
[00:00:00]             └-> "before all" hook
[00:00:00]             └-> "before all" hook: loadCurrentData
[00:00:00]               │ info [logstash_functional] Unloading indices from "mappings.json"
[00:00:00]               │ info [logstash_functional] Unloading indices from "data.json.gz"
[00:00:03]               │ info [dashboard/current/data] Loading "mappings.json"
[00:00:03]               │ info [dashboard/current/data] Loading "data.json.gz"
[00:00:03]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [animals-dogs-2018-01-01] creating index, cause [api], templates [], shards [5]/[1]
[00:00:03]               │ info [dashboard/current/data] Created index "animals-dogs-2018-01-01"
[00:00:03]               │ debg [dashboard/current/data] "animals-dogs-2018-01-01" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:00:03]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [animals-dogs-2018-04-10] creating index, cause [api], templates [], shards [5]/[1]
[00:00:03]               │ info [dashboard/current/data] Created index "animals-dogs-2018-04-10"
[00:00:03]               │ debg [dashboard/current/data] "animals-dogs-2018-04-10" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:00:03]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [animals-cats-2018-01-01] creating index, cause [api], templates [], shards [5]/[1]
[00:00:04]               │ info [dashboard/current/data] Created index "animals-cats-2018-01-01"
[00:00:04]               │ debg [dashboard/current/data] "animals-cats-2018-01-01" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:00:04]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [animals-cats-2018-04-10] creating index, cause [api], templates [], shards [5]/[1]
[00:00:04]               │ info [dashboard/current/data] Created index "animals-cats-2018-04-10"
[00:00:04]               │ debg [dashboard/current/data] "animals-cats-2018-04-10" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:00:04]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [dogbreeds] creating index, cause [api], templates [], shards [5]/[1]
[00:00:05]               │ info [dashboard/current/data] Created index "dogbreeds"
[00:00:05]               │ debg [dashboard/current/data] "dogbreeds" settings {"index":{"number_of_replicas":"1","number_of_shards":"5"}}
[00:00:05]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [logstash-0] creating index, cause [api], templates [], shards [1]/[0]
[00:00:05]               │ info [dashboard/current/data] Created index "logstash-0"
[00:00:05]               │ debg [dashboard/current/data] "logstash-0" settings {"index":{"analysis":{"analyzer":{"makelogs_url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:13]               │ info progress: 301
[00:00:23]               │ info progress: 3908
[00:00:33]               │ info progress: 7815
[00:00:43]               │ info progress: 12925
[00:00:44]               │ info [dashboard/current/data] Indexed 6 docs into "animals-dogs-2018-01-01"
[00:00:44]               │ info [dashboard/current/data] Indexed 6 docs into "animals-dogs-2018-04-10"
[00:00:44]               │ info [dashboard/current/data] Indexed 6 docs into "animals-cats-2018-01-01"
[00:00:44]               │ info [dashboard/current/data] Indexed 5 docs into "animals-cats-2018-04-10"
[00:00:44]               │ info [dashboard/current/data] Indexed 6 docs into "dogbreeds"
[00:00:44]               │ info [dashboard/current/data] Indexed 14005 docs into "logstash-0"
[00:00:46]             └-: empty dashboard
[00:00:46]               └-> "before all" hook
[00:00:46]               └-> "before all" hook
[00:00:46]                 │ info [dashboard/current/kibana] Loading "mappings.json"
[00:00:46]                 │ info [dashboard/current/kibana] Loading "data.json.gz"
[00:00:47]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_1/ACu1zLU5R3yKPay_ddOD4A] deleting index
[00:00:47]                 │ info [dashboard/current/kibana] Deleted existing index [".kibana_1"]
[00:00:47]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0]
[00:00:47]                 │ info [dashboard/current/kibana] Created index ".kibana_1"
[00:00:47]                 │ debg [dashboard/current/kibana] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:00:47]                 │ info [dashboard/current/kibana] Indexed 143 docs into ".kibana_1"
[00:00:47]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_1/PdT-zmlXRj2DH0-_9TWnQg] update_mapping [_doc]
[00:00:47]                 │ debg Migrating saved objects
[00:00:48]                 │ proc [kibana]   log   [15:42:03.501] [info][savedobjects-service] Creating index .kibana_2.
[00:00:48]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:00:49]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:49]                 │ proc [kibana]   log   [15:42:03.971] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:49]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2/ABhCoBr9T9-iDEV-CzcO9A] update_mapping [_doc]
[00:00:50]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2/ABhCoBr9T9-iDEV-CzcO9A] update_mapping [_doc]
[00:00:50]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2/ABhCoBr9T9-iDEV-CzcO9A] update_mapping [_doc]
[00:00:50]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2/ABhCoBr9T9-iDEV-CzcO9A] update_mapping [_doc]
[00:00:50]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2/ABhCoBr9T9-iDEV-CzcO9A] update_mapping [_doc]
[00:00:51]                 │ proc [kibana]   log   [15:42:05.685] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:51]                 │ proc [kibana]   log   [15:42:05.868] [info][savedobjects-service] Finished in 2382ms.
[00:00:51]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:52]                 │ debg replacing kibana config doc: {"defaultIndex":"0bf35f60-3dc9-11e8-8660-4d65aa086b3c"}
[00:00:53]                 │ debg navigating to dashboard url: http://localhost:61121/app/dashboards#/list
[00:00:53]                 │ debg navigate to: http://localhost:61121/app/dashboards#/list
[00:00:54]                 │ debg browser[INFO] http://localhost:61121/app/dashboards?_t=1607010128318#/list 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:00:54]                 │
[00:00:54]                 │ debg browser[INFO] http://localhost:61121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:54]                 │ debg ... sleep(700) start
[00:00:54]                 │ debg ... sleep(700) end
[00:00:54]                 │ debg returned from get, calling refresh
[00:00:55]                 │ debg browser[INFO] http://localhost:61121/app/dashboards?_t=1607010128318#/list 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:00:55]                 │
[00:00:55]                 │ debg browser[INFO] http://localhost:61121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:55]                 │ debg currentUrl = http://localhost:61121/app/dashboards#/list
[00:00:55]                 │          appUrl = http://localhost:61121/app/dashboards#/list
[00:00:55]                 │ debg TestSubjects.find(kibanaChrome)
[00:00:55]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:58]                 │ debg ... sleep(501) start
[00:00:59]                 │ debg ... sleep(501) end
[00:00:59]                 │ debg in navigateTo url = http://localhost:61121/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:00:59]                 │ debg TestSubjects.exists(statusPageContainer)
[00:00:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:01:02]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:01:03]                 │ debg isGlobalLoadingIndicatorVisible
[00:01:03]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:01:03]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:01:03]                 │ debg browser[INFO] http://localhost:61121/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now)) 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:01:03]                 │
[00:01:03]                 │ debg browser[INFO] http://localhost:61121/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:05]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:01:05]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:05]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:05]                 │ debg TestSubjects.exists(newItemButton)
[00:01:05]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:01:05]                 │ debg TestSubjects.click(newItemButton)
[00:01:05]                 │ debg Find.clickByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:01:05]                 │ debg Find.findByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:01:06]                 │ debg waitForRenderComplete
[00:01:06]                 │ debg in getSharedItemsCount
[00:01:06]                 │ debg Find.findByCssSelector('[data-shared-items-count]') with timeout=10000
[00:01:16]                 │ info Taking screenshot "/dev/shm/workspace/parallel/12/kibana/test/functional/screenshots/failure/dashboard app using current data empty dashboard _before all_ hook.png"
[00:01:16]                 │ info Current URL is: http://localhost:61121/app/dashboards#/create
[00:01:16]                 │ info Saving page source to: /dev/shm/workspace/parallel/12/kibana/test/functional/failure_debug/html/dashboard app using current data empty dashboard _before all_ hook.html
[00:01:16]                 └- ✖ fail: dashboard app using current data empty dashboard "before all" hook for "should display empty widget"
[00:01:16]                 │      TimeoutError: Waiting for element to be located By(css selector, [data-shared-items-count])
[00:01:16]                 │ Wait timed out after 10060ms
[00:01:16]                 │       at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:01:16]                 │       at runMicrotasks (<anonymous>)
[00:01:16]                 │       at processTicksAndRejections (internal/process/task_queues.js:97:5)
[00:01:16]                 │ 
[00:01:16]                 │ 
[00:01:16]                 └-> "after all" hook
[00:01:16]                   │ debg TestSubjects.exists(dashboardAddPanel)
[00:01:16]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardAddPanel"]') with timeout=1000
[00:01:17]                   │ debg --- retry.tryForTime error: [data-test-subj="dashboardAddPanel"] is not displayed
[00:01:18]                   │ debg gotoDashboardLandingPage
[00:01:18]                   │ debg onDashboardLandingPage
[00:01:18]                   │ debg TestSubjects.exists(dashboardLandingPage)
[00:01:18]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardLandingPage"]') with timeout=5000
[00:01:20]                   │ debg --- retry.tryForTime error: [data-test-subj="dashboardLandingPage"] is not displayed
[00:01:23]                   │ debg --- retry.tryForTime failed again with the same message...
[00:01:24]                   │ debg clickDashboardBreadcrumbLink
[00:01:24]                   │ debg TestSubjects.click(breadcrumb dashboardListingBreadcrumb first)
[00:01:24]                   │ debg Find.clickByCssSelector('[data-test-subj="breadcrumb dashboardListingBreadcrumb first"]') with timeout=10000
[00:01:24]                   │ debg Find.findByCssSelector('[data-test-subj="breadcrumb dashboardListingBreadcrumb first"]') with timeout=10000
[00:01:34]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="breadcrumb dashboardListingBreadcrumb first"])
[00:01:34]                   │      Wait timed out after 10037ms
[00:01:34]                   │ debg Find.findByCssSelector('[data-test-subj="breadcrumb dashboardListingBreadcrumb first"]') with timeout=10000
[00:01:44]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="breadcrumb dashboardListingBreadcrumb first"])
[00:01:44]                   │      Wait timed out after 10045ms
[00:01:45]                   │ debg Find.findByCssSelector('[data-test-subj="breadcrumb dashboardListingBreadcrumb first"]') with timeout=10000
[00:01:55]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="breadcrumb dashboardListingBreadcrumb first"])
[00:01:55]                   │      Wait timed out after 10027ms
[00:01:55]                   │ debg Find.findByCssSelector('[data-test-subj="breadcrumb dashboardListingBreadcrumb first"]') with timeout=10000
[00:02:05]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="breadcrumb dashboardListingBreadcrumb first"])
[00:02:05]                   │      Wait timed out after 10017ms
[00:02:06]                   │ debg Find.findByCssSelector('[data-test-subj="breadcrumb dashboardListingBreadcrumb first"]') with timeout=10000
[00:02:16]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="breadcrumb dashboardListingBreadcrumb first"])
[00:02:16]                   │      Wait timed out after 10053ms
[00:02:16]                   │ debg Find.findByCssSelector('[data-test-subj="breadcrumb dashboardListingBreadcrumb first"]') with timeout=10000
[00:02:27]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="breadcrumb dashboardListingBreadcrumb first"])
[00:02:27]                   │      Wait timed out after 10021ms
[00:02:27]                   │ debg Find.findByCssSelector('[data-test-subj="breadcrumb dashboardListingBreadcrumb first"]') with timeout=10000
[00:02:37]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="breadcrumb dashboardListingBreadcrumb first"])
[00:02:37]                   │      Wait timed out after 10056ms
[00:02:38]                   │ debg Find.findByCssSelector('[data-test-subj="breadcrumb dashboardListingBreadcrumb first"]') with timeout=10000
[00:02:48]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="breadcrumb dashboardListingBreadcrumb first"])
[00:02:48]                   │      Wait timed out after 10055ms
[00:02:48]                   │ debg Find.findByCssSelector('[data-test-subj="breadcrumb dashboardListingBreadcrumb first"]') with timeout=10000
[00:02:58]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="breadcrumb dashboardListingBreadcrumb first"])
[00:02:58]                   │      Wait timed out after 10020ms
[00:02:59]                   │ debg Find.findByCssSelector('[data-test-subj="breadcrumb dashboardListingBreadcrumb first"]') with timeout=10000
[00:03:09]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="breadcrumb dashboardListingBreadcrumb first"])
[00:03:09]                   │      Wait timed out after 10012ms
[00:03:09]                   │ debg Find.findByCssSelector('[data-test-subj="breadcrumb dashboardListingBreadcrumb first"]') with timeout=10000
[00:03:19]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="breadcrumb dashboardListingBreadcrumb first"])
[00:03:19]                   │      Wait timed out after 10048ms
[00:03:20]                   │ debg Find.findByCssSelector('[data-test-subj="breadcrumb dashboardListingBreadcrumb first"]') with timeout=10000
[00:03:30]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="breadcrumb dashboardListingBreadcrumb first"])
[00:03:30]                   │      Wait timed out after 10041ms
[00:03:30]                   │ info Taking screenshot "/dev/shm/workspace/parallel/12/kibana/test/functional/screenshots/failure/dashboard app using current data empty dashboard _after all_ hook.png"
[00:03:30]                   │ info Current URL is: http://localhost:61121/app/dashboards#/create
[00:03:30]                   │ info Saving page source to: /dev/shm/workspace/parallel/12/kibana/test/functional/failure_debug/html/dashboard app using current data empty dashboard _after all_ hook.html
[00:03:30]                   └- ✖ fail: dashboard app using current data empty dashboard "after all" hook for "should add new visualization from dashboard"
[00:03:30]                   │      Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="breadcrumb dashboardListingBreadcrumb first"])
[00:03:30]                   │ Wait timed out after 10041ms
[00:03:30]                   │     at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:03:30]                   │     at runMicrotasks (<anonymous>)
[00:03:30]                   │     at processTicksAndRejections (internal/process/task_queues.js:97:5)
[00:03:30]                   │       at onFailure (test/common/services/retry/retry_for_success.ts:28:9)
[00:03:30]                   │       at retryForSuccess (test/common/services/retry/retry_for_success.ts:68:13)
[00:03:30]                   │       at Retry.try (test/common/services/retry/retry.ts:43:14)
[00:03:30]                   │       at Proxy.clickByCssSelector (test/functional/services/common/find.ts:430:7)
[00:03:30]                   │       at TestSubjects.click (test/functional/services/common/test_subjects.ts:116:7)
[00:03:30]                   │       at DashboardPage.clickDashboardBreadcrumbLink (test/functional/page_objects/dashboard_page.ts:137:7)
[00:03:30]                   │       at DashboardPage.gotoDashboardLandingPage (test/functional/page_objects/dashboard_page.ts:144:9)
[00:03:30]                   │       at Context.<anonymous> (test/functional/apps/dashboard/empty_dashboard.js:44:7)
[00:03:30]                   │       at Object.apply (packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:84:16)
[00:03:30]                   │ 
[00:03:30]                   │ 

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="breadcrumb dashboardListingBreadcrumb first"])
Wait timed out after 10041ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at onFailure (test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (test/common/services/retry/retry_for_success.ts:68:13)
    at Retry.try (test/common/services/retry/retry.ts:43:14)
    at Proxy.clickByCssSelector (test/functional/services/common/find.ts:430:7)
    at TestSubjects.click (test/functional/services/common/test_subjects.ts:116:7)
    at DashboardPage.clickDashboardBreadcrumbLink (test/functional/page_objects/dashboard_page.ts:137:7)
    at DashboardPage.gotoDashboardLandingPage (test/functional/page_objects/dashboard_page.ts:144:9)
    at Context.<anonymous> (test/functional/apps/dashboard/empty_dashboard.js:44:7)
    at Object.apply (packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:84:16)

Chrome UI Functional Tests.test/functional/apps/visualize/_data_table_notimeindex_filters·ts.visualize app data table with index without time filter filters should add to dashboard and allow filtering

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:00:00]         └-: visualize app
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ debg Starting visualize before method
[00:00:00]             │ info [logstash_functional] Loading "mappings.json"
[00:00:00]             │ info [logstash_functional] Loading "data.json.gz"
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.22][0]]"
[00:00:00]             │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:00:00]             │ debg [logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.20][0]]"
[00:00:00]             │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:00:00]             │ debg [logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.21][0]]"
[00:00:00]             │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:00:00]             │ debg [logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:10]             │ info progress: 601
[00:00:20]             │ info progress: 4209
[00:00:30]             │ info progress: 8361
[00:00:40]             │ info progress: 13529
[00:00:40]             │ info [logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:00:40]             │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:40]             │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:42]             │ info [long_window_logstash] Loading "mappings.json"
[00:00:42]             │ info [long_window_logstash] Loading "data.json.gz"
[00:00:42]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [long-window-logstash-0] creating index, cause [api], templates [], shards [1]/[0]
[00:00:43]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[long-window-logstash-0][0]]])." previous.health="YELLOW" reason="shards started [[long-window-logstash-0][0]]"
[00:00:43]             │ info [long_window_logstash] Created index "long-window-logstash-0"
[00:00:43]             │ debg [long_window_logstash] "long-window-logstash-0" settings {"index":{"analysis":{"analyzer":{"makelogs_url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:52]             │ info progress: 5942
[00:01:02]             │ info [long_window_logstash] Indexed 14005 docs into "long-window-logstash-0"
[00:01:03]             │ info [visualize] Loading "mappings.json"
[00:01:03]             │ info [visualize] Loading "data.json"
[00:01:03]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_1/29ZWjLGkRuiftH_vQWAMJQ] deleting index
[00:01:03]             │ info [visualize] Deleted existing index [".kibana_1"]
[00:01:03]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:01:03]             │ info [visualize] Created index ".kibana"
[00:01:03]             │ debg [visualize] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:01:03]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana/d60i-pgQQRGtUW-n3jJgeg] update_mapping [_doc]
[00:01:03]             │ info [visualize] Indexed 12 docs into ".kibana"
[00:01:03]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana/d60i-pgQQRGtUW-n3jJgeg] update_mapping [_doc]
[00:01:03]             │ debg Migrating saved objects
[00:01:03]             │ proc [kibana]   log   [15:42:26.470] [info][savedobjects-service] Creating index .kibana_2.
[00:01:03]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:01:03]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] updating number_of_replicas to [0] for indices [.kibana_2]
[00:01:04]             │ proc [kibana]   log   [15:42:26.621] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:01:04]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:01:04]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] updating number_of_replicas to [0] for indices [.kibana_1]
[00:01:04]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1]
[00:01:04]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] updating number_of_replicas to [0] for indices [.tasks]
[00:01:04]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] 1557 finished with response BulkByScrollResponse[took=201.9ms,timed_out=false,sliceId=null,updated=0,created=12,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:01:04]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana/d60i-pgQQRGtUW-n3jJgeg] deleting index
[00:01:04]             │ proc [kibana]   log   [15:42:27.404] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:01:04]             │ proc [kibana]   log   [15:42:27.447] [error][savedobjects-service] Error: Unable to migrate the corrupt Saved Object document index-pattern:test_index*. To prevent Kibana from performing a migration on every restart, please delete or fix this document by ensuring that the namespace and type in the document's id matches the values in the namespace and type fields.
[00:01:04]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2/maFDY2CZTauvZccv41wCiQ] update_mapping [_doc]
[00:01:05]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2/maFDY2CZTauvZccv41wCiQ] update_mapping [_doc]
[00:01:05]             │ proc [kibana]   log   [15:42:27.722] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:01:05]             │ proc [kibana]   log   [15:42:27.851] [info][savedobjects-service] Finished in 1393ms.
[00:01:05]             │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:01:05]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1607008968059417785] [.kibana_2/maFDY2CZTauvZccv41wCiQ] update_mapping [_doc]
[00:01:07]             │ debg replacing kibana config doc: {"defaultIndex":"logstash-*","format:bytes:defaultPattern":"0,0.[000]b"}
[00:01:08]           └-: 
[00:01:08]             └-> "before all" hook
[00:19:25]             └-: data table with index without time filter filters
[00:19:25]               └-> "before all" hook
[00:19:25]               └-> "before all" hook
[00:19:25]                 │ debg navigateToApp visualize
[00:19:25]                 │ debg navigating to visualize url: http://localhost:61171/app/visualize#/
[00:19:25]                 │ debg navigate to: http://localhost:61171/app/visualize#/
[00:19:25]                 │ debg browser[INFO] http://localhost:61171/app/visualize?_t=1607011247831#/ 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:25]                 │
[00:19:25]                 │ debg browser[INFO] http://localhost:61171/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:19:25]                 │ debg ... sleep(700) start
[00:19:26]                 │ debg ... sleep(700) end
[00:19:26]                 │ debg returned from get, calling refresh
[00:19:26]                 │ERROR browser[SEVERE] http://localhost:61171/38511/bundles/core/core.entry.js 12:84828 TypeError: Failed to fetch
[00:19:26]                 │          at _callee3$ (http://localhost:61171/38511/bundles/core/core.entry.js:6:43940)
[00:19:26]                 │          at s (http://localhost:61171/38511/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:321:1751466)
[00:19:26]                 │          at Generator._invoke (http://localhost:61171/38511/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:321:1751219)
[00:19:26]                 │          at Generator.forEach.e.<computed> [as throw] (http://localhost:61171/38511/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:321:1751823)
[00:19:26]                 │          at fetch_asyncGeneratorStep (http://localhost:61171/38511/bundles/core/core.entry.js:6:38998)
[00:19:26]                 │          at _throw (http://localhost:61171/38511/bundles/core/core.entry.js:6:39406)
[00:19:26]                 │ debg browser[INFO] http://localhost:61171/app/visualize?_t=1607011247831#/ 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:26]                 │
[00:19:26]                 │ debg browser[INFO] http://localhost:61171/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:19:26]                 │ debg currentUrl = http://localhost:61171/app/visualize#/
[00:19:26]                 │          appUrl = http://localhost:61171/app/visualize#/
[00:19:26]                 │ debg TestSubjects.find(kibanaChrome)
[00:19:26]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:19:26]                 │ debg ... sleep(501) start
[00:19:27]                 │ debg ... sleep(501) end
[00:19:27]                 │ debg in navigateTo url = http://localhost:61171/app/visualize#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:19:27]                 │ debg TestSubjects.exists(statusPageContainer)
[00:19:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:19:29]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:19:30]                 │ debg isGlobalLoadingIndicatorVisible
[00:19:30]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:19:30]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:19:31]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:19:32]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:19:32]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:19:32]                 │ debg TestSubjects.exists(newItemButton)
[00:19:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:19:32]                 │ debg TestSubjects.click(newItemButton)
[00:19:32]                 │ debg Find.clickByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:19:32]                 │ debg Find.findByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:19:32]                 │ debg TestSubjects.click(visGroupAggBasedExploreLink)
[00:19:32]                 │ debg Find.clickByCssSelector('[data-test-subj="visGroupAggBasedExploreLink"]') with timeout=10000
[00:19:32]                 │ debg Find.findByCssSelector('[data-test-subj="visGroupAggBasedExploreLink"]') with timeout=10000
[00:19:32]                 │ debg TestSubjects.find(visNewDialogTypes)
[00:19:32]                 │ debg Find.findByCssSelector('[data-test-subj="visNewDialogTypes"]') with timeout=10000
[00:19:32]                 │ debg clickDataTable
[00:19:32]                 │ debg TestSubjects.click(visType-table)
[00:19:32]                 │ debg Find.clickByCssSelector('[data-test-subj="visType-table"]') with timeout=10000
[00:19:32]                 │ debg Find.findByCssSelector('[data-test-subj="visType-table"]') with timeout=10000
[00:19:32]                 │ debg isGlobalLoadingIndicatorVisible
[00:19:32]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:19:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:19:34]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:19:34]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:19:34]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:19:34]                 │ debg clickNewSearch
[00:19:34]                 │ debg TestSubjects.click(savedObjectTitlelogstash*)
[00:19:34]                 │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitlelogstash*"]') with timeout=10000
[00:19:34]                 │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitlelogstash*"]') with timeout=10000
[00:19:35]                 │ debg isGlobalLoadingIndicatorVisible
[00:19:35]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:19:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:19:35]                 │ debg browser[INFO] http://localhost:61171/app/visualize#/create?type=table&indexPattern=logstash* 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:35]                 │
[00:19:35]                 │ debg browser[INFO] http://localhost:61171/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:19:36]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:19:37]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:19:37]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:19:37]                 │ debg Bucket = Split Rows
[00:19:37]                 │ debg TestSubjects.click(visEditorAdd_buckets)
[00:19:37]                 │ debg Find.clickByCssSelector('[data-test-subj="visEditorAdd_buckets"]') with timeout=10000
[00:19:37]                 │ debg Find.findByCssSelector('[data-test-subj="visEditorAdd_buckets"]') with timeout=10000
[00:19:37]                 │ debg TestSubjects.click(visEditorAdd_buckets_Split rows)
[00:19:37]                 │ debg Find.clickByCssSelector('[data-test-subj="visEditorAdd_buckets_Split rows"]') with timeout=10000
[00:19:37]                 │ debg Find.findByCssSelector('[data-test-subj="visEditorAdd_buckets_Split rows"]') with timeout=10000
[00:19:37]                 │ debg Aggregation = Histogram
[00:19:37]                 │ debg Find.findByCssSelector('
[00:19:37]                 │                [data-test-subj="bucketsAggGroup"]
[00:19:37]                 │                [data-test-subj^="visEditorAggAccordion"].euiAccordion-isOpen
[00:19:37]                 │                
[00:19:37]                 │                [data-test-subj="defaultEditorAggSelect"]
[00:19:37]                 │              ') with timeout=10000
[00:19:37]                 │ debg comboBox.setElement, value: Histogram
[00:19:37]                 │ debg comboBox.isOptionSelected, value: Histogram
[00:19:39]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:19:39]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:19:39]                 │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="Histogram"]') with timeout=2500
[00:19:39]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:19:39]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:19:42]                 │ debg --- retry.tryForTime error: [data-test-subj~="comboBoxOptionsList"] is not displayed
[00:19:42]                 │ debg ... sleep(500) start
[00:19:43]                 │ debg ... sleep(500) end
[00:19:43]                 │ debg Field = bytes
[00:19:43]                 │ debg selectField bytes
[00:19:43]                 │ debg Find.findByCssSelector('
[00:19:43]                 │                [data-test-subj="bucketsAggGroup"]
[00:19:43]                 │                [data-test-subj^="visEditorAggAccordion"].euiAccordion-isOpen
[00:19:43]                 │                [data-test-subj="visAggEditorParams"]
[00:19:43]                 │                
[00:19:43]                 │                [data-test-subj="visDefaultEditorField"]
[00:19:43]                 │              ') with timeout=10000
[00:19:43]                 │ debg comboBox.setElement, value: bytes
[00:19:43]                 │ debg comboBox.isOptionSelected, value: bytes
[00:19:45]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:19:45]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:19:45]                 │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="bytes"]') with timeout=2500
[00:19:45]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:19:45]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:19:48]                 │ debg --- retry.tryForTime error: [data-test-subj~="comboBoxOptionsList"] is not displayed
[00:19:48]                 │ debg Interval = 2000
[00:19:48]                 │ debg visEditor.setInterval(2000, {numeric, 2, false})
[00:19:48]                 │ debg TestSubjects.getAttribute(visEditorIntervalSwitch2, aria-checked, tryTimeout=120000, findTimeout=10000)
[00:19:48]                 │ debg TestSubjects.find(visEditorIntervalSwitch2)
[00:19:48]                 │ debg Find.findByCssSelector('[data-test-subj="visEditorIntervalSwitch2"]') with timeout=10000
[00:19:48]                 │ debg TestSubjects.click(visEditorIntervalSwitch2)
[00:19:48]                 │ debg Find.clickByCssSelector('[data-test-subj="visEditorIntervalSwitch2"]') with timeout=10000
[00:19:48]                 │ debg Find.findByCssSelector('[data-test-subj="visEditorIntervalSwitch2"]') with timeout=10000
[00:19:49]                 │ debg TestSubjects.setValue(visEditorInterval2, 2000)
[00:19:49]                 │ debg TestSubjects.click(visEditorInterval2)
[00:19:49]                 │ debg Find.clickByCssSelector('[data-test-subj="visEditorInterval2"]') with timeout=10000
[00:19:49]                 │ debg Find.findByCssSelector('[data-test-subj="visEditorInterval2"]') with timeout=10000
[00:19:49]                 │ debg TestSubjects.find(visualizationLoader)
[00:19:49]                 │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
[00:19:49]                 │ debg Before Rendering count 1
[00:19:49]                 │ debg TestSubjects.clickWhenNotDisabled(visualizeEditorRenderButton)
[00:19:49]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="visualizeEditorRenderButton"]') with timeout=10000
[00:19:49]                 │ debg Find.findByCssSelector('[data-test-subj="visualizeEditorRenderButton"]') with timeout=10000
[00:19:49]                 │ debg Waiting up to 20000ms for rendering count to be greater than or equal to [2]...
[00:19:49]                 │ debg TestSubjects.find(visualizationLoader)
[00:19:49]                 │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
[00:19:49]                 │ debg -- currentRenderingCount=1
[00:19:50]                 │ debg TestSubjects.find(visualizationLoader)
[00:19:50]                 │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
[00:19:50]                 │ debg -- currentRenderingCount=2
[00:19:50]               └-> should be able to save and load
[00:19:50]                 └-> "before each" hook: global before each
[00:19:50]                 │ debg ensureSavePanelOpen
[00:19:50]                 │ debg isGlobalLoadingIndicatorVisible
[00:19:50]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:19:50]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:19:51]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:19:52]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:19:52]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:19:52]                 │ debg TestSubjects.exists(savedObjectSaveModal)
[00:19:52]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="savedObjectSaveModal"]') with timeout=5000
[00:19:54]                 │ debg --- retry.tryForTime error: [data-test-subj="savedObjectSaveModal"] is not displayed
[00:19:57]                 │ debg --- retry.tryForTime failed again with the same message...
[00:19:58]                 │ debg TestSubjects.click(visualizeSaveButton)
[00:19:58]                 │ debg Find.clickByCssSelector('[data-test-subj="visualizeSaveButton"]') with timeout=10000
[00:19:58]                 │ debg Find.findByCssSelector('[data-test-subj="visualizeSaveButton"]') with timeout=10000
[00:19:58]                 │ debg TestSubjects.setValue(savedObjectTitle, Visualization DataTable w/o time filter)
[00:19:58]                 │ debg TestSubjects.click(savedObjectTitle)
[00:19:58]                 │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:19:58]                 │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:19:58]                 │ debg TestSubjects.exists(saveAsNewCheckbox)
[00:19:58]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="saveAsNewCheckbox"]') with timeout=2500
[00:20:01]                 │ debg --- retry.tryForTime error: [data-test-subj="saveAsNewCheckbox"] is not displayed
[00:20:01]                 │ debg TestSubjects.exists(returnToOriginModeSwitch)
[00:20:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="returnToOriginModeSwitch"]') with timeout=2500
[00:20:04]                 │ debg --- retry.tryForTime error: [data-test-subj="returnToOriginModeSwitch"] is not displayed
[00:20:04]                 │ debg Click Save Visualization button
[00:20:04]                 │ debg TestSubjects.click(confirmSaveSavedObjectButton)
[00:20:04]                 │ debg Find.clickByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:20:04]                 │ debg Find.findByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:20:04]                 │ debg TestSubjects.exists(saveVisualizationSuccess)
[00:20:04]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="saveVisualizationSuccess"]') with timeout=120000
[00:20:05]                 │ debg Find.findByCssSelector('.euiToast') with timeout=20000
[00:20:05]                 │ debg Find.findByCssSelector('.euiToastHeader__title') with timeout=10000
[00:20:05]                 │ debg Find.clickByCssSelector('.euiToast__closeButton') with timeout=10000
[00:20:05]                 │ debg Find.findByCssSelector('.euiToast__closeButton') with timeout=10000
[00:20:05]                 │ debg isGlobalLoadingIndicatorVisible
[00:20:05]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:20:05]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:20:07]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:20:07]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:20:07]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:20:07]                 │ debg Waiting for save modal to close
[00:20:07]                 │ debg TestSubjects.exists(savedObjectSaveModal)
[00:20:07]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="savedObjectSaveModal"]') with timeout=2500
[00:20:10]                 │ debg --- retry.tryForTime error: [data-test-subj="savedObjectSaveModal"] is not displayed
[00:20:10]                 │ debg Waiting up to 20000ms for last breadcrumb to have new vis name...
[00:20:10]                 │ debg TestSubjects.getVisibleText(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:20:10]                 │ debg TestSubjects.find(headerGlobalNav > breadcrumbs > ~breadcrumb & ~last)
[00:20:10]                 │ debg Find.findByCssSelector('[data-test-subj="headerGlobalNav"] [data-test-subj="breadcrumbs"] [data-test-subj~="breadcrumb"][data-test-subj~="last"]') with timeout=10000
[00:20:10]                 │ debg Find.clickByCssSelector('[href="#/"]') with timeout=10000
[00:20:10]                 │ debg Find.findByCssSelector('[href="#/"]') with timeout=10000
[00:20:10]                 │ debg TestSubjects.click(visListingTitleLink-Visualization-DataTable-w/o-time-filter)
[00:20:10]                 │ debg Find.clickByCssSelector('[data-test-subj="visListingTitleLink-Visualization-DataTable-w/o-time-filter"]') with timeout=20000
[00:20:10]                 │ debg Find.findByCssSelector('[data-test-subj="visListingTitleLink-Visualization-DataTable-w/o-time-filter"]') with timeout=20000
[00:20:11]                 │ debg isGlobalLoadingIndicatorVisible
[00:20:11]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:20:11]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:20:12]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:20:13]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:20:13]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:20:13]                 │ debg Waiting up to 20000ms for rendering count to stabilize...
[00:20:13]                 │ debg TestSubjects.find(visualizationLoader)
[00:20:13]                 │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
[00:20:13]                 │ debg -- firstCount=1
[00:20:13]                 │ debg ... sleep(2000) start
[00:20:15]                 │ debg ... sleep(2000) end
[00:20:15]                 │ debg TestSubjects.find(visualizationLoader)
[00:20:15]                 │ debg Find.findByCssSelector('[data-test-subj="visualizationLoader"]') with timeout=10000
[00:20:15]                 │ debg -- secondCount=1
[00:20:15]                 │ debg Find.findByCssSelector('.visualization') with timeout=10000
[00:20:15]                 └- ✓ pass  (25.3s) "visualize app  data table with index without time filter filters should be able to save and load"
[00:20:15]               └-> timefilter should be disabled
[00:20:15]                 └-> "before each" hook: global before each
[00:20:15]                 │ debg Find.existsByCssSelector('.euiDatePickerRange--readOnly') with timeout=2500
[00:20:15]                 └- ✓ pass  (13ms) "visualize app  data table with index without time filter filters timefilter should be disabled"
[00:20:15]               └-> should add to dashboard and allow filtering
[00:20:15]                 └-> "before each" hook: global before each
[00:20:15]                 │ debg navigating to dashboard url: http://localhost:61171/app/dashboards#/list
[00:20:15]                 │ debg navigate to: http://localhost:61171/app/dashboards#/list
[00:20:15]                 │ debg browser[INFO] http://localhost:61171/app/dashboards?_t=1607011298047#/list 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:20:15]                 │
[00:20:15]                 │ debg browser[INFO] http://localhost:61171/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:20:15]                 │ debg ... sleep(700) start
[00:20:16]                 │ debg ... sleep(700) end
[00:20:16]                 │ debg returned from get, calling refresh
[00:20:16]                 │ERROR browser[SEVERE] http://localhost:61171/38511/bundles/plugin/newsfeed/newsfeed.plugin.js 0:20624 TypeError: Failed to fetch
[00:20:16]                 │          at _callee3$ (http://localhost:61171/38511/bundles/core/core.entry.js:6:44690)
[00:20:16]                 │          at s (http://localhost:61171/38511/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:321:1751466)
[00:20:16]                 │          at Generator._invoke (http://localhost:61171/38511/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:321:1751219)
[00:20:16]                 │          at Generator.forEach.e.<computed> [as throw] (http://localhost:61171/38511/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:321:1751823)
[00:20:16]                 │          at fetch_asyncGeneratorStep (http://localhost:61171/38511/bundles/core/core.entry.js:6:38998)
[00:20:16]                 │          at _throw (http://localhost:61171/38511/bundles/core/core.entry.js:6:39406)
[00:20:16]                 │ debg currentUrl = http://localhost:61171/app/dashboards#/list
[00:20:16]                 │          appUrl = http://localhost:61171/app/dashboards#/list
[00:20:16]                 │ debg TestSubjects.find(kibanaChrome)
[00:20:16]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:20:17]                 │ debg browser[INFO] http://localhost:61171/app/dashboards?_t=1607011298047#/list 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:20:17]                 │
[00:20:17]                 │ debg browser[INFO] http://localhost:61171/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:20:17]                 │ debg ... sleep(501) start
[00:20:17]                 │ debg ... sleep(501) end
[00:20:17]                 │ debg in navigateTo url = http://localhost:61171/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:20:17]                 │ debg TestSubjects.exists(statusPageContainer)
[00:20:17]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:20:20]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:20:20]                 │ debg TestSubjects.exists(newItemButton)
[00:20:20]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:20:23]                 │ debg --- retry.tryForTime error: [data-test-subj="newItemButton"] is not displayed
[00:20:26]                 │ debg --- retry.tryForTime failed again with the same message...
[00:20:29]                 │ debg --- retry.tryForTime failed again with the same message...
[00:20:32]                 │ debg --- retry.tryForTime failed again with the same message...
[00:20:33]                 │ debg TestSubjects.click(createDashboardPromptButton)
[00:20:33]                 │ debg Find.clickByCssSelector('[data-test-subj="createDashboardPromptButton"]') with timeout=10000
[00:20:33]                 │ debg Find.findByCssSelector('[data-test-subj="createDashboardPromptButton"]') with timeout=10000
[00:20:33]                 │ debg waitForRenderComplete
[00:20:33]                 │ debg in getSharedItemsCount
[00:20:33]                 │ debg Find.findByCssSelector('[data-shared-items-count]') with timeout=10000
[00:20:43]                 │ info Taking screenshot "/dev/shm/workspace/parallel/17/kibana/test/functional/screenshots/failure/visualize app  data table with index without time filter filters should add to dashboard and allow filtering.png"
[00:20:43]                 │ info Current URL is: http://localhost:61171/app/dashboards#/create
[00:20:43]                 │ info Saving page source to: /dev/shm/workspace/parallel/17/kibana/test/functional/failure_debug/html/visualize app  data table with index without time filter filters should add to dashboard and allow filtering.html
[00:20:43]                 └- ✖ fail: visualize app  data table with index without time filter filters should add to dashboard and allow filtering
[00:20:43]                 │      TimeoutError: Waiting for element to be located By(css selector, [data-shared-items-count])
[00:20:43]                 │ Wait timed out after 10029ms
[00:20:43]                 │       at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:20:43]                 │       at runMicrotasks (<anonymous>)
[00:20:43]                 │       at processTicksAndRejections (internal/process/task_queues.js:97:5)
[00:20:43]                 │ 
[00:20:43]                 │ 

Stack Trace

TimeoutError: Waiting for element to be located By(css selector, [data-shared-items-count])
Wait timed out after 10029ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5) {
  remoteStacktrace: ''
}

and 12 more failures, only showing the first 3.

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
dashboard 186 176 -10

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
dashboard 197.2KB 195.9KB -1.3KB

Distributable file count

id before after diff
default 43195 43192 -3
oss 22579 22576 -3

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
dashboard 322.2KB 310.5KB -11.7KB

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

Copy link
Contributor

@ThomThomson ThomThomson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In testing this out, most of the test cases work great, and the custom hook code looks really clean.

The most problematic use case (saving a dashboard as new) is still throwing react errors. Not the same error as I had before, but two different ones:

The node you're attempting to unmount was rendered by React and is not a top-level container.

and

Warning: render(...): Replacing React-rendered children with a new root component.

That said, these two warnings are more easily fixed than the one I was running into earlier, so I will attempt to merge the custom hooks from here into the original PR.

Thanks again for looking into this!

ThomThomson added a commit to ThomThomson/kibana that referenced this pull request Dec 8, 2020
@clintandrewhall clintandrewhall deleted the deangularize/feedback branch July 9, 2021 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants