Skip to content

Conversation

@peteharverson
Copy link
Contributor

Backports the following commits to 7.x:

@peteharverson peteharverson added backport This PR is a backport of another PR :ml Feature:Anomaly Detection ML anomaly detection labels May 12, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional_with_es_ssl/apps/triggers_actions_ui/details·ts.Actions and Triggers app Alert Details Edit alert button should open edit alert flyout

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: Actions and Triggers app
[00:00:00]           └-> "before all" hook
[00:04:20]           └-: Alert Details
[00:04:20]             └-> "before all" hook
[00:04:35]             └-: Edit alert button
[00:04:35]               └-> "before all" hook
[00:04:35]               └-> should open edit alert flyout
[00:04:35]                 └-> "before each" hook: global before each
[00:04:35]                 │ debg navigating to triggersActions url: http://localhost:61111/app/kibana#/management/kibana/triggersActions
[00:04:35]                 │ debg navigate to: http://localhost:61111/app/kibana#/management/kibana/triggersActions
[00:04:36]                 │ debg browser[INFO] http://localhost:61111/app/kibana?_t=1589296816444#/management/kibana/triggersActions 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:04:36]                 │
[00:04:36]                 │ debg browser[INFO] http://localhost:61111/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:36]                 │ debg ... sleep(700) start
[00:04:36]                 │ debg ... sleep(700) end
[00:04:36]                 │ debg returned from get, calling refresh
[00:04:37]                 │ debg browser[INFO] http://localhost:61111/app/kibana?_t=1589296816444#/management/kibana/triggersActions 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:04:37]                 │
[00:04:37]                 │ debg browser[INFO] http://localhost:61111/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:37]                 │ debg currentUrl = http://localhost:61111/app/kibana#/management/kibana/triggersActions
[00:04:37]                 │          appUrl = http://localhost:61111/app/kibana#/management/kibana/triggersActions
[00:04:37]                 │ debg TestSubjects.find(kibanaChrome)
[00:04:37]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:04:39]                 │ debg TestSubjects.find(kibanaChrome)
[00:04:39]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:04:39]                 │ debg browser[INFO] http://localhost:61111/31724/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-12T15:20:19Z
[00:04:39]                 │        Adding connection to http://localhost:61111/elasticsearch
[00:04:39]                 │
[00:04:39]                 │      "
[00:04:39]                 │ debg ... sleep(501) start
[00:04:39]                 │ debg ... sleep(501) end
[00:04:40]                 │ debg in navigateTo url = http://localhost:61111/app/kibana#/management/kibana/triggersActions/alerts
[00:04:40]                 │ debg TestSubjects.exists(statusPageContainer)
[00:04:40]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:04:42]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:04:43]                 │ debg creating alert 7c8e0cf7-eda2-42d2-bf29-4ce697370160
[00:04:45]                 │ debg created alert ee41919e-4c4f-4e0c-a14f-1fbbf17f9799
[00:04:45]                 │ debg isGlobalLoadingIndicatorVisible
[00:04:45]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:04:45]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:04:45]                 │ debg browser[INFO] http://localhost:61111/app/kibana?_t=1589296816444#/management/kibana/triggersActions/alerts 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:04:45]                 │
[00:04:45]                 │ debg browser[INFO] http://localhost:61111/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:47]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:04:48]                 │ debg browser[INFO] http://localhost:61111/31724/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-12T15:20:28Z
[00:04:48]                 │        Adding connection to http://localhost:61111/elasticsearch
[00:04:48]                 │
[00:04:48]                 │      "
[00:04:48]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:04:48]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:04:49]                 │ debg TestSubjects.exists(alertsList)
[00:04:49]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="alertsList"]') with timeout=120000
[00:04:49]                 │ debg TestSubjects.find(alertSearchField)
[00:04:49]                 │ debg Find.findByCssSelector('[data-test-subj="alertSearchField"]') with timeout=10000
[00:04:49]                 │ debg Find.findByCssSelector('.euiBasicTable[data-test-subj="alertsList"]:not(.euiBasicTable-loading)') with timeout=10000
[00:04:49]                 │ debg Find.clickDisplayedByCssSelector('[data-test-subj="alertsList"] [title="7c8e0cf7-eda2-42d2-bf29-4ce697370160"]') with timeout=10000
[00:04:49]                 │ debg Find.displayedByCssSelector([data-test-subj="alertsList"] [title="7c8e0cf7-eda2-42d2-bf29-4ce697370160"])
[00:04:49]                 │ debg Find.findByCssSelector('[data-test-subj="alertsList"] [title="7c8e0cf7-eda2-42d2-bf29-4ce697370160"]') with timeout=10000
[00:04:50]                 │ debg Wait for element become visible: [data-test-subj="alertsList"] [title="7c8e0cf7-eda2-42d2-bf29-4ce697370160"] with timeout=10000
[00:04:50]                 │ debg TestSubjects.find(openEditAlertFlyoutButton)
[00:04:50]                 │ debg Find.findByCssSelector('[data-test-subj="openEditAlertFlyoutButton"]') with timeout=10000
[00:04:50]                 │ debg TestSubjects.exists(hasActionsDisabled)
[00:04:50]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="hasActionsDisabled"]') with timeout=2500
[00:04:53]                 │ERROR browser[SEVERE] http://localhost:61111/31724/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 341:77071 TypeError: Cannot read property '.server-log' of undefined
[00:04:53]                 │          at getActionTypeForm (http://localhost:61111/31724/bundles/plugin/triggers_actions_ui/triggers_actions_ui.plugin.js:1:262383)
[00:04:53]                 │          at http://localhost:61111/31724/bundles/plugin/triggers_actions_ui/triggers_actions_ui.plugin.js:1:273300
[00:04:53]                 │          at Array.map (<anonymous>)
[00:04:53]                 │          at ActionForm (http://localhost:61111/31724/bundles/plugin/triggers_actions_ui/triggers_actions_ui.plugin.js:1:272889)
[00:04:53]                 │          at ua (http://localhost:61111/31724/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342:59332)
[00:04:53]                 │          at Ya (http://localhost:61111/31724/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342:67554)
[00:04:53]                 │          at xs (http://localhost:61111/31724/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342:105593)
[00:04:53]                 │          at ml (http://localhost:61111/31724/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342:90018)
[00:04:53]                 │          at hl (http://localhost:61111/31724/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342:89943)
[00:04:53]                 │          at ol (http://localhost:61111/31724/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:342:87291)
[00:04:53]                 │ debg --- retry.tryForTime error: [data-test-subj="hasActionsDisabled"] is not displayed
[00:04:53]                 │ debg TestSubjects.setValue(alertNameInput, Changed Alert Name da5d5792-61c0-43c0-b251-6810653767f0)
[00:04:53]                 │ debg TestSubjects.click(alertNameInput)
[00:04:53]                 │ debg Find.clickByCssSelector('[data-test-subj="alertNameInput"]') with timeout=10000
[00:04:53]                 │ debg Find.findByCssSelector('[data-test-subj="alertNameInput"]') with timeout=10000
[00:04:59]                 │ proc [kibana]   log   [15:20:39.786] [warning][plugins][taskManager][taskManager] Cancelling task vis_telemetry "oss_telemetry-vis_telemetry" as it expired at 2020-05-12T15:20:36.974Z after running for 05m 02s (with timeout set at 5m).
[00:05:03]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="alertNameInput"])
[00:05:03]                 │      Wait timed out after 10005ms
[00:05:04]                 │ debg Find.findByCssSelector('[data-test-subj="alertNameInput"]') with timeout=10000
[00:05:14]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="alertNameInput"])
[00:05:14]                 │      Wait timed out after 10008ms
[00:05:14]                 │ debg Find.findByCssSelector('[data-test-subj="alertNameInput"]') with timeout=10000
[00:05:24]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="alertNameInput"])
[00:05:24]                 │      Wait timed out after 10009ms
[00:05:25]                 │ debg Find.findByCssSelector('[data-test-subj="alertNameInput"]') with timeout=10000
[00:05:35]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="alertNameInput"])
[00:05:35]                 │      Wait timed out after 10036ms
[00:05:35]                 │ debg Find.findByCssSelector('[data-test-subj="alertNameInput"]') with timeout=10000
[00:05:45]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="alertNameInput"])
[00:05:45]                 │      Wait timed out after 10019ms
[00:05:46]                 │ debg Find.findByCssSelector('[data-test-subj="alertNameInput"]') with timeout=10000
[00:05:56]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="alertNameInput"])
[00:05:56]                 │      Wait timed out after 10052ms
[00:05:56]                 │ debg Find.findByCssSelector('[data-test-subj="alertNameInput"]') with timeout=10000
[00:06:06]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="alertNameInput"])
[00:06:06]                 │      Wait timed out after 10050ms
[00:06:07]                 │ debg Find.findByCssSelector('[data-test-subj="alertNameInput"]') with timeout=10000
[00:06:17]                 │ debg --- retry.try failed again with the same message...
[00:06:18]                 │ debg Find.findByCssSelector('[data-test-subj="alertNameInput"]') with timeout=10000
[00:06:28]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="alertNameInput"])
[00:06:28]                 │      Wait timed out after 10058ms
[00:06:28]                 │ debg Find.findByCssSelector('[data-test-subj="alertNameInput"]') with timeout=10000
[00:06:38]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="alertNameInput"])
[00:06:38]                 │      Wait timed out after 10030ms
[00:06:39]                 │ debg Find.findByCssSelector('[data-test-subj="alertNameInput"]') with timeout=10000
[00:06:49]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="alertNameInput"])
[00:06:49]                 │      Wait timed out after 10043ms
[00:06:49]                 │ debg Find.findByCssSelector('[data-test-subj="alertNameInput"]') with timeout=10000
[00:06:59]                 │ proc [kibana]   log   [15:22:39.828] [warning][plugins][taskManager][taskManager] Cancelling task lens_telemetry "Lens-lens_telemetry" as it expired at 2020-05-12T15:22:39.805Z after running for 01m 00s (with timeout set at 1m).
[00:06:59]                 │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="alertNameInput"])
[00:06:59]                 │      Wait timed out after 10017ms
[00:07:00]                 │ debg --- retry.try error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="alertNameInput"])
[00:07:00]                 │      Wait timed out after 10017ms
[00:07:00]                 │          at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:07:00]                 │          at process._tickCallback (internal/process/next_tick.js:68:7)
[00:07:00]                 │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/Actions and Triggers app Alert Details Edit alert button should open edit alert flyout.png"
[00:07:00]                 │ info Current URL is: http://localhost:61111/app/kibana#/management/kibana/triggersActions/alert/ee41919e-4c4f-4e0c-a14f-1fbbf17f9799
[00:07:01]                 │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/Actions and Triggers app Alert Details Edit alert button should open edit alert flyout.html
[00:07:01]                 └- ✖ fail: "Actions and Triggers app Alert Details Edit alert button should open edit alert flyout"
[00:07:01]                 │

Stack Trace

Error: retry.try timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="alertNameInput"])
Wait timed out after 10017ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:68:13)
    at onFailure (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (/dev/shm/workspace/kibana/test/common/services/retry/retry_for_success.ts:68:13)

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

@peteharverson peteharverson merged commit 5ab18aa into elastic:7.x May 12, 2020
@peteharverson peteharverson deleted the backport/7.x/pr-66075 branch May 12, 2020 16:14
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 Feature:Anomaly Detection ML anomaly detection :ml

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants