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] [Metrics Alerts] Fix action variables, default message, and EU… (#62061) #62195

Merged
merged 1 commit into from
Apr 1, 2020

Conversation

Zacqary
Copy link
Contributor

@Zacqary Zacqary commented Apr 1, 2020

Backports the following commits to 7.x:

…tic#62061)

* [Metrics Alerts] Fix action variables, default message, and EUI casing

* i18nize action variables
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-oss-agent / Chrome UI Functional Tests.test/functional/apps/discover/_doc_navigation·js.discover app doc link in discover should open the doc view of the selected document

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has not failed recently on tracked branches

[00:00:00]       │
[00:01:45]         └-: discover app
[00:01:45]           └-> "before all" hook
[00:01:45]           └-> "before all" hook
[00:14:27]           └-: doc link in discover
[00:14:27]             └-> "before all" hook
[00:14:27]             └-> "before all" hook
[00:14:27]               │ info [logstash_functional] Loading "mappings.json"
[00:14:27]               │ info [logstash_functional] Loading "data.json.gz"
[00:14:27]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.22"
[00:14:27]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.20"
[00:14:27]               │ info [logstash_functional] Skipped restore for existing index "logstash-2015.09.21"
[00:14:29]               │ debg navigating to discover url: http://localhost:6161/app/kibana#/discover
[00:14:29]               │ debg Navigate to: http://localhost:6161/app/kibana#/discover
[00:14:29]               │ debg ... sleep(700) start
[00:14:29]               │ debg browser[INFO] http://localhost:6161/app/kibana?_t=1585762395595#/discover 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:14:29]               │
[00:14:29]               │ debg browser[INFO] http://localhost:6161/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:29]               │ debg ... sleep(700) end
[00:14:29]               │ debg returned from get, calling refresh
[00:14:30]               │ debg browser[INFO] http://localhost:6161/app/kibana?_t=1585762395595#/discover 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:14:30]               │
[00:14:30]               │ debg browser[INFO] http://localhost:6161/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:14:30]               │ debg currentUrl = http://localhost:6161/app/kibana#/discover
[00:14:30]               │          appUrl = http://localhost:6161/app/kibana#/discover
[00:14:30]               │ debg TestSubjects.find(kibanaChrome)
[00:14:30]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:14:32]               │ debg TestSubjects.find(kibanaChrome)
[00:14:32]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:14:32]               │ debg browser[INFO] http://localhost:6161/bundles/plugin/data/data.plugin.js 96:139630 "INFO: 2020-04-01T17:33:18Z
[00:14:32]               │        Adding connection to http://localhost:6161/elasticsearch
[00:14:32]               │
[00:14:32]               │      "
[00:14:32]               │ debg ... sleep(501) start
[00:14:33]               │ debg ... sleep(501) end
[00:14:33]               │ debg in navigateTo url = http://localhost:6161/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:14:33]               │ debg --- retry.try error: URL changed, waiting for it to settle
[00:14:33]               │ debg ... sleep(501) start
[00:14:34]               │ debg ... sleep(501) end
[00:14:34]               │ debg in navigateTo url = http://localhost:6161/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:14:34]               │ debg TestSubjects.exists(statusPageContainer)
[00:14:34]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:14:36]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:14:37]               │ debg Setting absolute range to Sep 19, 2015 @ 06:31:44.000 to Sep 23, 2015 @ 18:31:44.000
[00:14:37]               │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:14:37]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:14:37]               │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:14:37]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:14:37]               │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:14:37]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:14:37]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:14:37]               │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:14:37]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:14:37]               │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:14:37]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:14:37]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:14:37]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:14:37]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:14:37]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:14:37]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:14:37]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:14:37]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:14:37]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:14:37]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 23, 2015 @ 18:31:44.000)
[00:14:37]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:14:37]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:14:37]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:14:38]               │ debg ... sleep(500) start
[00:14:38]               │ debg ... sleep(500) end
[00:14:38]               │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:14:38]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:14:38]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:14:39]               │ debg Find.waitForElementStale with timeout=10000
[00:14:39]               │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:14:39]               │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:14:39]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:14:39]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:14:39]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:14:39]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:14:39]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:14:39]               │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 19, 2015 @ 06:31:44.000)
[00:14:39]               │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:14:39]               │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:14:39]               │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:14:40]               │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:14:40]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:14:42]               │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:14:43]               │ debg TestSubjects.click(querySubmitButton)
[00:14:43]               │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:14:43]               │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:14:43]               │ debg Find.waitForElementStale with timeout=10000
[00:14:43]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:14:43]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:14:45]               │ debg Find.waitForAttributeToChange('[data-test-subj="discoverDocTable"]', 'data-render-complete', 'true')
[00:14:45]               │ debg Waiting up to 20000ms for data-render-complete to equal "true"...
[00:14:45]               │ debg Find.findByCssSelector('[data-test-subj="discoverDocTable"]') with timeout=10000
[00:14:45]               │ debg TestSubjects.moveMouseTo(field-@message)
[00:14:45]               │ debg TestSubjects.find(field-@message)
[00:14:45]               │ debg Find.findByCssSelector('[data-test-subj="field-@message"]') with timeout=10000
[00:14:45]               │ debg TestSubjects.click(fieldToggle-@message)
[00:14:45]               │ debg Find.clickByCssSelector('[data-test-subj="fieldToggle-@message"]') with timeout=10000
[00:14:45]               │ debg Find.findByCssSelector('[data-test-subj="fieldToggle-@message"]') with timeout=10000
[00:14:46]               │ debg TestSubjects.click(field-extension)
[00:14:46]               │ debg Find.clickByCssSelector('[data-test-subj="field-extension"]') with timeout=10000
[00:14:46]               │ debg Find.findByCssSelector('[data-test-subj="field-extension"]') with timeout=10000
[00:14:46]               │ debg TestSubjects.exists(plus-extension-jpg)
[00:14:46]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="plus-extension-jpg"]') with timeout=2500
[00:14:46]               │ERROR browser[SEVERE] http://localhost:6161/api/saved_objects/index-pattern/logstash-* - Failed to load resource: the server responded with a status of 409 (Conflict)
[00:14:46]               │ debg TestSubjects.click(plus-extension-jpg)
[00:14:46]               │ debg Find.clickByCssSelector('[data-test-subj="plus-extension-jpg"]') with timeout=10000
[00:14:46]               │ debg Find.findByCssSelector('[data-test-subj="plus-extension-jpg"]') with timeout=10000
[00:14:46]               │ debg isGlobalLoadingIndicatorVisible
[00:14:46]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:14:46]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:14:46]               │ debg browser[INFO] http://localhost:6161/bundles/commons.bundle.js 0:1506016 "Detected an unhandled Promise rejection.
[00:14:46]               │      Error: Conflict"
[00:14:46]               │ERROR browser[SEVERE] http://localhost:6161/bundles/commons.bundle.js 0:1540562 
[00:14:47]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:14:47]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:14:47]               │ debg TestSubjects.click(field-geo.src)
[00:14:47]               │ debg Find.clickByCssSelector('[data-test-subj="field-geo.src"]') with timeout=10000
[00:14:47]               │ debg Find.findByCssSelector('[data-test-subj="field-geo.src"]') with timeout=10000
[00:14:48]               │ debg TestSubjects.exists(plus-geo.src-IN)
[00:14:48]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="plus-geo.src-IN"]') with timeout=2500
[00:14:48]               │ debg TestSubjects.click(plus-geo.src-IN)
[00:14:48]               │ debg Find.clickByCssSelector('[data-test-subj="plus-geo.src-IN"]') with timeout=10000
[00:14:48]               │ debg Find.findByCssSelector('[data-test-subj="plus-geo.src-IN"]') with timeout=10000
[00:14:48]               │ debg isGlobalLoadingIndicatorVisible
[00:14:48]               │ debg TestSubjects.exists(globalLoadingIndicator)
[00:14:48]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:14:48]               │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:14:48]               │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:14:48]             └-> should open the doc view of the selected document
[00:14:48]               └-> "before each" hook: global before each
[00:14:48]               │ debg TestSubjects.find(docTable)
[00:14:48]               │ debg Find.findByCssSelector('[data-test-subj="docTable"]') with timeout=10000
[00:14:48]               │ debg TestSubjects.find(docTable)
[00:14:48]               │ debg Find.findByCssSelector('[data-test-subj="docTable"]') with timeout=10000
[00:14:49]               │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/discover app doc link in discover should open the doc view of the selected document.png"
[00:14:49]               │ info Current URL is: http://localhost:6161/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272015-09-19T06:31:44.000Z%27,to:%272015-09-23T18:31:44.000Z%27))&_a=(columns:!(%27@message%27),filters:!((%27$state%27:(store:appState),meta:(alias:!n,disabled:!f,index:%27logstash-*%27,key:extension,negate:!f,params:(query:jpg),type:phrase),query:(match_phrase:(extension:jpg))),(%27$state%27:(store:appState),meta:(alias:!n,disabled:!f,index:%27logstash-*%27,key:geo.src,negate:!f,params:(query:IN),type:phrase),query:(match_phrase:(geo.src:IN)))),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:14:49]               │ info Saving page source to: /dev/shm/workspace/kibana/test/functional/failure_debug/html/discover app doc link in discover should open the doc view of the selected document.html
[00:14:49]               └- ✖ fail: "discover app doc link in discover should open the doc view of the selected document"
[00:14:49]               │

Stack Trace

{ StaleElementReferenceError: stale element reference: element is not attached to the page document
  (Session info: headless chrome=80.0.3987.162)
  (Driver info: chromedriver=80.0.3987.16 (320f6526c1632ad4f205ebce69b99a062ed78647-refs/branch-heads/3987@{#185}),platform=Linux 4.14.35-1902.300.11.el7uek.x86_64 x86_64)
    at Object.checkLegacyResponse (node_modules/selenium-webdriver/lib/error.js:585:15)
    at parseHttpResponse (node_modules/selenium-webdriver/lib/http.js:554:13)
    at Executor.execute (node_modules/selenium-webdriver/lib/http.js:489:26)
    at process._tickCallback (internal/process/next_tick.js:68:7) name: 'StaleElementReferenceError', remoteStacktrace: '' }

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

@Zacqary Zacqary merged commit b010c3b into elastic:7.x Apr 1, 2020
@Zacqary Zacqary deleted the backport/7.x/pr-62061 branch April 1, 2020 18:43
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