Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[7.x] [APM] exceptions are encapsulated on Kibana logs(#96343) (#96343) #96361

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

kibanamachine
Copy link
Contributor

Backports the following commits to 7.x:

@kibanamachine
Copy link
Contributor Author

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome UI Functional Tests.test/functional/apps/discover/_discover·ts.discover app discover test query #2, which has an empty time range should show "no results"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:08:31]         └-: discover app
[00:08:31]           └-> "before all" hook in "discover app"
[00:08:31]           └-> "before all" hook in "discover app"
[00:08:32]           └-: discover test
[00:08:32]             └-> "before all" hook in "discover test"
[00:08:32]             └-> "before all" hook in "discover test"
[00:08:32]               │ debg load kibana index with default index pattern
[00:08:32]               │ debg Cleaning all saved objects { space: undefined }
[00:08:36]               │ info deleting batch of 1 objects
[00:08:37]               │ succ deleted 1 objects
[00:08:37]               │ debg resolved import for discover to /dev/shm/workspace/parallel/16/kibana/test/functional/fixtures/kbn_archiver/discover.json
[00:08:37]               │ info importing 2 saved objects { space: undefined }
[00:08:40]               │ succ import success
[00:08:44]               │ info [logstash_functional] Loading "mappings.json"
[00:08:44]               │ info [logstash_functional] Loading "data.json.gz"
[00:08:45]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1617750377924370487] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:08:45]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1617750377924370487] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]]).
[00:08:45]               │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:08:45]               │ 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:08:45]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1617750377924370487] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:08:45]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1617750377924370487] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]]).
[00:08:45]               │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:08:45]               │ 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:08:45]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1617750377924370487] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:08:45]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1617750377924370487] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]]).
[00:08:45]               │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:08:45]               │ 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:08:54]               │ info progress: 13541
[00:08:55]               │ info [logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:08:55]               │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:08:55]               │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:08:55]               │ debg replacing kibana config doc: {"defaultIndex":"logstash-*"}
[00:09:02]               │ debg navigating to discover url: http://localhost:61161/app/discover#/
[00:09:02]               │ debg navigate to: http://localhost:61161/app/discover#/
[00:09:03]               │ debg browser[INFO] http://localhost:61161/app/discover?_t=1617752698378#/ 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:09:03]               │
[00:09:03]               │ debg browser[INFO] http://localhost:61161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:09:03]               │ debg ... sleep(700) start
[00:09:04]               │ debg ... sleep(700) end
[00:09:04]               │ debg returned from get, calling refresh
[00:09:12]               │ debg browser[INFO] http://localhost:61161/app/discover?_t=1617752698378#/ 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:09:12]               │
[00:09:12]               │ debg browser[INFO] http://localhost:61161/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:09:12]               │ debg currentUrl = http://localhost:61161/app/discover#/
[00:09:12]               │          appUrl = http://localhost:61161/app/discover#/
[00:09:12]               │ debg TestSubjects.find(kibanaChrome)
[00:09:12]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:09:12]               │ debg ... sleep(501) start
[00:09:13]               │ debg ... sleep(501) end
[00:09:13]               │ debg in navigateTo url = http://localhost:61161/app/discover#/
[00:09:13]               │ debg TestSubjects.exists(statusPageContainer)
[00:09:13]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:09:15]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:09:16]               │ debg Setting absolute range to Sep 19, 2015 @ 06:31:44.000 to Sep 23, 2015 @ 18:31:44.000
[00:09:16]               │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:09:16]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:09:16]               │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:09:16]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:09:16]               │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:09:16]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:09:16]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:09:16]               │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:09:16]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:09:16]               │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:09:16]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:09:16]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:09:16]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:09:16]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:09:16]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:09:16]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:09:16]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:09:16]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:09:16]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:09:16]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 23, 2015 @ 18:31:44.000)
[00:09:16]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:09:16]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:09:16]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:09:17]               │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:09:17]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:09:17]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:09:17]               │ debg Find.waitForElementStale with timeout=10000
[00:09:17]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:09:17]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:09:17]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:09:17]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:09:17]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:09:17]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:09:17]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:09:17]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 19, 2015 @ 06:31:44.000)
[00:09:17]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:09:17]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:09:17]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:09:18]               │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:09:18]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:09:20]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:09:21]               │ debg TestSubjects.click(querySubmitButton)
[00:09:21]               │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:09:21]               │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:09:21]               │ debg Find.waitForElementStale with timeout=10000
[00:09:21]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:21]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:10:54]             └-: query #2, which has an empty time range
[00:10:54]               └-> "before all" hook for "should show "no results""
[00:10:54]               └-> "before all" hook for "should show "no results""
[00:10:54]                 │ debg setAbsoluteRangeForAnotherQuery
[00:10:54]                 │ debg Setting absolute range to Jun 11, 1999 @ 09:22:11.000 to Jun 12, 1999 @ 11:21:04.000
[00:10:54]                 │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:10:54]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:10:54]                 │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:10:54]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:10:56]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerShowDatesButton"] is not displayed
[00:10:57]                 │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:10:57]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:10:57]                 │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:10:57]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:10:57]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:10:57]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:10:57]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:10:57]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:10:57]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:10:57]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:10:57]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:10:57]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:10:57]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Jun 12, 1999 @ 11:21:04.000)
[00:10:57]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:10:57]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:10:57]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:10:58]                 │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:10:58]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:10:58]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:10:58]                 │ debg Find.waitForElementStale with timeout=10000
[00:10:58]                 │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:10:58]                 │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:10:58]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:10:58]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:10:58]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:10:58]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:10:58]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:10:58]                 │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Jun 11, 1999 @ 09:22:11.000)
[00:10:58]                 │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:10:58]                 │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:10:58]                 │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:10:59]                 │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:10:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:11:01]                 │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:11:02]                 │ debg TestSubjects.click(querySubmitButton)
[00:11:02]                 │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:11:02]                 │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:11:02]                 │ debg Find.waitForElementStale with timeout=10000
[00:11:02]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:11:02]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:11:02]                 │ debg TestSubjects.missingOrFail(loadingSpinner)
[00:11:02]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="loadingSpinner"]') with timeout=100000
[00:11:03]               └-> should show "no results"
[00:11:03]                 └-> "before each" hook: global before each for "should show "no results""
[00:11:03]                 │ debg TestSubjects.exists(discoverNoResults)
[00:11:03]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="discoverNoResults"]') with timeout=2500
[00:11:06]                 │ debg --- retry.tryForTime error: [data-test-subj="discoverNoResults"] is not displayed
[00:11:06]                 │ info Taking screenshot "/dev/shm/workspace/parallel/16/kibana/test/functional/screenshots/failure/discover app discover test query _2_ which has an empty time range should show _no results_.png"
[00:11:10]                 │ info Current URL is: http://localhost:61161/app/discover#/view/28fc3b70-9732-11eb-b17f-232bfc278780?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%271999-06-11T09:22:11.000Z%27,to:%271999-06-12T11:21:04.000Z%27))&_a=(columns:!(),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!(!(%27@timestamp%27,desc)))
[00:11:10]                 │ info Saving page source to: /dev/shm/workspace/parallel/16/kibana/test/functional/failure_debug/html/discover app discover test query _2_ which has an empty time range should show _no results_.html
[00:11:10]                 └- ✖ fail: discover app discover test query #2, which has an empty time range should show "no results"
[00:11:10]                 │      Error: expected false to equal true
[00:11:10]                 │       at Assertion.assert (node_modules/@kbn/expect/expect.js:100:11)
[00:11:10]                 │       at Assertion.be.Assertion.equal (node_modules/@kbn/expect/expect.js:227:8)
[00:11:10]                 │       at Assertion.be (node_modules/@kbn/expect/expect.js:69:22)
[00:11:10]                 │       at Context.<anonymous> (test/functional/apps/discover/_discover.ts:190:30)
[00:11:10]                 │       at Object.apply (node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:11:10]                 │ 
[00:11:10]                 │ 

Stack Trace

Error: expected false to equal true
    at Assertion.assert (node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.be.Assertion.equal (node_modules/@kbn/expect/expect.js:227:8)
    at Assertion.be (node_modules/@kbn/expect/expect.js:69:22)
    at Context.<anonymous> (test/functional/apps/discover/_discover.ts:190:30)
    at Object.apply (node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

✅ unchanged

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

cc @cauemarcondes

@kibanamachine kibanamachine merged commit e4d521f into elastic:7.x Apr 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants