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

[Lens] Restart session if fixed now becomes outdated #88575

Merged
merged 4 commits into from
Jan 21, 2021

Conversation

flash1293
Copy link
Contributor

Because of #84405 and the usage of sessions in Lens, right now the value for "now" in date math used in the time range in the Lens editor is only reset if the query/time range is changed or the refresh button is used. Changing the visualization/datasource state will keep the previous "now" value - if the editor is left open a while, this can lead to a large difference between the configured time range and the shown data.

This PR fixes this by checking on each state change how much the "now" value of the session diverges from the actual current time - if this lag is larger than 2% of the total configured time range, the session will be reset.

Related changes

  • Moved the logic to get the current time range (and the new logic checking the "now" lag) into a new hook useTimeRange
  • The editor frame gets the resolved time range based on the fixed "now" value passed in as time range instead of the raw datemath. This is done to keep other time range usages inside of the editor in sync with the range data is fetched for. For example if xy chart with a time x axis is used, the current time range is used as extents of the axis, causing every state change to cause a little jump (because time has passed since the last chart render). This PR removes this jump if the elapsed time is not more than 2% of the total time range
  • Added a deep comparison check for the new doc passed up from the frame to the app - otherwise lastKnownDoc updates on every onChange call no matter whether the doc actually changed
  • Removed date range from the dependency list of the onChange effect in the frame passing up the current state to the app because nothing within it depends on the date range (I believe this is a leftover)

@flash1293 flash1293 added 8.0.0 Feature:Lens release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.12.0 labels Jan 18, 2021
@flash1293 flash1293 marked this pull request as ready for review January 18, 2021 12:47
@flash1293 flash1293 requested a review from a team January 18, 2021 12:47
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app (Team:KibanaApp)

@flash1293
Copy link
Contributor Author

@elasticmachine merge upstream

@flash1293
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Chrome X-Pack UI Functional Tests.x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/connectors·ts.Actions and Triggers app Connectors should test a connector and display a successful result

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: Actions and Triggers app
[00:00:00]           └-> "before all" hook
[00:00:36]           └-: Connectors
[00:00:36]             └-> "before all" hook
[00:00:36]             └-> "before all" hook
[00:00:37]               │ debg navigating to triggersActions url: http://localhost:61191/app/management/insightsAndAlerting/triggersActions
[00:00:37]               │ debg navigate to: http://localhost:61191/app/management/insightsAndAlerting/triggersActions
[00:00:37]               │ debg browser[INFO] http://localhost:61191/app/management/insightsAndAlerting/triggersActions?_t=1611137045907 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:37]               │
[00:00:37]               │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:37]               │ debg ... sleep(700) start
[00:00:37]               │ debg ... sleep(700) end
[00:00:37]               │ debg returned from get, calling refresh
[00:00:38]               │ debg browser[INFO] http://localhost:61191/app/management/insightsAndAlerting/triggersActions?_t=1611137045907 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:38]               │
[00:00:38]               │ debg browser[INFO] http://localhost:61191/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:38]               │ debg currentUrl = http://localhost:61191/app/management/insightsAndAlerting/triggersActions
[00:00:38]               │          appUrl = http://localhost:61191/app/management/insightsAndAlerting/triggersActions
[00:00:38]               │ debg TestSubjects.find(kibanaChrome)
[00:00:38]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:39]               │ debg ... sleep(501) start
[00:00:39]               │ debg ... sleep(501) end
[00:00:39]               │ debg in navigateTo url = http://localhost:61191/app/management/insightsAndAlerting/triggersActions/alerts
[00:00:39]               │ debg --- retry.try error: URL changed, waiting for it to settle
[00:00:40]               │ debg ... sleep(501) start
[00:00:40]               │ debg ... sleep(501) end
[00:00:40]               │ debg in navigateTo url = http://localhost:61191/app/management/insightsAndAlerting/triggersActions/alerts
[00:00:40]               │ debg TestSubjects.exists(statusPageContainer)
[00:00:40]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:43]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:43]               │ debg TestSubjects.click(connectorsTab)
[00:00:43]               │ debg Find.clickByCssSelector('[data-test-subj="connectorsTab"]') with timeout=10000
[00:00:43]               │ debg Find.findByCssSelector('[data-test-subj="connectorsTab"]') with timeout=10000
[00:00:43]             └-> should create a connector
[00:00:43]               └-> "before each" hook: global before each
[00:00:43]               │ debg TestSubjects.find(createActionButton)
[00:00:43]               │ debg Find.findByCssSelector('[data-test-subj="createActionButton"]') with timeout=10000
[00:00:44]               │ debg TestSubjects.click(.index-card)
[00:00:44]               │ debg Find.clickByCssSelector('[data-test-subj=".index-card"]') with timeout=10000
[00:00:44]               │ debg Find.findByCssSelector('[data-test-subj=".index-card"]') with timeout=10000
[00:00:44]               │ debg Find.clickByCssSelector('[data-test-subj="backButton"]') with timeout=10000
[00:00:44]               │ debg Find.findByCssSelector('[data-test-subj="backButton"]') with timeout=10000
[00:00:44]               │ debg TestSubjects.click(.slack-card)
[00:00:44]               │ debg Find.clickByCssSelector('[data-test-subj=".slack-card"]') with timeout=10000
[00:00:44]               │ debg Find.findByCssSelector('[data-test-subj=".slack-card"]') with timeout=10000
[00:00:44]               │ debg TestSubjects.setValue(nameInput, 63de1311b9c64f19af01e421676bd59e)
[00:00:44]               │ debg TestSubjects.click(nameInput)
[00:00:44]               │ debg Find.clickByCssSelector('[data-test-subj="nameInput"]') with timeout=10000
[00:00:44]               │ debg Find.findByCssSelector('[data-test-subj="nameInput"]') with timeout=10000
[00:00:45]               │ debg TestSubjects.setValue(slackWebhookUrlInput, https://test)
[00:00:45]               │ debg TestSubjects.click(slackWebhookUrlInput)
[00:00:45]               │ debg Find.clickByCssSelector('[data-test-subj="slackWebhookUrlInput"]') with timeout=10000
[00:00:45]               │ debg Find.findByCssSelector('[data-test-subj="slackWebhookUrlInput"]') with timeout=10000
[00:00:46]               │ debg Find.clickByCssSelector('[data-test-subj="saveNewActionButton"]:not(disabled)') with timeout=10000
[00:00:46]               │ debg Find.findByCssSelector('[data-test-subj="saveNewActionButton"]:not(disabled)') with timeout=10000
[00:00:46]               │ debg Find.findByCssSelector('.euiToast') with timeout=20000
[00:00:47]               │ debg Find.findByCssSelector('.euiToastHeader__title') with timeout=10000
[00:00:47]               │ debg Find.clickByCssSelector('.euiToast__closeButton') with timeout=10000
[00:00:47]               │ debg Find.findByCssSelector('.euiToast__closeButton') with timeout=10000
[00:00:47]               │ debg Find.findByCssSelector('[data-test-subj="actionsList"] .euiFieldSearch') with timeout=10000
[00:00:47]               │ debg Find.findByCssSelector('.euiBasicTable[data-test-subj="actionsTable"]:not(.euiBasicTable-loading)') with timeout=10000
[00:00:47]               │ debg Find.findByCssSelector('[data-test-subj="actionsList"] table') with timeout=10000
[00:00:47]               └- ✓ pass  (3.8s) "Actions and Triggers app Connectors should create a connector"
[00:00:47]             └-> should edit a connector
[00:00:47]               └-> "before each" hook: global before each
[00:00:47]               │ debg TestSubjects.find(createActionButton)
[00:00:47]               │ debg Find.findByCssSelector('[data-test-subj="createActionButton"]') with timeout=10000
[00:00:47]               │ debg TestSubjects.click(.slack-card)
[00:00:47]               │ debg Find.clickByCssSelector('[data-test-subj=".slack-card"]') with timeout=10000
[00:00:47]               │ debg Find.findByCssSelector('[data-test-subj=".slack-card"]') with timeout=10000
[00:00:48]               │ debg TestSubjects.setValue(nameInput, 4c71e252fee440aa9a37c9e3db18bcee)
[00:00:48]               │ debg TestSubjects.click(nameInput)
[00:00:48]               │ debg Find.clickByCssSelector('[data-test-subj="nameInput"]') with timeout=10000
[00:00:48]               │ debg Find.findByCssSelector('[data-test-subj="nameInput"]') with timeout=10000
[00:00:48]               │ debg TestSubjects.setValue(slackWebhookUrlInput, https://test)
[00:00:48]               │ debg TestSubjects.click(slackWebhookUrlInput)
[00:00:48]               │ debg Find.clickByCssSelector('[data-test-subj="slackWebhookUrlInput"]') with timeout=10000
[00:00:48]               │ debg Find.findByCssSelector('[data-test-subj="slackWebhookUrlInput"]') with timeout=10000
[00:00:49]               │ debg Find.clickByCssSelector('[data-test-subj="saveNewActionButton"]:not(disabled)') with timeout=10000
[00:00:49]               │ debg Find.findByCssSelector('[data-test-subj="saveNewActionButton"]:not(disabled)') with timeout=10000
[00:00:49]               │ debg Find.findByCssSelector('.euiToast') with timeout=20000
[00:00:50]               │ debg Find.findByCssSelector('.euiToastHeader__title') with timeout=10000
[00:00:50]               │ debg Find.clickByCssSelector('.euiToast__closeButton') with timeout=10000
[00:00:50]               │ debg Find.findByCssSelector('.euiToast__closeButton') with timeout=10000
[00:00:50]               │ debg Find.findByCssSelector('[data-test-subj="actionsList"] .euiFieldSearch') with timeout=10000
[00:00:50]               │ debg Find.findByCssSelector('.euiBasicTable[data-test-subj="actionsTable"]:not(.euiBasicTable-loading)') with timeout=10000
[00:00:50]               │ debg Find.findByCssSelector('[data-test-subj="actionsList"] table') with timeout=10000
[00:00:50]               │ debg Find.clickByCssSelector('[data-test-subj="connectorsTableCell-name"] button') with timeout=10000
[00:00:50]               │ debg Find.findByCssSelector('[data-test-subj="connectorsTableCell-name"] button') with timeout=10000
[00:00:50]               │ debg TestSubjects.setValue(nameInput, 4c71e252fee440aa9a37c9e3db18bceeupdated)
[00:00:50]               │ debg TestSubjects.click(nameInput)
[00:00:50]               │ debg Find.clickByCssSelector('[data-test-subj="nameInput"]') with timeout=10000
[00:00:50]               │ debg Find.findByCssSelector('[data-test-subj="nameInput"]') with timeout=10000
[00:00:51]               │ debg TestSubjects.setValue(slackWebhookUrlInput, https://test)
[00:00:51]               │ debg TestSubjects.click(slackWebhookUrlInput)
[00:00:51]               │ debg Find.clickByCssSelector('[data-test-subj="slackWebhookUrlInput"]') with timeout=10000
[00:00:51]               │ debg Find.findByCssSelector('[data-test-subj="slackWebhookUrlInput"]') with timeout=10000
[00:00:52]               │ debg Find.clickByCssSelector('[data-test-subj="saveAndCloseEditedActionButton"]:not(disabled)') with timeout=10000
[00:00:52]               │ debg Find.findByCssSelector('[data-test-subj="saveAndCloseEditedActionButton"]:not(disabled)') with timeout=10000
[00:00:52]               │ debg Find.findByCssSelector('.euiToast') with timeout=20000
[00:00:53]               │ debg Find.findByCssSelector('.euiToastHeader__title') with timeout=10000
[00:00:53]               │ debg Find.clickByCssSelector('.euiToast__closeButton') with timeout=10000
[00:00:53]               │ debg Find.findByCssSelector('.euiToast__closeButton') with timeout=10000
[00:00:53]               │ debg Find.findByCssSelector('[data-test-subj="actionsList"] .euiFieldSearch') with timeout=10000
[00:00:53]               │ debg Find.findByCssSelector('.euiBasicTable[data-test-subj="actionsTable"]:not(.euiBasicTable-loading)') with timeout=10000
[00:00:53]               │ debg Find.findByCssSelector('[data-test-subj="actionsList"] table') with timeout=10000
[00:00:53]               └- ✓ pass  (6.0s) "Actions and Triggers app Connectors should edit a connector"
[00:00:53]             └-> should test a connector and display a successful result
[00:00:53]               └-> "before each" hook: global before each
[00:00:53]               │ debg TestSubjects.find(createActionButton)
[00:00:53]               │ debg Find.findByCssSelector('[data-test-subj="createActionButton"]') with timeout=10000
[00:00:53]               │ debg TestSubjects.click(.index-card)
[00:00:53]               │ debg Find.clickByCssSelector('[data-test-subj=".index-card"]') with timeout=10000
[00:00:53]               │ debg Find.findByCssSelector('[data-test-subj=".index-card"]') with timeout=10000
[00:00:53]               │ debg TestSubjects.setValue(nameInput, 17098bae4c4f4d1e913239aab69e63ac)
[00:00:53]               │ debg TestSubjects.click(nameInput)
[00:00:53]               │ debg Find.clickByCssSelector('[data-test-subj="nameInput"]') with timeout=10000
[00:00:53]               │ debg Find.findByCssSelector('[data-test-subj="nameInput"]') with timeout=10000
[00:00:54]               │ debg comboBox.set, comboBoxSelector: connectorIndexesComboBox
[00:00:54]               │ debg TestSubjects.find(connectorIndexesComboBox)
[00:00:54]               │ debg Find.findByCssSelector('[data-test-subj="connectorIndexesComboBox"]') with timeout=10000
[00:00:54]               │ debg comboBox.setElement, value: 105c277f14274e8b8900730f6bdbc739
[00:00:54]               │ debg comboBox.isOptionSelected, value: 105c277f14274e8b8900730f6bdbc739
[00:00:57]               │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:00:57]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:00:57]               │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="105c277f14274e8b8900730f6bdbc739"]') with timeout=2500
[00:00:59]               │ debg Find.findByCssSelector('.euiFilterSelectItem') with timeout=5000
[00:01:00]               │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:01:00]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:01:02]               │ debg --- retry.tryForTime error: [data-test-subj~="comboBoxOptionsList"] is not displayed
[00:01:03]               │ debg Find.clickByCssSelector('[data-test-subj="saveNewActionButton"]:not(disabled)') with timeout=10000
[00:01:03]               │ debg Find.findByCssSelector('[data-test-subj="saveNewActionButton"]:not(disabled)') with timeout=10000
[00:01:03]               │ debg Find.findByCssSelector('.euiToast') with timeout=20000
[00:01:04]               │ debg Find.findByCssSelector('.euiToastHeader__title') with timeout=10000
[00:01:04]               │ debg Find.clickByCssSelector('.euiToast__closeButton') with timeout=10000
[00:01:04]               │ debg Find.findByCssSelector('.euiToast__closeButton') with timeout=10000
[00:01:04]               │ debg Find.findByCssSelector('[data-test-subj="actionsList"] .euiFieldSearch') with timeout=10000
[00:01:04]               │ debg Find.findByCssSelector('.euiBasicTable[data-test-subj="actionsTable"]:not(.euiBasicTable-loading)') with timeout=10000
[00:01:04]               │ debg Find.findByCssSelector('[data-test-subj="actionsList"] table') with timeout=10000
[00:01:04]               │ debg Find.clickByCssSelector('[data-test-subj="connectorsTableCell-name"] button') with timeout=10000
[00:01:04]               │ debg Find.findByCssSelector('[data-test-subj="connectorsTableCell-name"] button') with timeout=10000
[00:01:04]               │ debg Find.clickByCssSelector('[data-test-subj="testConnectorTab"]') with timeout=10000
[00:01:04]               │ debg Find.findByCssSelector('[data-test-subj="testConnectorTab"]') with timeout=10000
[00:01:04]               │ debg TestSubjects.setValue(documentsJsonEditor, { "key": "value" })
[00:01:04]               │ debg TestSubjects.click(documentsJsonEditor)
[00:01:04]               │ debg Find.clickByCssSelector('[data-test-subj="documentsJsonEditor"]') with timeout=10000
[00:01:04]               │ debg Find.findByCssSelector('[data-test-subj="documentsJsonEditor"]') with timeout=10000
[00:01:05]               │ debg Find.clickByCssSelector('[data-test-subj="executeActionButton"]:not(disabled)') with timeout=10000
[00:01:05]               │ debg Find.findByCssSelector('[data-test-subj="executeActionButton"]:not(disabled)') with timeout=10000
[00:01:05]               │ debg TestSubjects.find(executionSuccessfulResult)
[00:01:05]               │ debg Find.findByCssSelector('[data-test-subj="executionSuccessfulResult"]') with timeout=10000
[00:01:05]               │ proc [kibana]   log   [10:04:34.634] [error][actions][actions][plugins] error indexing documents: mapping set to strict, dynamic introduction of [key] within [_doc] is not allowed
[00:01:05]               │ proc [kibana]   log   [10:04:34.634] [warning][actions][actions][plugins] action execution failure: .index:e424a3f0-5b06-11eb-a4fa-f9a5e18a0c74: 17098bae4c4f4d1e913239aab69e63ac: error indexing documents: mapping set to strict, dynamic introduction of [key] within [_doc] is not allowed
[00:01:15]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="executionSuccessfulResult"])
[00:01:15]               │      Wait timed out after 10062ms
[00:01:16]               │ debg TestSubjects.find(executionSuccessfulResult)
[00:01:16]               │ debg Find.findByCssSelector('[data-test-subj="executionSuccessfulResult"]') with timeout=10000
[00:01:26]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="executionSuccessfulResult"])
[00:01:26]               │      Wait timed out after 10033ms
[00:01:26]               │ debg TestSubjects.find(executionSuccessfulResult)
[00:01:26]               │ debg Find.findByCssSelector('[data-test-subj="executionSuccessfulResult"]') with timeout=10000
[00:01:36]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="executionSuccessfulResult"])
[00:01:36]               │      Wait timed out after 10050ms
[00:01:37]               │ debg TestSubjects.find(executionSuccessfulResult)
[00:01:37]               │ debg Find.findByCssSelector('[data-test-subj="executionSuccessfulResult"]') with timeout=10000
[00:01:47]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="executionSuccessfulResult"])
[00:01:47]               │      Wait timed out after 10026ms
[00:01:47]               │ debg TestSubjects.find(executionSuccessfulResult)
[00:01:47]               │ debg Find.findByCssSelector('[data-test-subj="executionSuccessfulResult"]') with timeout=10000
[00:01:57]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="executionSuccessfulResult"])
[00:01:57]               │      Wait timed out after 10019ms
[00:01:58]               │ debg TestSubjects.find(executionSuccessfulResult)
[00:01:58]               │ debg Find.findByCssSelector('[data-test-subj="executionSuccessfulResult"]') with timeout=10000
[00:02:08]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="executionSuccessfulResult"])
[00:02:08]               │      Wait timed out after 10053ms
[00:02:09]               │ debg TestSubjects.find(executionSuccessfulResult)
[00:02:09]               │ debg Find.findByCssSelector('[data-test-subj="executionSuccessfulResult"]') with timeout=10000
[00:02:19]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="executionSuccessfulResult"])
[00:02:19]               │      Wait timed out after 10016ms
[00:02:19]               │ debg TestSubjects.find(executionSuccessfulResult)
[00:02:19]               │ debg Find.findByCssSelector('[data-test-subj="executionSuccessfulResult"]') with timeout=10000
[00:02:29]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="executionSuccessfulResult"])
[00:02:29]               │      Wait timed out after 10013ms
[00:02:30]               │ debg TestSubjects.find(executionSuccessfulResult)
[00:02:30]               │ debg Find.findByCssSelector('[data-test-subj="executionSuccessfulResult"]') with timeout=10000
[00:02:40]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="executionSuccessfulResult"])
[00:02:40]               │      Wait timed out after 10011ms
[00:02:40]               │ debg TestSubjects.find(executionSuccessfulResult)
[00:02:40]               │ debg Find.findByCssSelector('[data-test-subj="executionSuccessfulResult"]') with timeout=10000
[00:02:50]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="executionSuccessfulResult"])
[00:02:50]               │      Wait timed out after 10024ms
[00:02:51]               │ debg TestSubjects.find(executionSuccessfulResult)
[00:02:51]               │ debg Find.findByCssSelector('[data-test-subj="executionSuccessfulResult"]') with timeout=10000
[00:03:01]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="executionSuccessfulResult"])
[00:03:01]               │      Wait timed out after 10010ms
[00:03:01]               │ debg TestSubjects.find(executionSuccessfulResult)
[00:03:01]               │ debg Find.findByCssSelector('[data-test-subj="executionSuccessfulResult"]') with timeout=10000
[00:03:11]               │ debg --- retry.try failed again with the same message...
[00:03:12]               │ info Taking screenshot "/dev/shm/workspace/parallel/19/kibana/x-pack/test/functional/screenshots/failure/Actions and Triggers app Connectors should test a connector and display a successful result.png"
[00:03:12]               │ info Current URL is: http://localhost:61191/app/management/insightsAndAlerting/triggersActions/connectors
[00:03:12]               │ info Saving page source to: /dev/shm/workspace/parallel/19/kibana/x-pack/test/functional/failure_debug/html/Actions and Triggers app Connectors should test a connector and display a successful result.html
[00:03:12]               └- ✖ fail: Actions and Triggers app Connectors should test a connector and display a successful result
[00:03:12]               │      Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="executionSuccessfulResult"])
[00:03:12]               │ Wait timed out after 10010ms
[00:03:12]               │     at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:03:12]               │     at runMicrotasks (<anonymous>)
[00:03:12]               │     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:03:12]               │       at onFailure (/dev/shm/workspace/parallel/19/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:03:12]               │       at retryForSuccess (/dev/shm/workspace/parallel/19/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:03:12]               │       at Retry.try (/dev/shm/workspace/parallel/19/kibana/test/common/services/retry/retry.ts:32:14)
[00:03:12]               │       at Context.<anonymous> (test/functional_with_es_ssl/apps/triggers_actions_ui/connectors.ts:122:7)
[00:03:12]               │       at Object.apply (/dev/shm/workspace/parallel/19/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:03:12]               │ 
[00:03:12]               │ 

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="executionSuccessfulResult"])
Wait timed out after 10010ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at onFailure (/dev/shm/workspace/parallel/19/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/19/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at Retry.try (/dev/shm/workspace/parallel/19/kibana/test/common/services/retry/retry.ts:32:14)
    at Context.<anonymous> (test/functional_with_es_ssl/apps/triggers_actions_ui/connectors.ts:122:7)
    at Object.apply (/dev/shm/workspace/parallel/19/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
lens 466 467 +1

Async chunks

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

id before after diff
lens 1.1MB 1.1MB +2.5KB

History

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

Copy link
Contributor

@dej611 dej611 left a comment

Choose a reason for hiding this comment

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

Tested and LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Lens release_note:skip Skip the PR/issue when compiling release notes Team:Visualizations Visualization editors, elastic-charts and infrastructure v7.12.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants