Skip to content

[7.x] Detection Rule Exception List telemetry (#113239)#114504

Merged
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-113239
Oct 11, 2021
Merged

[7.x] Detection Rule Exception List telemetry (#113239)#114504
kibanamachine merged 1 commit intoelastic:7.xfrom
kibanamachine:backport/7.x/pr-113239

Conversation

@kibanamachine
Copy link
Contributor

Backports the following commits to 7.x:

* Add telemetry for detection rule exception lists to improve UX.

* Add length for debugging.

* Fix type.

* Clean up exception list telemetry document.

* Dynamically set kibana index (just in case).

* Update task title.

* Rename version to rule_version.

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Oct 11, 2021
@kibanamachine kibanamachine enabled auto-merge (squash) October 11, 2021 14:24
@kibanamachine
Copy link
Contributor Author

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome UI Functional Tests.test/functional/apps/discover/_indexpattern_without_timefield·ts.discover app indexpattern without timefield should switch between with and without timefield using the browser back button

Link to Jenkins

Standard Out

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

[00:00:00]     │
[00:10:10]       └-: discover app
[00:10:10]         └-> "before all" hook in "discover app"
[00:10:11]         └-> "before all" hook in "discover app"
[00:30:50]         └-: indexpattern without timefield
[00:30:50]           └-> "before all" hook for "should not display a timepicker"
[00:30:50]           └-> "before all" hook for "should not display a timepicker"
[00:30:50]             │ info [test/functional/fixtures/es_archiver/index_pattern_without_timefield] Loading "mappings.json"
[00:30:50]             │ info [test/functional/fixtures/es_archiver/index_pattern_without_timefield] Loading "data.json"
[00:30:50]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [without-timefield] creating index, cause [api], templates [], shards [1]/[0]
[00:30:50]             │ info [test/functional/fixtures/es_archiver/index_pattern_without_timefield] Created index "without-timefield"
[00:30:50]             │ debg [test/functional/fixtures/es_archiver/index_pattern_without_timefield] "without-timefield" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:30:50]             │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [with-timefield] creating index, cause [api], templates [], shards [1]/[0]
[00:30:50]             │ info [test/functional/fixtures/es_archiver/index_pattern_without_timefield] Created index "with-timefield"
[00:30:50]             │ debg [test/functional/fixtures/es_archiver/index_pattern_without_timefield] "with-timefield" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:30:50]             │ info [o.e.c.m.MetadataMappingService] [node-01] [without-timefield/G5Pe2Q_dTimJU2Txri07lA] create_mapping [_doc]
[00:30:50]             │ info [o.e.c.m.MetadataMappingService] [node-01] [with-timefield/j-x9olSMTm6mo5-EDmyBMg] update_mapping [_doc]
[00:30:50]             │ info [test/functional/fixtures/es_archiver/index_pattern_without_timefield] Indexed 1 docs into "without-timefield"
[00:30:50]             │ info [test/functional/fixtures/es_archiver/index_pattern_without_timefield] Indexed 1 docs into "with-timefield"
[00:30:50]             │ info [test/functional/fixtures/es_archiver/index_pattern_without_timefield] Indexed 2 docs into ".kibana"
[00:30:50]             │ debg Migrating saved objects
[00:30:50]             │ proc [kibana]   log   [15:43:42.778] [info][savedobjects-service] [.kibana_task_manager] INIT -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 2ms.
[00:30:50]             │ proc [kibana]   log   [15:43:42.781] [info][savedobjects-service] [.kibana] INIT -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 7ms.
[00:30:50]             │ proc [kibana]   log   [15:43:42.782] [info][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 4ms.
[00:30:50]             │ proc [kibana]   log   [15:43:42.783] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 2ms.
[00:30:50]             │ proc [kibana]   log   [15:43:42.786] [info][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 4ms.
[00:30:50]             │ proc [kibana]   log   [15:43:42.787] [info][savedobjects-service] [.kibana_task_manager] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 1ms.
[00:30:50]             │ proc [kibana]   log   [15:43:42.788] [info][savedobjects-service] [.kibana] Starting to process 2 documents.
[00:30:50]             │ proc [kibana]   log   [15:43:42.789] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_TRANSFORM. took: 5ms.
[00:30:50]             │ proc [kibana]   log   [15:43:42.790] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_TRANSFORM -> TRANSFORMED_DOCUMENTS_BULK_INDEX. took: 1ms.
[00:30:50]             │ proc [kibana]   log   [15:43:42.793] [info][savedobjects-service] [.kibana] TRANSFORMED_DOCUMENTS_BULK_INDEX -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 4ms.
[00:30:50]             │ proc [kibana]   log   [15:43:42.795] [info][savedobjects-service] [.kibana_task_manager] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 8ms.
[00:30:50]             │ proc [kibana]   log   [15:43:42.798] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 5ms.
[00:30:50]             │ proc [kibana]   log   [15:43:42.799] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> OUTDATED_DOCUMENTS_REFRESH. took: 1ms.
[00:30:50]             │ info [o.e.t.LoggingTaskListener] [node-01] 27106 finished with response BulkByScrollResponse[took=11.2ms,timed_out=false,sliceId=null,updated=1,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:30:50]             │ proc [kibana]   log   [15:43:42.814] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_REFRESH -> UPDATE_TARGET_MAPPINGS. took: 15ms.
[00:30:50]             │ proc [kibana]   log   [15:43:42.853] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 39ms.
[00:30:50]             │ info [o.e.t.LoggingTaskListener] [node-01] 27134 finished with response BulkByScrollResponse[took=27.5ms,timed_out=false,sliceId=null,updated=48,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:30:50]             │ proc [kibana]   log   [15:43:42.898] [info][savedobjects-service] [.kibana_task_manager] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> DONE. took: 103ms.
[00:30:50]             │ proc [kibana]   log   [15:43:42.899] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 123ms
[00:30:50]             │ proc [kibana]   log   [15:43:42.956] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> DONE. took: 103ms.
[00:30:50]             │ proc [kibana]   log   [15:43:42.957] [info][savedobjects-service] [.kibana] Migration completed after 183ms
[00:30:50]             │ debg [test/functional/fixtures/es_archiver/index_pattern_without_timefield] Migrated Kibana index after loading Kibana data
[00:30:50]             │ debg [test/functional/fixtures/es_archiver/index_pattern_without_timefield] Ensured that default space exists in .kibana
[00:30:50]             │ debg replacing kibana config doc: {"defaultIndex":"without-timefield","timepicker:timeDefaults":"{  \"from\": \"2019-01-18T19:37:13.000Z\",  \"to\": \"now\"}"}
[00:30:51]             │ debg navigating to discover url: http://localhost:61201/app/discover#/
[00:30:51]             │ debg navigate to: http://localhost:61201/app/discover#/
[00:30:51]             │ debg browser[INFO] http://localhost:61201/app/discover?_t=1633967023369#/ 281 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:30:51]             │
[00:30:51]             │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:30:51]             │ debg ... sleep(700) start
[00:30:52]             │ debg ... sleep(700) end
[00:30:52]             │ debg returned from get, calling refresh
[00:30:53]             │ debg browser[INFO] http://localhost:61201/app/discover?_t=1633967023369#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:'2019-01-18T19:37:13.000Z',to:now))&_a=(columns:!(),filters:!(),index:without-timefield,interval:auto,query:(language:kuery,query:''),sort:!()) 281 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:30:53]             │
[00:30:53]             │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:30:53]             │ debg currentUrl = http://localhost:61201/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272019-01-18T19:37:13.000Z%27,to:now))&_a=(columns:!(),filters:!(),index:without-timefield,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:30:53]             │          appUrl = http://localhost:61201/app/discover#/
[00:30:53]             │ debg TestSubjects.find(kibanaChrome)
[00:30:53]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:30:53]             │ debg ... sleep(501) start
[00:30:53]             │ debg ... sleep(501) end
[00:30:53]             │ debg in navigateTo url = http://localhost:61201/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272019-01-18T19:37:13.000Z%27,to:now))&_a=(columns:!(),filters:!(),index:without-timefield,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:30:53]           └-> should not display a timepicker
[00:30:53]             └-> "before each" hook: global before each for "should not display a timepicker"
[00:30:53]             │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:30:53]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=2500
[00:30:56]             │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerToggleQuickMenuButton"] is not displayed
[00:30:56]             └- ✓ pass  (3.1s) "discover app indexpattern without timefield should not display a timepicker"
[00:30:56]           └-> should adapt sidebar fields when switching
[00:30:56]             └-> "before each" hook: global before each for "should adapt sidebar fields when switching"
[00:30:56]             │ debg TestSubjects.click(indexPattern-switch-link)
[00:30:56]             │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:30:56]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:30:57]             │ debg Find.setValue('[data-test-subj="indexPattern-switcher"] input', 'with-timefield')
[00:30:57]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] input') with timeout=10000
[00:30:57]             │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switcher"] [title="with-timefield"]') with timeout=10000
[00:30:57]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] [title="with-timefield"]') with timeout=10000
[00:30:57]             │ debg isGlobalLoadingIndicatorVisible
[00:30:57]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:30:57]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:30:59]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:30:59]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:30:59]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:30:59]             │ debg TestSubjects.exists(field-@timestamp)
[00:30:59]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="field-@timestamp"]') with timeout=2500
[00:30:59]             │ debg TestSubjects.click(indexPattern-switch-link)
[00:30:59]             │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:30:59]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:30:59]             │ debg Find.setValue('[data-test-subj="indexPattern-switcher"] input', 'without-timefield')
[00:30:59]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] input') with timeout=10000
[00:30:59]             │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switcher"] [title="without-timefield"]') with timeout=10000
[00:30:59]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] [title="without-timefield"]') with timeout=10000
[00:31:00]             │ debg isGlobalLoadingIndicatorVisible
[00:31:00]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:31:00]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:31:01]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:31:02]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:31:02]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:31:02]             │ debg Find.waitForAttributeToChange('[data-test-subj="discoverDocTable"]', 'data-render-complete', 'true')
[00:31:02]             │ debg Waiting up to 20000ms for data-render-complete to equal "true"...
[00:31:02]             │ debg Find.findByCssSelector('[data-test-subj="discoverDocTable"]') with timeout=10000
[00:31:02]             │ debg TestSubjects.exists(field-@timestamp)
[00:31:02]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="field-@timestamp"]') with timeout=2500
[00:31:04]             │ debg --- retry.tryForTime error: [data-test-subj="field-@timestamp"] is not displayed
[00:31:05]             └- ✓ pass  (8.3s) "discover app indexpattern without timefield should adapt sidebar fields when switching"
[00:31:05]           └-> should display a timepicker after switching to an index pattern with timefield
[00:31:05]             └-> "before each" hook: global before each for "should display a timepicker after switching to an index pattern with timefield"
[00:31:05]             │ debg TestSubjects.click(indexPattern-switch-link)
[00:31:05]             │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:05]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:05]             │ debg Find.setValue('[data-test-subj="indexPattern-switcher"] input', 'with-timefield')
[00:31:05]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] input') with timeout=10000
[00:31:05]             │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switcher"] [title="with-timefield"]') with timeout=10000
[00:31:05]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] [title="with-timefield"]') with timeout=10000
[00:31:05]             │ debg isGlobalLoadingIndicatorVisible
[00:31:05]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:31:05]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:31:07]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:31:07]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:31:07]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:31:07]             │ debg Find.waitForAttributeToChange('[data-test-subj="discoverDocTable"]', 'data-render-complete', 'true')
[00:31:07]             │ debg Waiting up to 20000ms for data-render-complete to equal "true"...
[00:31:07]             │ debg Find.findByCssSelector('[data-test-subj="discoverDocTable"]') with timeout=10000
[00:31:07]             │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:31:07]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=2500
[00:31:07]             └- ✓ pass  (2.6s) "discover app indexpattern without timefield should display a timepicker after switching to an index pattern with timefield"
[00:31:07]           └-> should switch between with and without timefield using the browser back button
[00:31:07]             └-> "before each" hook: global before each for "should switch between with and without timefield using the browser back button"
[00:31:07]             │ debg TestSubjects.click(indexPattern-switch-link)
[00:31:07]             │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:07]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:07]             │ debg Find.setValue('[data-test-subj="indexPattern-switcher"] input', 'without-timefield')
[00:31:07]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] input') with timeout=10000
[00:31:08]             │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switcher"] [title="without-timefield"]') with timeout=10000
[00:31:08]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] [title="without-timefield"]') with timeout=10000
[00:31:08]             │ debg isGlobalLoadingIndicatorVisible
[00:31:08]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:31:08]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:31:09]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:31:10]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:31:10]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:31:10]             │ debg Find.waitForAttributeToChange('[data-test-subj="discoverDocTable"]', 'data-render-complete', 'true')
[00:31:10]             │ debg Waiting up to 20000ms for data-render-complete to equal "true"...
[00:31:10]             │ debg Find.findByCssSelector('[data-test-subj="discoverDocTable"]') with timeout=10000
[00:31:10]             │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:31:10]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=2500
[00:31:12]             │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerToggleQuickMenuButton"] is not displayed
[00:31:13]             │ debg TestSubjects.click(indexPattern-switch-link)
[00:31:13]             │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:13]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:13]             │ debg Find.setValue('[data-test-subj="indexPattern-switcher"] input', 'with-timefield')
[00:31:13]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] input') with timeout=10000
[00:31:13]             │ debg Find.clickByCssSelector('[data-test-subj="indexPattern-switcher"] [title="with-timefield"]') with timeout=10000
[00:31:13]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switcher"] [title="with-timefield"]') with timeout=10000
[00:31:14]             │ debg isGlobalLoadingIndicatorVisible
[00:31:14]             │ debg TestSubjects.exists(globalLoadingIndicator)
[00:31:14]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:31:15]             │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:31:16]             │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:31:16]             │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:31:16]             │ debg Find.waitForAttributeToChange('[data-test-subj="discoverDocTable"]', 'data-render-complete', 'true')
[00:31:16]             │ debg Waiting up to 20000ms for data-render-complete to equal "true"...
[00:31:16]             │ debg Find.findByCssSelector('[data-test-subj="discoverDocTable"]') with timeout=10000
[00:31:16]             │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:31:16]             │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=2500
[00:31:16]             │ debg Find.waitForAttributeToChange('[data-test-subj="discoverDocTable"]', 'data-render-complete', 'true')
[00:31:16]             │ debg Waiting up to 20000ms for data-render-complete to equal "true"...
[00:31:16]             │ debg Find.findByCssSelector('[data-test-subj="discoverDocTable"]') with timeout=10000
[00:31:16]             │ debg Waiting up to 5000ms for index pattern to have been switched back to "without-timefield"...
[00:31:16]             │ debg TestSubjects.getVisibleText(indexPattern-switch-link)
[00:31:16]             │ debg TestSubjects.find(indexPattern-switch-link)
[00:31:16]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:16]             │ debg TestSubjects.getVisibleText(indexPattern-switch-link)
[00:31:16]             │ debg TestSubjects.find(indexPattern-switch-link)
[00:31:16]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:17]             │ debg TestSubjects.getVisibleText(indexPattern-switch-link)
[00:31:17]             │ debg TestSubjects.find(indexPattern-switch-link)
[00:31:17]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:17]             │ debg TestSubjects.getVisibleText(indexPattern-switch-link)
[00:31:17]             │ debg TestSubjects.find(indexPattern-switch-link)
[00:31:17]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:18]             │ debg TestSubjects.getVisibleText(indexPattern-switch-link)
[00:31:18]             │ debg TestSubjects.find(indexPattern-switch-link)
[00:31:18]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:18]             │ debg TestSubjects.getVisibleText(indexPattern-switch-link)
[00:31:18]             │ debg TestSubjects.find(indexPattern-switch-link)
[00:31:18]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:19]             │ debg TestSubjects.getVisibleText(indexPattern-switch-link)
[00:31:19]             │ debg TestSubjects.find(indexPattern-switch-link)
[00:31:19]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:19]             │ debg TestSubjects.getVisibleText(indexPattern-switch-link)
[00:31:19]             │ debg TestSubjects.find(indexPattern-switch-link)
[00:31:19]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:20]             │ debg TestSubjects.getVisibleText(indexPattern-switch-link)
[00:31:20]             │ debg TestSubjects.find(indexPattern-switch-link)
[00:31:20]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:20]             │ debg TestSubjects.getVisibleText(indexPattern-switch-link)
[00:31:20]             │ debg TestSubjects.find(indexPattern-switch-link)
[00:31:20]             │ debg Find.findByCssSelector('[data-test-subj="indexPattern-switch-link"]') with timeout=10000
[00:31:21]             │ info Taking screenshot "/dev/shm/workspace/parallel/20/kibana/test/functional/screenshots/failure/discover app indexpattern without timefield should switch between with and without timefield using the browser back button.png"
[00:31:21]             │ info Current URL is: http://localhost:61201/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272019-01-18T19:37:13.000Z%27,to:now))&_a=(columns:!(),filters:!(),index:without-timefield,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:31:21]             │ info Saving page source to: /dev/shm/workspace/parallel/20/kibana/test/functional/failure_debug/html/discover app indexpattern without timefield should switch between with and without timefield using the browser back button.html
[00:31:21]             └- ✖ fail: discover app indexpattern without timefield should switch between with and without timefield using the browser back button
[00:31:21]             │      Error: timed out waiting for index pattern to have been switched back to "without-timefield"
[00:31:21]             │       at onFailure (test/common/services/retry/retry_for_truthy.ts:39:13)
[00:31:21]             │       at retryForSuccess (test/common/services/retry/retry_for_success.ts:59:13)
[00:31:21]             │       at retryForTruthy (test/common/services/retry/retry_for_truthy.ts:27:3)
[00:31:21]             │       at RetryService.waitForWithTimeout (test/common/services/retry/retry.ts:45:5)
[00:31:21]             │       at Context.<anonymous> (test/functional/apps/discover/_indexpattern_without_timefield.ts:80:7)
[00:31:21]             │       at Object.apply (node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:31:21]             │ 
[00:31:21]             │ 

Stack Trace

Error: timed out waiting for index pattern to have been switched back to "without-timefield"
    at onFailure (test/common/services/retry/retry_for_truthy.ts:39:13)
    at retryForSuccess (test/common/services/retry/retry_for_success.ts:59:13)
    at retryForTruthy (test/common/services/retry/retry_for_truthy.ts:27:3)
    at RetryService.waitForWithTimeout (test/common/services/retry/retry.ts:45:5)
    at Context.<anonymous> (test/functional/apps/discover/_indexpattern_without_timefield.ts:80:7)
    at Object.apply (node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

✅ unchanged

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

cc @pjhampton

@kibanamachine kibanamachine merged commit 5f9fc99 into elastic:7.x Oct 11, 2021
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.

2 participants