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

Use Search API in Timelion #74545

Closed
wants to merge 6 commits into from
Closed

Conversation

VladLasitsa
Copy link
Contributor

Closes #67585

Summary

Use Search API in Timelion

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@VladLasitsa
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

kibanamachine commented Aug 17, 2020

💔 Build Failed

Failed CI Steps


Test Failures

Firefox XPack UI Functional Tests.x-pack/test/functional/apps/canvas/smoke_test·js.Canvas app smoke test renders elements on workpad

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: Canvas app
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: smoke test
[00:00:00]             └-> "before all" hook
[00:00:00]             └-> "before all" hook
[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-1597661323129100098] [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-1597661323129100098] 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-1597661323129100098] [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-1597661323129100098] 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-1597661323129100098] [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-1597661323129100098] 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: 12868
[00:00:10]               │ info [logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:00:10]               │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:10]               │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:11]               │ info [canvas/default] Loading "mappings.json"
[00:00:11]               │ info [canvas/default] Loading "data.json.gz"
[00:00:11]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_1/cpFPQ55gSVKo5oomrc30jA] deleting index
[00:00:11]               │ info [canvas/default] Deleted existing index [".kibana_1"]
[00:00:11]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:00:11]               │ info [canvas/default] Created index ".kibana_1"
[00:00:11]               │ debg [canvas/default] ".kibana_1" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:11]               │ info [canvas/default] Indexed 3 docs into ".kibana_1"
[00:00:11]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_1/HEwdJaufQz6H13zlCmF0sQ] update_mapping [_doc]
[00:00:11]               │ debg Migrating saved objects
[00:00:11]               │ proc [kibana]   log   [11:26:34.249] [info][savedobjects-service] Creating index .kibana_2.
[00:00:11]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:00:11]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:11]               │ proc [kibana]   log   [11:26:34.360] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:12]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_2/AV4G2YssRqGRyffvT0UAbQ] update_mapping [_doc]
[00:00:12]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_2/AV4G2YssRqGRyffvT0UAbQ] update_mapping [_doc]
[00:00:12]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_2/AV4G2YssRqGRyffvT0UAbQ] update_mapping [_doc]
[00:00:12]               │ proc [kibana]   log   [11:26:34.579] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:12]               │ proc [kibana]   log   [11:26:34.642] [info][savedobjects-service] Finished in 397ms.
[00:00:12]               │ debg navigating to canvas url: http://localhost:61161/app/canvas#/
[00:00:12]               │ debg navigate to: http://localhost:61161/app/canvas#/
[00:00:12]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:12]               │ debg ... sleep(700) start
[00:00:13]               │ debg ... sleep(700) end
[00:00:13]               │ debg returned from get, calling refresh
[00:00:14]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:15]               │ debg currentUrl = http://localhost:61161/login?next=%2Fapp%2Fcanvas%3F_t%3D1597663594679#/
[00:00:15]               │          appUrl = http://localhost:61161/app/canvas#/
[00:00:15]               │ debg TestSubjects.find(kibanaChrome)
[00:00:15]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:17]               │ debg browser[info] "INFO: 2020-08-17T11:26:39Z
[00:00:17]               │        Adding connection to http://localhost:61161/elasticsearch
[00:00:17]               │
[00:00:17]               │      "
[00:00:19]               │ debg Found login page
[00:00:19]               │ debg TestSubjects.setValue(loginUsername, test_user)
[00:00:19]               │ debg TestSubjects.click(loginUsername)
[00:00:19]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:19]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:20]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:00:20]               │ debg TestSubjects.click(loginPassword)
[00:00:20]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:20]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:20]               │ debg TestSubjects.click(loginSubmit)
[00:00:20]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:20]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:22]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:22]               │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:00:24]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:25]               │ debg browser[info] "INFO: 2020-08-17T11:26:48Z
[00:00:25]               │        Adding connection to http://localhost:61161/elasticsearch
[00:00:25]               │
[00:00:25]               │      "
[00:00:29]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:00:29]               │ debg Finished login process currentUrl = http://localhost:61161/app/canvas#/
[00:00:29]               │ debg ... sleep(501) start
[00:00:29]               │ERROR browser[error] (new AbortError("The operation was aborted. ", "http://localhost:61161/35606/bundles/core/core.entry.js", 28))
[00:00:29]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:29]               │ debg ... sleep(501) end
[00:00:29]               │ debg in navigateTo url = http://localhost:61161/app/canvas#/
[00:00:29]               │ debg TestSubjects.exists(statusPageContainer)
[00:00:29]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:33]               │ debg browser[info] "INFO: 2020-08-17T11:26:56Z
[00:00:33]               │        Adding connection to http://localhost:61161/elasticsearch
[00:00:33]               │
[00:00:33]               │      "
[00:00:36]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:37]             └-> loads workpad list
[00:00:37]               └-> "before each" hook: global before each
[00:00:37]               │ debg TestSubjects.findAll(canvasWorkpadLoaderTable > canvasWorkpadLoaderWorkpad)
[00:00:37]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadLoaderTable"] [data-test-subj="canvasWorkpadLoaderWorkpad"]') with timeout=10000
[00:00:38]               └- ✓ pass  (1.4s) "Canvas app smoke test loads workpad list"
[00:00:38]             └-> loads workpage when clicked
[00:00:38]               └-> "before each" hook: global before each
[00:00:38]               │ debg TestSubjects.click(canvasWorkpadLoaderTable > canvasWorkpadLoaderWorkpad)
[00:00:38]               │ debg Find.clickByCssSelector('[data-test-subj="canvasWorkpadLoaderTable"] [data-test-subj="canvasWorkpadLoaderWorkpad"]') with timeout=10000
[00:00:38]               │ debg Find.findByCssSelector('[data-test-subj="canvasWorkpadLoaderTable"] [data-test-subj="canvasWorkpadLoaderWorkpad"]') with timeout=10000
[00:00:39]               │ debg Waiting up to 20000ms for workpad page...
[00:00:39]               │ debg TestSubjects.exists(canvasWorkpadPage)
[00:00:39]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="canvasWorkpadPage"]') with timeout=2500
[00:00:39]               │ proc [kibana]   log   [11:27:01.839] [info][data][data][plugins] Get strategy es
[00:00:39]               │ proc [kibana]   log   [11:27:01.840] [info][dataEnhanced][data_enhanced][plugins] search {"index":"logstash*","ignore_throttled":true,"body":{"query":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2017-01-01T00:00:00.000Z","lte":"2017-12-31T00:00:00.000Z","format":"strict_date_optional_time"}}}],"filter":{"bool":{"must":[]}}}},"aggs":{"q":{"meta":{"type":"split"},"filters":{"filters":{"extension:jpg":{"query_string":{"query":"extension:jpg"}}}},"aggs":{"time_buckets":{"meta":{"type":"time_buckets"},"date_histogram":{"field":"@timestamp","interval":"1M","time_zone":"UTC","extended_bounds":{"min":1483228800000,"max":1514678400000},"min_doc_count":0},"aggs":{"count":{"bucket_script":{"buckets_path":"_count","script":{"source":"_value","lang":"expression"}}}}}}}},"size":0},"timeout":"30000ms"}
[00:00:39]               └- ✓ pass  (724ms) "Canvas app smoke test loads workpage when clicked"
[00:00:39]             └-> renders elements on workpad
[00:00:39]               └-> "before each" hook: global before each
[00:00:39]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:00:39]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:00:39]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.async-search] creating index, cause [api], templates [], shards [1]/[1]
[00:00:39]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] updating number_of_replicas to [0] for indices [.async-search]
[00:00:50]               │ debg --- retry.try error: expected [] to have a length of 12 but got 0
[00:00:50]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:00:50]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:01:01]               │ debg --- retry.try failed again with the same message...
[00:01:01]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:01:01]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:01:11]               │ debg --- retry.try failed again with the same message...
[00:01:12]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:01:12]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:01:22]               │ debg --- retry.try failed again with the same message...
[00:01:22]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:01:22]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:01:33]               │ debg --- retry.try failed again with the same message...
[00:01:33]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:01:33]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:01:43]               │ debg --- retry.try failed again with the same message...
[00:01:44]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:01:44]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:01:54]               │ debg --- retry.try failed again with the same message...
[00:01:55]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:01:55]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:02:05]               │ debg --- retry.try failed again with the same message...
[00:02:05]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:02:05]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:02:16]               │ debg --- retry.try failed again with the same message...
[00:02:16]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:02:16]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:02:26]               │ debg --- retry.try failed again with the same message...
[00:02:27]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:02:27]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:02:37]               │ debg --- retry.try failed again with the same message...
[00:02:37]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:02:37]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:02:48]               │ debg --- retry.try failed again with the same message...
[00:02:48]               │ info Taking screenshot "/dev/shm/workspace/parallel/16/kibana/x-pack/test/functional/screenshots/failure/Canvas app smoke test renders elements on workpad.png"
[00:02:48]               │ info Current URL is: http://localhost:61161/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:02:48]               │ info Saving page source to: /dev/shm/workspace/parallel/16/kibana/x-pack/test/functional/failure_debug/html/Canvas app smoke test renders elements on workpad.html
[00:02:48]               └- ✖ fail: Canvas app smoke test renders elements on workpad
[00:02:48]               │      retry.try timeout: Error: expected [] to have a length of 12 but got 0
[00:02:48]               │     at Assertion.assert (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:100:11)
[00:02:48]               │     at Assertion.length (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:374:8)
[00:02:48]               │     at retry.try (/dev/shm/workspace/parallel/16/kibana/x-pack/test/functional/apps/canvas/smoke_test.js:81:38)
[00:02:48]               │     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:02:48]               │   Error: retry.try timeout: Error: expected [] to have a length of 12 but got 0
[00:02:48]               │       at Assertion.assert (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:100:11)
[00:02:48]               │       at Assertion.length (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:374:8)
[00:02:48]               │       at retry.try (test/functional/apps/canvas/smoke_test.js:81:38)
[00:02:48]               │       at process._tickCallback (internal/process/next_tick.js:68:7)
[00:02:48]               │       at onFailure (/dev/shm/workspace/parallel/16/kibana/test/common/services/retry/retry_for_success.ts:28:9)
[00:02:48]               │       at retryForSuccess (/dev/shm/workspace/parallel/16/kibana/test/common/services/retry/retry_for_success.ts:68:13)
[00:02:48]               │ 
[00:02:48]               │ 

Stack Trace

Error: retry.try timeout: Error: expected [] to have a length of 12 but got 0
    at Assertion.assert (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.length (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:374:8)
    at retry.try (test/functional/apps/canvas/smoke_test.js:81:38)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (/dev/shm/workspace/parallel/16/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/parallel/16/kibana/test/common/services/retry/retry_for_success.ts:68:13)

Firefox XPack UI Functional Tests.x-pack/test/functional/apps/canvas/smoke_test·js.Canvas app smoke test renders elements on workpad

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: Canvas app
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: smoke test
[00:00:00]             └-> "before all" hook
[00:00:00]             └-> "before all" hook
[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-1597661323129100098] [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-1597661323129100098] 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-1597661323129100098] [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-1597661323129100098] 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-1597661323129100098] [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-1597661323129100098] 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: 7517
[00:00:16]               │ info [logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:00:16]               │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:16]               │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:16]               │ info [canvas/default] Loading "mappings.json"
[00:00:16]               │ info [canvas/default] Loading "data.json.gz"
[00:00:16]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_1/jop2PxefQ-2ifPMQEuVlCg] deleting index
[00:00:16]               │ info [canvas/default] Deleted existing index [".kibana_1"]
[00:00:16]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:00:16]               │ info [canvas/default] Created index ".kibana_1"
[00:00:16]               │ debg [canvas/default] ".kibana_1" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:16]               │ info [canvas/default] Indexed 3 docs into ".kibana_1"
[00:00:16]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_1/tq-4VvhwTeCJ10k-7CQWVg] update_mapping [_doc]
[00:00:17]               │ debg Migrating saved objects
[00:00:17]               │ proc [kibana]   log   [11:21:27.677] [info][savedobjects-service] Creating index .kibana_2.
[00:00:17]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:00:17]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:17]               │ proc [kibana]   log   [11:21:27.823] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:17]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_2/dNeY1kzIRlywrwq4XKggvg] update_mapping [_doc]
[00:00:17]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_2/dNeY1kzIRlywrwq4XKggvg] update_mapping [_doc]
[00:00:17]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_2/dNeY1kzIRlywrwq4XKggvg] update_mapping [_doc]
[00:00:17]               │ proc [kibana]   log   [11:21:28.079] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:17]               │ proc [kibana]   log   [11:21:28.143] [info][savedobjects-service] Finished in 469ms.
[00:00:17]               │ debg navigating to canvas url: http://localhost:61161/app/canvas#/
[00:00:17]               │ debg navigate to: http://localhost:61161/app/canvas#/
[00:00:17]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:18]               │ debg ... sleep(700) start
[00:00:18]               │ debg ... sleep(700) end
[00:00:18]               │ debg returned from get, calling refresh
[00:00:20]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:21]               │ debg currentUrl = http://localhost:61161/login?next=%2Fapp%2Fcanvas%3F_t%3D1597663288175#/
[00:00:21]               │          appUrl = http://localhost:61161/app/canvas#/
[00:00:21]               │ debg TestSubjects.find(kibanaChrome)
[00:00:21]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:24]               │ debg browser[info] "INFO: 2020-08-17T11:21:34Z
[00:00:24]               │        Adding connection to http://localhost:61161/elasticsearch
[00:00:24]               │
[00:00:24]               │      "
[00:00:26]               │ debg Found login page
[00:00:26]               │ debg TestSubjects.setValue(loginUsername, test_user)
[00:00:26]               │ debg TestSubjects.click(loginUsername)
[00:00:26]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:26]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:27]               │ debg TestSubjects.setValue(loginPassword, changeme)
[00:00:27]               │ debg TestSubjects.click(loginPassword)
[00:00:27]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:27]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:27]               │ debg TestSubjects.click(loginSubmit)
[00:00:27]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:27]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:28]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:28]               │ debg Find.waitForDeletedByCssSelector('.kibanaWelcomeLogo') with timeout=10000
[00:00:31]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:32]               │ debg browser[info] "INFO: 2020-08-17T11:21:43Z
[00:00:32]               │        Adding connection to http://localhost:61161/elasticsearch
[00:00:32]               │
[00:00:32]               │      "
[00:00:36]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:00:36]               │ debg Finished login process currentUrl = http://localhost:61161/app/canvas#/
[00:00:36]               │ debg ... sleep(501) start
[00:00:36]               │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:36]               │ debg ... sleep(501) end
[00:00:36]               │ debg in navigateTo url = http://localhost:61161/app/canvas#/
[00:00:36]               │ debg TestSubjects.exists(statusPageContainer)
[00:00:36]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:41]               │ debg browser[info] "INFO: 2020-08-17T11:21:51Z
[00:00:41]               │        Adding connection to http://localhost:61161/elasticsearch
[00:00:41]               │
[00:00:41]               │      "
[00:00:44]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:44]             └-> loads workpad list
[00:00:44]               └-> "before each" hook: global before each
[00:00:44]               │ debg TestSubjects.findAll(canvasWorkpadLoaderTable > canvasWorkpadLoaderWorkpad)
[00:00:44]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadLoaderTable"] [data-test-subj="canvasWorkpadLoaderWorkpad"]') with timeout=10000
[00:00:46]               └- ✓ pass  (1.1s) "Canvas app smoke test loads workpad list"
[00:00:46]             └-> loads workpage when clicked
[00:00:46]               └-> "before each" hook: global before each
[00:00:46]               │ debg TestSubjects.click(canvasWorkpadLoaderTable > canvasWorkpadLoaderWorkpad)
[00:00:46]               │ debg Find.clickByCssSelector('[data-test-subj="canvasWorkpadLoaderTable"] [data-test-subj="canvasWorkpadLoaderWorkpad"]') with timeout=10000
[00:00:46]               │ debg Find.findByCssSelector('[data-test-subj="canvasWorkpadLoaderTable"] [data-test-subj="canvasWorkpadLoaderWorkpad"]') with timeout=10000
[00:00:46]               │ debg Waiting up to 20000ms for workpad page...
[00:00:46]               │ debg TestSubjects.exists(canvasWorkpadPage)
[00:00:46]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="canvasWorkpadPage"]') with timeout=2500
[00:00:46]               │ proc [kibana]   log   [11:21:57.344] [info][data][data][plugins] Get strategy es
[00:00:46]               │ proc [kibana]   log   [11:21:57.345] [info][dataEnhanced][data_enhanced][plugins] search {"index":"logstash*","ignore_throttled":true,"body":{"query":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2017-01-01T00:00:00.000Z","lte":"2017-12-31T00:00:00.000Z","format":"strict_date_optional_time"}}}],"filter":{"bool":{"must":[]}}}},"aggs":{"q":{"meta":{"type":"split"},"filters":{"filters":{"extension:jpg":{"query_string":{"query":"extension:jpg"}}}},"aggs":{"time_buckets":{"meta":{"type":"time_buckets"},"date_histogram":{"field":"@timestamp","interval":"1M","time_zone":"UTC","extended_bounds":{"min":1483228800000,"max":1514678400000},"min_doc_count":0},"aggs":{"count":{"bucket_script":{"buckets_path":"_count","script":{"source":"_value","lang":"expression"}}}}}}}},"size":0},"timeout":"30000ms"}
[00:00:46]               └- ✓ pass  (730ms) "Canvas app smoke test loads workpage when clicked"
[00:00:46]             └-> renders elements on workpad
[00:00:46]               └-> "before each" hook: global before each
[00:00:46]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:00:46]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:00:46]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.async-search] creating index, cause [api], templates [], shards [1]/[1]
[00:00:46]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] updating number_of_replicas to [0] for indices [.async-search]
[00:00:57]               │ debg --- retry.try error: expected [] to have a length of 12 but got 0
[00:00:58]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:00:58]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:01:08]               │ debg --- retry.try failed again with the same message...
[00:01:08]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:01:08]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:01:18]               │ debg --- retry.try failed again with the same message...
[00:01:19]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:01:19]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:01:29]               │ debg --- retry.try failed again with the same message...
[00:01:30]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:01:30]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:01:40]               │ debg --- retry.try failed again with the same message...
[00:01:40]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:01:40]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:01:50]               │ debg --- retry.try failed again with the same message...
[00:01:51]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:01:51]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:02:01]               │ debg --- retry.try failed again with the same message...
[00:02:02]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:02:02]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:02:12]               │ debg --- retry.try failed again with the same message...
[00:02:13]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:02:13]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:02:23]               │ debg --- retry.try failed again with the same message...
[00:02:23]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:02:23]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:02:33]               │ debg --- retry.try failed again with the same message...
[00:02:34]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:02:34]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:02:44]               │ debg --- retry.try failed again with the same message...
[00:02:45]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:02:45]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:02:55]               │ debg --- retry.try failed again with the same message...
[00:02:55]               │ info Taking screenshot "/dev/shm/workspace/parallel/16/kibana/x-pack/test/functional/screenshots/failure/Canvas app smoke test renders elements on workpad.png"
[00:02:55]               │ info Current URL is: http://localhost:61161/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:02:56]               │ info Saving page source to: /dev/shm/workspace/parallel/16/kibana/x-pack/test/functional/failure_debug/html/Canvas app smoke test renders elements on workpad.html
[00:02:56]               └- ✖ fail: Canvas app smoke test renders elements on workpad
[00:02:56]               │      retry.try timeout: Error: expected [] to have a length of 12 but got 0
[00:02:56]               │     at Assertion.assert (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:100:11)
[00:02:56]               │     at Assertion.length (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:374:8)
[00:02:56]               │     at retry.try (/dev/shm/workspace/parallel/16/kibana/x-pack/test/functional/apps/canvas/smoke_test.js:81:38)
[00:02:56]               │     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:02:56]               │   Error: retry.try timeout: Error: expected [] to have a length of 12 but got 0
[00:02:56]               │       at Assertion.assert (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:100:11)
[00:02:56]               │       at Assertion.length (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:374:8)
[00:02:56]               │       at retry.try (test/functional/apps/canvas/smoke_test.js:81:38)
[00:02:56]               │       at process._tickCallback (internal/process/next_tick.js:68:7)
[00:02:56]               │       at onFailure (/dev/shm/workspace/parallel/16/kibana/test/common/services/retry/retry_for_success.ts:28:9)
[00:02:56]               │       at retryForSuccess (/dev/shm/workspace/parallel/16/kibana/test/common/services/retry/retry_for_success.ts:68:13)
[00:02:56]               │ 
[00:02:56]               │ 

Stack Trace

Error: retry.try timeout: Error: expected [] to have a length of 12 but got 0
    at Assertion.assert (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.length (/dev/shm/workspace/parallel/16/kibana/packages/kbn-expect/expect.js:374:8)
    at retry.try (test/functional/apps/canvas/smoke_test.js:81:38)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (/dev/shm/workspace/parallel/16/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/parallel/16/kibana/test/common/services/retry/retry_for_success.ts:68:13)

Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/canvas/smoke_test·js.Canvas app smoke test renders elements on workpad

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:02:30]         └-: Canvas app
[00:02:30]           └-> "before all" hook
[00:02:30]           └-: smoke test
[00:02:30]             └-> "before all" hook
[00:02:30]             └-> "before all" hook
[00:02:30]               │ info [logstash_functional] Loading "mappings.json"
[00:02:30]               │ info [logstash_functional] Loading "data.json.gz"
[00:02:30]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:02:30]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:02:30]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:02:32]               │ info [canvas/default] Loading "mappings.json"
[00:02:32]               │ info [canvas/default] Loading "data.json.gz"
[00:02:32]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_1/LlEWIBK8QDGGrP4s2pLfZg] deleting index
[00:02:32]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_2/GwzUGPSST4-wY5sM_ZpW8A] deleting index
[00:02:32]               │ info [canvas/default] Deleted existing index [".kibana_2",".kibana_1"]
[00:02:32]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:02:32]               │ info [canvas/default] Created index ".kibana_1"
[00:02:32]               │ debg [canvas/default] ".kibana_1" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:02:32]               │ info [canvas/default] Indexed 3 docs into ".kibana_1"
[00:02:32]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_1/1GJLaFTEQUWN--YL1JsXiQ] update_mapping [_doc]
[00:02:32]               │ debg Migrating saved objects
[00:02:32]               │ proc [kibana]   log   [11:23:45.379] [info][savedobjects-service] Creating index .kibana_2.
[00:02:32]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:02:32]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] updating number_of_replicas to [0] for indices [.kibana_2]
[00:02:32]               │ proc [kibana]   log   [11:23:45.476] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:02:32]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_2/bPU4rJVUQg25Vgrrlq0BOQ] update_mapping [_doc]
[00:02:32]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_2/bPU4rJVUQg25Vgrrlq0BOQ] update_mapping [_doc]
[00:02:32]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.kibana_2/bPU4rJVUQg25Vgrrlq0BOQ] update_mapping [_doc]
[00:02:32]               │ proc [kibana]   log   [11:23:45.676] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:02:32]               │ proc [kibana]   log   [11:23:45.747] [info][savedobjects-service] Finished in 369ms.
[00:02:32]               │ debg navigating to canvas url: http://localhost:61181/app/canvas#/
[00:02:32]               │ debg navigate to: http://localhost:61181/app/canvas#/
[00:02:33]               │ debg browser[INFO] http://localhost:61181/app/canvas?_t=1597663425761#/ 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:02:33]               │
[00:02:33]               │ debg browser[INFO] http://localhost:61181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:33]               │ debg ... sleep(700) start
[00:02:34]               │ debg ... sleep(700) end
[00:02:34]               │ debg returned from get, calling refresh
[00:02:35]               │ debg browser[INFO] http://localhost:61181/35606/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-17T11:23:47Z
[00:02:35]               │        Adding connection to http://localhost:61181/elasticsearch
[00:02:35]               │
[00:02:35]               │      "
[00:02:35]               │ERROR browser[SEVERE] http://localhost:61181/35606/bundles/core/core.entry.js 83:273595 TypeError: Failed to fetch
[00:02:35]               │ debg browser[INFO] http://localhost:61181/app/canvas?_t=1597663425761#/ 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:02:35]               │
[00:02:35]               │ debg browser[INFO] http://localhost:61181/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:35]               │ debg currentUrl = http://localhost:61181/app/canvas#/
[00:02:35]               │          appUrl = http://localhost:61181/app/canvas#/
[00:02:35]               │ debg TestSubjects.find(kibanaChrome)
[00:02:35]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:37]               │ debg browser[INFO] http://localhost:61181/35606/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-08-17T11:23:49Z
[00:02:37]               │        Adding connection to http://localhost:61181/elasticsearch
[00:02:37]               │
[00:02:37]               │      "
[00:02:37]               │ debg ... sleep(501) start
[00:02:38]               │ debg ... sleep(501) end
[00:02:38]               │ debg in navigateTo url = http://localhost:61181/app/canvas#/
[00:02:38]               │ debg TestSubjects.exists(statusPageContainer)
[00:02:38]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:02:40]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:02:41]             └-> loads workpad list
[00:02:41]               └-> "before each" hook: global before each
[00:02:41]               │ debg TestSubjects.findAll(canvasWorkpadLoaderTable > canvasWorkpadLoaderWorkpad)
[00:02:41]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadLoaderTable"] [data-test-subj="canvasWorkpadLoaderWorkpad"]') with timeout=10000
[00:02:41]               └- ✓ pass  (52ms) "Canvas app smoke test loads workpad list"
[00:02:41]             └-> loads workpage when clicked
[00:02:41]               └-> "before each" hook: global before each
[00:02:41]               │ debg TestSubjects.click(canvasWorkpadLoaderTable > canvasWorkpadLoaderWorkpad)
[00:02:41]               │ debg Find.clickByCssSelector('[data-test-subj="canvasWorkpadLoaderTable"] [data-test-subj="canvasWorkpadLoaderWorkpad"]') with timeout=10000
[00:02:41]               │ debg Find.findByCssSelector('[data-test-subj="canvasWorkpadLoaderTable"] [data-test-subj="canvasWorkpadLoaderWorkpad"]') with timeout=10000
[00:02:41]               │ debg Waiting up to 20000ms for workpad page...
[00:02:41]               │ debg TestSubjects.exists(canvasWorkpadPage)
[00:02:41]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="canvasWorkpadPage"]') with timeout=2500
[00:02:41]               │ proc [kibana]   log   [11:23:54.405] [info][data][data][plugins] Get strategy es
[00:02:41]               │ proc [kibana]   log   [11:23:54.406] [info][dataEnhanced][data_enhanced][plugins] search {"index":"logstash*","ignore_throttled":true,"body":{"query":{"bool":{"must":[{"range":{"@timestamp":{"gte":"2017-01-01T00:00:00.000Z","lte":"2017-12-31T00:00:00.000Z","format":"strict_date_optional_time"}}}],"filter":{"bool":{"must":[]}}}},"aggs":{"q":{"meta":{"type":"split"},"filters":{"filters":{"extension:jpg":{"query_string":{"query":"extension:jpg"}}}},"aggs":{"time_buckets":{"meta":{"type":"time_buckets"},"date_histogram":{"field":"@timestamp","interval":"1M","time_zone":"UTC","extended_bounds":{"min":1483228800000,"max":1514678400000},"min_doc_count":0},"aggs":{"count":{"bucket_script":{"buckets_path":"_count","script":{"source":"_value","lang":"expression"}}}}}}}},"size":0},"timeout":"30000ms"}
[00:02:41]               └- ✓ pass  (462ms) "Canvas app smoke test loads workpage when clicked"
[00:02:41]             └-> renders elements on workpad
[00:02:41]               └-> "before each" hook: global before each
[00:02:41]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:02:41]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:02:41]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] [.async-search] creating index, cause [api], templates [], shards [1]/[1]
[00:02:41]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xxl-1597661323129100098] updating number_of_replicas to [0] for indices [.async-search]
[00:02:52]               │ debg --- retry.try error: expected [] to have a length of 12 but got 0
[00:02:52]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:02:52]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:03:02]               │ debg --- retry.try failed again with the same message...
[00:03:03]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:03:03]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:03:13]               │ debg --- retry.try failed again with the same message...
[00:03:14]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:03:14]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:03:24]               │ debg --- retry.try failed again with the same message...
[00:03:24]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:03:24]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:03:34]               │ debg --- retry.try failed again with the same message...
[00:03:35]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:03:35]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:03:45]               │ debg --- retry.try failed again with the same message...
[00:03:46]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:03:46]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:03:56]               │ debg --- retry.try failed again with the same message...
[00:03:56]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:03:56]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:04:06]               │ debg --- retry.try failed again with the same message...
[00:04:07]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:04:07]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:04:17]               │ debg --- retry.try failed again with the same message...
[00:04:18]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:04:18]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:04:28]               │ debg --- retry.try failed again with the same message...
[00:04:28]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:04:28]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:04:38]               │ debg --- retry.try failed again with the same message...
[00:04:39]               │ debg TestSubjects.findAll(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:04:39]               │ debg Find.allByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=10000
[00:04:49]               │ debg --- retry.try failed again with the same message...
[00:04:50]               │ info Taking screenshot "/dev/shm/workspace/parallel/18/kibana/x-pack/test/functional/screenshots/failure/Canvas app smoke test renders elements on workpad.png"
[00:04:50]               │ info Current URL is: http://localhost:61181/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:04:50]               │ info Saving page source to: /dev/shm/workspace/parallel/18/kibana/x-pack/test/functional/failure_debug/html/Canvas app smoke test renders elements on workpad.html
[00:04:50]               └- ✖ fail: Canvas app smoke test renders elements on workpad
[00:04:50]               │      retry.try timeout: Error: expected [] to have a length of 12 but got 0
[00:04:50]               │     at Assertion.assert (/dev/shm/workspace/parallel/18/kibana/packages/kbn-expect/expect.js:100:11)
[00:04:50]               │     at Assertion.length (/dev/shm/workspace/parallel/18/kibana/packages/kbn-expect/expect.js:374:8)
[00:04:50]               │     at retry.try (/dev/shm/workspace/parallel/18/kibana/x-pack/test/functional/apps/canvas/smoke_test.js:81:38)
[00:04:50]               │     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:04:50]               │   Error: retry.try timeout: Error: expected [] to have a length of 12 but got 0
[00:04:50]               │       at Assertion.assert (/dev/shm/workspace/parallel/18/kibana/packages/kbn-expect/expect.js:100:11)
[00:04:50]               │       at Assertion.length (/dev/shm/workspace/parallel/18/kibana/packages/kbn-expect/expect.js:374:8)
[00:04:50]               │       at retry.try (test/functional/apps/canvas/smoke_test.js:81:38)
[00:04:50]               │       at process._tickCallback (internal/process/next_tick.js:68:7)
[00:04:50]               │       at onFailure (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:28:9)
[00:04:50]               │       at retryForSuccess (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:68:13)
[00:04:50]               │ 
[00:04:50]               │ 

Stack Trace

Error: retry.try timeout: Error: expected [] to have a length of 12 but got 0
    at Assertion.assert (/dev/shm/workspace/parallel/18/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.length (/dev/shm/workspace/parallel/18/kibana/packages/kbn-expect/expect.js:374:8)
    at retry.try (test/functional/apps/canvas/smoke_test.js:81:38)
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/parallel/18/kibana/test/common/services/retry/retry_for_success.ts:68:13)

Build metrics

page load bundle size

id value diff baseline
visTypeTimelion 714.2KB +1.9KB 712.3KB

History

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

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.

Use Search API in Timelion
3 participants