Skip to content

[7.7] [Monitoring] Fixed server response errors (#63181)#63812

Merged
igoristic merged 2 commits intoelastic:7.7from
igoristic:backport/7.7/pr-63181
Apr 17, 2020
Merged

[7.7] [Monitoring] Fixed server response errors (#63181)#63812
igoristic merged 2 commits intoelastic:7.7from
igoristic:backport/7.7/pr-63181

Conversation

@igoristic
Copy link
Copy Markdown
Contributor

Backports the following commits to 7.7:

* Fixed server response errors

* Fixed async error

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@igoristic igoristic added the backport This PR is a backport of another PR label Apr 17, 2020
@igoristic
Copy link
Copy Markdown
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/canvas/custom_elements·ts.Canvas app custom elements adds the custom element to the workpad when prompted

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:02:30]         └-: Canvas app
[00:02:30]           └-> "before all" hook
[00:02:59]           └-: custom elements
[00:02:59]             └-> "before all" hook
[00:02:59]             └-> "before all" hook
[00:02:59]               │ info [logstash_functional] Loading "mappings.json"
[00:02:59]               │ info [logstash_functional] Loading "data.json.gz"
[00:02:59]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:02:59]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:02:59]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:03:01]               │ info [canvas/default] Loading "mappings.json"
[00:03:01]               │ info [canvas/default] Loading "data.json.gz"
[00:03:01]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1587114017149708701] [.kibana_2/5GSZJzT8Tv-VF-pZADf_zQ] deleting index
[00:03:01]               │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1587114017149708701] [.kibana_1/L4i2mbs5Qo2cnLk8yz2AeQ] deleting index
[00:03:01]               │ info [canvas/default] Deleted existing index [".kibana_2",".kibana_1"]
[00:03:01]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1587114017149708701] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:03:01]               │ info [canvas/default] Created index ".kibana_1"
[00:03:01]               │ debg [canvas/default] ".kibana_1" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:03:01]               │ info [canvas/default] Indexed 3 docs into ".kibana_1"
[00:03:01]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1587114017149708701] [.kibana_1/0XQPLRgUTNuOPCz69g0JyQ] update_mapping [_doc]
[00:03:01]               │ debg Migrating saved objects
[00:03:02]               │ proc [kibana]   log   [09:51:25.876] [info][savedobjects-service] Creating index .kibana_2.
[00:03:02]               │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1587114017149708701] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:03:02]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1587114017149708701] updating number_of_replicas to [0] for indices [.kibana_2]
[00:03:02]               │ proc [kibana]   log   [09:51:25.972] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:03:02]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1587114017149708701] [.kibana_2/Yw7Vvk79TRK94RlkzbCe3Q] update_mapping [_doc]
[00:03:02]               │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1587114017149708701] [.kibana_2/Yw7Vvk79TRK94RlkzbCe3Q] update_mapping [_doc]
[00:03:02]               │ proc [kibana]   log   [09:51:26.099] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:03:02]               │ proc [kibana]   log   [09:51:26.152] [info][savedobjects-service] Finished in 278ms.
[00:03:02]               │ debg navigating to canvas url: http://localhost:6121/app/canvas#/
[00:03:02]               │ debg navigate to: http://localhost:6121/app/canvas#/
[00:03:03]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587117086159#/ 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:03:03]               │
[00:03:03]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:03]               │ debg ... sleep(700) start
[00:03:03]               │ debg ... sleep(700) end
[00:03:03]               │ debg returned from get, calling refresh
[00:03:04]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587117086159#/ 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:03:04]               │
[00:03:04]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:04]               │ debg currentUrl = http://localhost:6121/app/canvas#/
[00:03:04]               │          appUrl = http://localhost:6121/app/canvas#/
[00:03:04]               │ debg TestSubjects.find(kibanaChrome)
[00:03:04]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:07]               │ debg browser[INFO] http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106452 "INFO: 2020-04-17T09:51:29Z
[00:03:07]               │        Adding connection to http://localhost:6121/elasticsearch
[00:03:07]               │
[00:03:07]               │      "
[00:03:07]               │ debg ... sleep(501) start
[00:03:07]               │ debg ... sleep(501) end
[00:03:07]               │ debg in navigateTo url = http://localhost:6121/app/canvas#/
[00:03:07]               │ debg TestSubjects.exists(statusPageContainer)
[00:03:07]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:03:10]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:03:11]               │ debg navigating to canvas url: http://localhost:6121/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:03:11]               │ debg navigate to: http://localhost:6121/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:03:11]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587117094392#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1 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:03:11]               │
[00:03:11]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:11]               │ debg ... sleep(700) start
[00:03:11]               │ debg ... sleep(700) end
[00:03:11]               │ debg returned from get, calling refresh
[00:03:12]               │ debg browser[INFO] http://localhost:6121/app/canvas?_t=1587117094392#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1 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:03:12]               │
[00:03:12]               │ debg browser[INFO] http://localhost:6121/bundles/app/canvas/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:13]               │ debg currentUrl = http://localhost:6121/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:03:13]               │          appUrl = http://localhost:6121/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:03:13]               │ debg TestSubjects.find(kibanaChrome)
[00:03:13]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:15]               │ debg browser[INFO] http://localhost:6121/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106452 "INFO: 2020-04-17T09:51:37Z
[00:03:15]               │        Adding connection to http://localhost:6121/elasticsearch
[00:03:15]               │
[00:03:15]               │      "
[00:03:15]               │ debg ... sleep(501) start
[00:03:15]               │ debg ... sleep(501) end
[00:03:15]               │ debg in navigateTo url = http://localhost:6121/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:03:15]               │ debg TestSubjects.exists(statusPageContainer)
[00:03:15]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:03:18]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:03:19]             └-> creates a custom element from an element when prompted
[00:03:19]               └-> "before each" hook: global before each
[00:03:19]               │ debg TestSubjects.click(canvasWorkpadPage > canvasWorkpadPageElementContent)
[00:03:19]               │ debg Find.clickByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=20000
[00:03:19]               │ debg Find.findByCssSelector('[data-test-subj="canvasWorkpadPage"] [data-test-subj="canvasWorkpadPageElementContent"]') with timeout=20000
[00:03:19]               │ debg Find.clickByCssSelector('[aria-label="Save as new element"]') with timeout=20000
[00:03:19]               │ debg Find.findByCssSelector('[aria-label="Save as new element"]') with timeout=20000
[00:03:19]               │ debg TestSubjects.setValue(canvasCustomElementForm-name, My New Element)
[00:03:19]               │ debg TestSubjects.click(canvasCustomElementForm-name)
[00:03:19]               │ debg Find.clickByCssSelector('[data-test-subj="canvasCustomElementForm-name"]') with timeout=10000
[00:03:19]               │ debg Find.findByCssSelector('[data-test-subj="canvasCustomElementForm-name"]') with timeout=10000
[00:03:19]               │ debg TestSubjects.setValue(canvasCustomElementForm-description, An excellent new element)
[00:03:19]               │ debg TestSubjects.click(canvasCustomElementForm-description)
[00:03:19]               │ debg Find.clickByCssSelector('[data-test-subj="canvasCustomElementForm-description"]') with timeout=10000
[00:03:19]               │ debg Find.findByCssSelector('[data-test-subj="canvasCustomElementForm-description"]') with timeout=10000
[00:03:20]               │ debg TestSubjects.click(canvasCustomElementForm-submit)
[00:03:20]               │ debg Find.clickByCssSelector('[data-test-subj="canvasCustomElementForm-submit"]') with timeout=10000
[00:03:20]               │ debg Find.findByCssSelector('[data-test-subj="canvasCustomElementForm-submit"]') with timeout=10000
[00:03:20]               │ debg TestSubjects.exists(canvasCustomElementCreate-success)
[00:03:20]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="canvasCustomElementCreate-success"]') with timeout=30000
[00:03:20]               └- ✓ pass  (1.6s) "Canvas app custom elements creates a custom element from an element when prompted"
[00:03:20]             └-> adds the custom element to the workpad when prompted
[00:03:20]               └-> "before each" hook: global before each
[00:03:20]               │ debg TestSubjects.click(add-element-button)
[00:03:20]               │ debg Find.clickByCssSelector('[data-test-subj="add-element-button"]') with timeout=10000
[00:03:20]               │ debg Find.findByCssSelector('[data-test-subj="add-element-button"]') with timeout=10000
[00:03:20]               │ debg Find.clickByCssSelector('#customElements') with timeout=20000
[00:03:20]               │ debg Find.findByCssSelector('#customElements') with timeout=20000
[00:03:21]               │ debg Find.findByCssSelector('[aria-labelledby="customElements"] .canvasElementCard__wrapper') with timeout=10000
[00:03:31]               │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/Canvas app custom elements adds the custom element to the workpad when prompted.png"
[00:03:31]               │ info Current URL is: http://localhost:6121/app/canvas#/workpad/workpad-1705f884-6224-47de-ba49-ca224fe6ec31/page/1
[00:03:31]               │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/Canvas app custom elements adds the custom element to the workpad when prompted.html
[00:03:31]               └- ✖ fail: "Canvas app custom elements adds the custom element to the workpad when prompted"
[00:03:31]               │

Stack Trace

{ TimeoutError: Waiting for element to be located By(css selector, [aria-labelledby="customElements"] .canvasElementCard__wrapper)
Wait timed out after 10060ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7) name: 'TimeoutError', remoteStacktrace: '' }

History

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

@igoristic igoristic merged commit 70021fe into elastic:7.7 Apr 17, 2020
@igoristic igoristic deleted the backport/7.7/pr-63181 branch April 17, 2020 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants