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] Added UI validation when creating a Webhook connector with invalid URL (#70025) #70905

Merged
merged 2 commits into from
Jul 7, 2020

Conversation

YulNaumenko
Copy link
Contributor

Backports the following commits to 7.x:

elastic#70025)

* Added UI validation when creating a Webhook connector with invalid URL

* fixed tests

* Fixed due to comments

* fixed type check and extended error message for invalid URL

* Fixed whitelisting of URL

* fixed failing tests

* fixed str
@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/apps/ml/data_frame_analytics/outlier_detection_creation·ts.machine learning data frame analytics outlier detection creation iowa house prices continues to the details step

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: machine learning
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ debg creating role ml_source
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1594143484644911994] added role [ml_source]
[00:00:00]             │ debg creating role ml_dest
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1594143484644911994] added role [ml_dest]
[00:00:00]             │ debg creating role ml_dest_readonly
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1594143484644911994] added role [ml_dest_readonly]
[00:00:00]             │ debg creating role ml_ui_extras
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-centos-tests-xl-1594143484644911994] added role [ml_ui_extras]
[00:00:00]             │ debg creating user ml_poweruser
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1594143484644911994] added user [ml_poweruser]
[00:00:00]             │ debg created user ml_poweruser
[00:00:00]             │ debg creating user ml_viewer
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1594143484644911994] added user [ml_viewer]
[00:00:00]             │ debg created user ml_viewer
[00:00:00]             │ debg creating user ml_unauthorized
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-centos-tests-xl-1594143484644911994] added user [ml_unauthorized]
[00:00:00]             │ debg created user ml_unauthorized
[00:30:05]           └-: data frame analytics
[00:30:05]             └-> "before all" hook
[00:30:05]             └-: outlier detection creation
[00:30:05]               └-> "before all" hook
[00:30:05]               └-> "before all" hook
[00:30:05]                 │ info [ml/ihp_outlier] Loading "mappings.json"
[00:30:05]                 │ info [ml/ihp_outlier] Loading "data.json.gz"
[00:30:05]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1594143484644911994] [ft_ihp_outlier] creating index, cause [api], templates [], shards [1]/[1]
[00:30:05]                 │ info [ml/ihp_outlier] Created index "ft_ihp_outlier"
[00:30:05]                 │ debg [ml/ihp_outlier] "ft_ihp_outlier" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:30:05]                 │ info [ml/ihp_outlier] Indexed 1460 docs into "ft_ihp_outlier"
[00:30:05]                 │ debg Searching for 'index-pattern' with title 'ft_ihp_outlier'...
[00:30:05]                 │ debg  > Not found
[00:30:05]                 │ debg Creating index pattern with title 'ft_ihp_outlier' and time field '@timestamp'
[00:30:05]                 │ debg Waiting up to 5000ms for index-pattern with title 'ft_ihp_outlier' to exist...
[00:30:05]                 │ debg Searching for 'index-pattern' with title 'ft_ihp_outlier'...
[00:30:05]                 │ debg  > Found '4faeee80-c081-11ea-b571-fdc698759746'
[00:30:05]                 │ debg  > Created with id '4faeee80-c081-11ea-b571-fdc698759746'
[00:30:05]                 │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:30:05]                 │ERROR browser[SEVERE] http://localhost:6141/api/ml/fields_service/time_field_range - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:30:05]                 │ debg browser[INFO] http://localhost:6141/32938/bundles/core/core.entry.js 83:262843 "Detected an unhandled Promise rejection.
[00:30:05]                 │      Error: Not Found"
[00:30:05]                 │ERROR browser[SEVERE] http://localhost:6141/32938/bundles/core/core.entry.js 27:9969 
[00:30:06]                 │ debg SecurityPage.forceLogout
[00:30:06]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:30:06]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:30:07]                 │ debg Redirecting to /logout to force the logout
[00:30:07]                 │ debg Waiting on the login form to appear
[00:30:07]                 │ debg Waiting for Login Page to appear.
[00:30:07]                 │ debg Waiting up to 100000ms for login page...
[00:30:07]                 │ debg browser[INFO] http://localhost:6141/logout?_t=1594147222660 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:30:07]                 │
[00:30:07]                 │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:30:07]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:30:10]                 │ debg browser[INFO] http://localhost:6141/32938/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-07T18:40:23Z
[00:30:10]                 │        Adding connection to http://localhost:6141/elasticsearch
[00:30:10]                 │
[00:30:10]                 │      "
[00:30:10]                 │ debg browser[INFO] http://localhost:6141/login?_t=1594147222660 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:30:10]                 │
[00:30:10]                 │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:30:10]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:30:11]                 │ debg browser[INFO] http://localhost:6141/32938/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-07T18:40:26Z
[00:30:11]                 │        Adding connection to http://localhost:6141/elasticsearch
[00:30:11]                 │
[00:30:11]                 │      "
[00:30:11]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:30:11]                 │ debg navigating to login url: http://localhost:6141/login
[00:30:11]                 │ debg navigate to: http://localhost:6141/login
[00:30:11]                 │ debg browser[INFO] http://localhost:6141/login?_t=1594147226921 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:30:11]                 │
[00:30:11]                 │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:30:11]                 │ debg ... sleep(700) start
[00:30:12]                 │ debg ... sleep(700) end
[00:30:12]                 │ debg returned from get, calling refresh
[00:30:12]                 │ debg browser[INFO] http://localhost:6141/login?_t=1594147226921 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:30:12]                 │
[00:30:12]                 │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:30:12]                 │ debg currentUrl = http://localhost:6141/login
[00:30:12]                 │          appUrl = http://localhost:6141/login
[00:30:12]                 │ debg TestSubjects.find(kibanaChrome)
[00:30:12]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:30:13]                 │ debg browser[INFO] http://localhost:6141/32938/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-07T18:40:28Z
[00:30:13]                 │        Adding connection to http://localhost:6141/elasticsearch
[00:30:13]                 │
[00:30:13]                 │      "
[00:30:13]                 │ debg ... sleep(501) start
[00:30:14]                 │ debg ... sleep(501) end
[00:30:14]                 │ debg in navigateTo url = http://localhost:6141/login
[00:30:14]                 │ debg TestSubjects.exists(statusPageContainer)
[00:30:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:30:16]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:30:17]                 │ debg Waiting for Login Form to appear.
[00:30:17]                 │ debg Waiting up to 100000ms for login form...
[00:30:17]                 │ debg TestSubjects.exists(loginForm)
[00:30:17]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:30:17]                 │ debg TestSubjects.setValue(loginUsername, ml_poweruser)
[00:30:17]                 │ debg TestSubjects.click(loginUsername)
[00:30:17]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:30:17]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:30:17]                 │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:30:17]                 │ debg TestSubjects.click(loginPassword)
[00:30:17]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:30:17]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:30:17]                 │ debg TestSubjects.click(loginSubmit)
[00:30:17]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:30:17]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:30:17]                 │ debg Waiting for login result, expected: chrome.
[00:30:17]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] .app-wrapper:not(.hidden-chrome)') with timeout=20000
[00:30:19]                 │ debg browser[INFO] http://localhost:6141/app/home 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:30:19]                 │
[00:30:19]                 │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:30:19]                 │ debg browser[INFO] http://localhost:6141/32938/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-07T18:40:34Z
[00:30:19]                 │        Adding connection to http://localhost:6141/elasticsearch
[00:30:19]                 │
[00:30:19]                 │      "
[00:30:19]                 │ debg Finished login process currentUrl = http://localhost:6141/app/home#/
[00:30:19]                 │ debg Waiting up to 20000ms for logout button visible...
[00:30:19]                 │ debg TestSubjects.exists(userMenuButton)
[00:30:19]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:30:20]                 │ debg TestSubjects.exists(userMenu)
[00:30:20]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:30:22]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:30:23]                 │ debg TestSubjects.click(userMenuButton)
[00:30:23]                 │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:30:23]                 │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:30:23]                 │ debg Waiting up to 20000ms for user menu opened...
[00:30:23]                 │ debg TestSubjects.exists(userMenu)
[00:30:23]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:30:23]                 │ debg TestSubjects.exists(userMenu > logoutLink)
[00:30:23]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:30:23]               └-: iowa house prices
[00:30:23]                 └-> "before all" hook
[00:30:23]                 └-> loads the data frame analytics page
[00:30:23]                   └-> "before each" hook: global before each
[00:30:23]                   │ debg navigating to ml url: http://localhost:6141/app/ml
[00:30:23]                   │ debg navigate to: http://localhost:6141/app/ml
[00:30:23]                   │ debg browser[INFO] http://localhost:6141/app/ml?_t=1594147238608 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:30:23]                   │
[00:30:23]                   │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:30:23]                   │ debg ... sleep(700) start
[00:30:24]                   │ debg ... sleep(700) end
[00:30:24]                   │ debg returned from get, calling refresh
[00:30:25]                   │ debg browser[INFO] http://localhost:6141/32938/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-07T18:40:39Z
[00:30:25]                   │        Adding connection to http://localhost:6141/elasticsearch
[00:30:25]                   │
[00:30:25]                   │      "
[00:30:25]                   │ERROR browser[SEVERE] http://localhost:6141/32938/bundles/core/core.entry.js 83:261764 TypeError: Failed to fetch
[00:30:25]                   │ debg browser[INFO] http://localhost:6141/app/ml?_t=1594147238608 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:30:25]                   │
[00:30:25]                   │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:30:25]                   │ debg currentUrl = http://localhost:6141/app/ml
[00:30:25]                   │          appUrl = http://localhost:6141/app/ml
[00:30:25]                   │ debg TestSubjects.find(kibanaChrome)
[00:30:25]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:30:27]                   │ debg browser[INFO] http://localhost:6141/32938/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-07T18:40:41Z
[00:30:27]                   │        Adding connection to http://localhost:6141/elasticsearch
[00:30:27]                   │
[00:30:27]                   │      "
[00:30:27]                   │ debg ... sleep(501) start
[00:30:27]                   │ debg ... sleep(501) end
[00:30:27]                   │ debg in navigateTo url = http://localhost:6141/app/ml#/overview
[00:30:27]                   │ debg TestSubjects.exists(statusPageContainer)
[00:30:27]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:30:30]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:30:30]                   │ debg TestSubjects.exists(mlPageOverview)
[00:30:30]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageOverview"]') with timeout=2000
[00:30:30]                   │ debg TestSubjects.click(~mlMainTab & ~dataFrameAnalytics)
[00:30:30]                   │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"]') with timeout=10000
[00:30:30]                   │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"]') with timeout=10000
[00:30:30]                   │ debg TestSubjects.exists(~mlMainTab & ~dataFrameAnalytics & ~selected)
[00:30:30]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"][data-test-subj~="selected"]') with timeout=120000
[00:30:31]                   │ debg TestSubjects.exists(mlPageDataFrameAnalytics)
[00:30:31]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageDataFrameAnalytics"]') with timeout=120000
[00:30:31]                   └- ✓ pass  (7.8s) "machine learning data frame analytics outlier detection creation iowa house prices loads the data frame analytics page"
[00:30:31]                 └-> loads the source selection modal
[00:30:31]                   └-> "before each" hook: global before each
[00:30:31]                   │ debg TestSubjects.exists(mlNoDataFrameAnalyticsFound)
[00:30:31]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlNoDataFrameAnalyticsFound"]') with timeout=2500
[00:30:31]                   │ debg TestSubjects.click(mlAnalyticsCreateFirstButton)
[00:30:31]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateFirstButton"]') with timeout=10000
[00:30:31]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateFirstButton"]') with timeout=10000
[00:30:31]                   │ debg TestSubjects.exists(analyticsCreateSourceIndexModal)
[00:30:31]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="analyticsCreateSourceIndexModal"]') with timeout=120000
[00:30:31]                   └- ✓ pass  (198ms) "machine learning data frame analytics outlier detection creation iowa house prices loads the source selection modal"
[00:30:31]                 └-> selects the source data and loads the job wizard page
[00:30:31]                   └-> "before each" hook: global before each
[00:30:31]                   │ debg TestSubjects.setValue(savedObjectFinderSearchInput, ft_ihp_outlier)
[00:30:31]                   │ debg TestSubjects.click(savedObjectFinderSearchInput)
[00:30:31]                   │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:30:31]                   │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:30:31]                   │ debg TestSubjects.exists(savedObjectTitleft_ihp_outlier)
[00:30:31]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="savedObjectTitleft_ihp_outlier"]') with timeout=120000
[00:30:32]                   │ debg TestSubjects.clickWhenNotDisabled(savedObjectTitleft_ihp_outlier)
[00:30:32]                   │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="savedObjectTitleft_ihp_outlier"]') with timeout=10000
[00:30:32]                   │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitleft_ihp_outlier"]') with timeout=10000
[00:30:32]                   │ debg TestSubjects.exists(mlAnalyticsCreationContainer)
[00:30:32]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreationContainer"]') with timeout=10000
[00:30:32]                   │ debg browser[INFO] http://localhost:6141/app/ml#/data_frame_analytics/new_job?index=4faeee80-c081-11ea-b571-fdc698759746 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:30:32]                   │
[00:30:32]                   │ debg browser[INFO] http://localhost:6141/bundles/app/core/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:30:34]                   │ debg browser[INFO] http://localhost:6141/32938/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 452:106112 "INFO: 2020-07-07T18:40:48Z
[00:30:34]                   │        Adding connection to http://localhost:6141/elasticsearch
[00:30:34]                   │
[00:30:34]                   │      "
[00:30:35]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobWizardConfigurationStep active)
[00:30:35]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardConfigurationStep active"]') with timeout=120000
[00:30:35]                   └- ✓ pass  (4.1s) "machine learning data frame analytics outlier detection creation iowa house prices selects the source data and loads the job wizard page"
[00:30:35]                 └-> selects the job type
[00:30:35]                   └-> "before each" hook: global before each
[00:30:35]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobWizardJobTypeSelect)
[00:30:35]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardJobTypeSelect"]') with timeout=120000
[00:30:35]                   │ debg TestSubjects.click(mlAnalyticsCreateJobWizardJobTypeSelect)
[00:30:35]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardJobTypeSelect"]') with timeout=10000
[00:30:35]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardJobTypeSelect"]') with timeout=10000
[00:30:35]                   │ debg TestSubjects.click(mlAnalyticsCreation-outlier_detection-option)
[00:30:35]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreation-outlier_detection-option"]') with timeout=10000
[00:30:35]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreation-outlier_detection-option"]') with timeout=10000
[00:30:35]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobWizardJobTypeSelect, value)
[00:30:35]                   │ debg TestSubjects.find(mlAnalyticsCreateJobWizardJobTypeSelect)
[00:30:35]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardJobTypeSelect"]') with timeout=10000
[00:30:35]                   └- ✓ pass  (241ms) "machine learning data frame analytics outlier detection creation iowa house prices selects the job type"
[00:30:35]                 └-> does not display the dependent variable input
[00:30:35]                   └-> "before each" hook: global before each
[00:30:35]                   │ debg TestSubjects.missingOrFail(mlAnalyticsCreateJobWizardDependentVariableSelect > comboBoxInput)
[00:30:35]                   │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardDependentVariableSelect"] [data-test-subj="comboBoxInput"]') with timeout=2500
[00:30:36]                   └- ✓ pass  (529ms) "machine learning data frame analytics outlier detection creation iowa house prices does not display the dependent variable input"
[00:30:36]                 └-> does not display the training percent input
[00:30:36]                   └-> "before each" hook: global before each
[00:30:36]                   │ debg TestSubjects.missingOrFail(mlAnalyticsCreateJobWizardTrainingPercentSlider)
[00:30:36]                   │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardTrainingPercentSlider"]') with timeout=2500
[00:30:36]                   └- ✓ pass  (544ms) "machine learning data frame analytics outlier detection creation iowa house prices does not display the training percent input"
[00:30:36]                 └-> displays the source data preview
[00:30:36]                   └-> "before each" hook: global before each
[00:30:36]                   │ debg TestSubjects.exists(mlAnalyticsCreationDataGrid loaded)
[00:30:36]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreationDataGrid loaded"]') with timeout=5000
[00:30:36]                   └- ✓ pass  (30ms) "machine learning data frame analytics outlier detection creation iowa house prices displays the source data preview"
[00:30:36]                 └-> displays the include fields selection
[00:30:36]                   └-> "before each" hook: global before each
[00:30:36]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobWizardIncludesSelect)
[00:30:36]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardIncludesSelect"]') with timeout=5000
[00:30:36]                   └- ✓ pass  (27ms) "machine learning data frame analytics outlier detection creation iowa house prices displays the include fields selection"
[00:30:36]                 └-> continues to the additional options step
[00:30:36]                   └-> "before each" hook: global before each
[00:30:36]                   │ debg TestSubjects.clickWhenNotDisabled(mlAnalyticsCreateJobWizardContinueButton)
[00:30:36]                   │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlAnalyticsCreateJobWizardContinueButton"]') with timeout=10000
[00:30:36]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardContinueButton"]') with timeout=10000
[00:30:37]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobWizardAdvancedStep active)
[00:30:37]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardAdvancedStep active"]') with timeout=120000
[00:30:37]                   └- ✓ pass  (432ms) "machine learning data frame analytics outlier detection creation iowa house prices continues to the additional options step"
[00:30:37]                 └-> inputs the model memory limit
[00:30:37]                   └-> "before each" hook: global before each
[00:30:37]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobWizardModelMemoryInput)
[00:30:37]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardModelMemoryInput"]') with timeout=120000
[00:30:37]                   │ debg TestSubjects.setValueWithChecks(mlAnalyticsCreateJobWizardModelMemoryInput, 5mb)
[00:30:37]                   │ debg TestSubjects.click(mlAnalyticsCreateJobWizardModelMemoryInput)
[00:30:37]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardModelMemoryInput"]') with timeout=10000
[00:30:37]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardModelMemoryInput"]') with timeout=10000
[00:30:37]                   │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-centos-tests-xl-1594143484644911994] [dummy] [data_frame_analyzer/112758] [Main.cc@51] Environment error: failed to open file '/dev/shm/workspace/kibana/.es/job-xpack-kibana-ciGroup3-worker-4-es-test-cluster/ES_TMPDIR/analysis9228213640969283809.conf'.
[00:30:37]                   │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-centos-tests-xl-1594143484644911994] [dummy] [data_frame_analyzer/112758] [Main.cc@158] Failed to read config file '/dev/shm/workspace/kibana/.es/job-xpack-kibana-ciGroup3-worker-4-es-test-cluster/ES_TMPDIR/analysis9228213640969283809.conf'
[00:30:37]                   │ info [r.suppressed] [kibana-ci-immutable-centos-tests-xl-1594143484644911994] path: /_ml/data_frame/analytics/_explain, params: {}
[00:30:37]                   │      org.elasticsearch.ElasticsearchException: [memory_usage_estimation_440392] Error while closing process [Environment error: failed to open file '/dev/shm/workspace/kibana/.es/job-xpack-kibana-ciGroup3-worker-4-es-test-cluster/ES_TMPDIR/analysis9228213640969283809.conf'.
[00:30:37]                   │      Failed to read config file '/dev/shm/workspace/kibana/.es/job-xpack-kibana-ciGroup3-worker-4-es-test-cluster/ES_TMPDIR/analysis9228213640969283809.conf'
[00:30:37]                   │      ], process errors: [Environment error: failed to open file '/dev/shm/workspace/kibana/.es/job-xpack-kibana-ciGroup3-worker-4-es-test-cluster/ES_TMPDIR/analysis9228213640969283809.conf'.
[00:30:37]                   │      Failed to read config file '/dev/shm/workspace/kibana/.es/job-xpack-kibana-ciGroup3-worker-4-es-test-cluster/ES_TMPDIR/analysis9228213640969283809.conf'
[00:30:37]                   │      ]
[00:30:37]                   │      	at org.elasticsearch.xpack.core.ml.utils.ExceptionsHelper.serverError(ExceptionsHelper.java:55) ~[x-pack-core-7.9.0-SNAPSHOT.jar:7.9.0-SNAPSHOT]
[00:30:37]                   │      	at org.elasticsearch.xpack.ml.dataframe.process.MemoryUsageEstimationProcessManager.runJob(MemoryUsageEstimationProcessManager.java:112) ~[x-pack-ml-7.9.0-SNAPSHOT.jar:7.9.0-SNAPSHOT]
[00:30:37]                   │      	at org.elasticsearch.xpack.ml.dataframe.process.MemoryUsageEstimationProcessManager.lambda$runJobAsync$0(MemoryUsageEstimationProcessManager.java:48) [x-pack-ml-7.9.0-SNAPSHOT.jar:7.9.0-SNAPSHOT]
[00:30:37]                   │      	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:651) [elasticsearch-7.9.0-SNAPSHOT.jar:7.9.0-SNAPSHOT]
[00:30:37]                   │      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) [?:?]
[00:30:37]                   │      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) [?:?]
[00:30:37]                   │      	at java.lang.Thread.run(Thread.java:832) [?:?]
[00:30:37]                   │      Caused by: org.elasticsearch.ElasticsearchException: Environment error: failed to open file '/dev/shm/workspace/kibana/.es/job-xpack-kibana-ciGroup3-worker-4-es-test-cluster/ES_TMPDIR/analysis9228213640969283809.conf'.
[00:30:37]                   │      Failed to read config file '/dev/shm/workspace/kibana/.es/job-xpack-kibana-ciGroup3-worker-4-es-test-cluster/ES_TMPDIR/analysis9228213640969283809.conf'
[00:30:37]                   │      
[00:30:37]                   │      	at org.elasticsearch.xpack.core.ml.utils.ExceptionsHelper.serverError(ExceptionsHelper.java:51) ~[x-pack-core-7.9.0-SNAPSHOT.jar:7.9.0-SNAPSHOT]
[00:30:37]                   │      	at org.elasticsearch.xpack.ml.process.AbstractNativeProcess.close(AbstractNativeProcess.java:201) ~[x-pack-ml-7.9.0-SNAPSHOT.jar:7.9.0-SNAPSHOT]
[00:30:37]                   │      	at org.elasticsearch.xpack.ml.dataframe.process.MemoryUsageEstimationProcessManager.runJob(MemoryUsageEstimationProcessManager.java:105) ~[x-pack-ml-7.9.0-SNAPSHOT.jar:7.9.0-SNAPSHOT]
[00:30:37]                   │      	... 5 more
[00:30:37]                   │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-centos-tests-xl-1594143484644911994] [controller/12728] [CDetachedProcessSpawner.cc@193] Child process with PID 112758 has exited with exit code 1
[00:30:37]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobWizardModelMemoryInput, value)
[00:30:37]                   │ debg TestSubjects.find(mlAnalyticsCreateJobWizardModelMemoryInput)
[00:30:37]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardModelMemoryInput"]') with timeout=10000
[00:30:37]                   │ proc [kibana]  error  [18:40:52.225]  Error: Internal Server Error
[00:30:37]                   │ proc [kibana]     at HapiResponseAdapter.toError (/dev/shm/workspace/install/kibana-4/src/core/server/http/router/response_adapter.js:132:19)
[00:30:37]                   │ proc [kibana]     at HapiResponseAdapter.toHapiResponse (/dev/shm/workspace/install/kibana-4/src/core/server/http/router/response_adapter.js:86:19)
[00:30:37]                   │ proc [kibana]     at HapiResponseAdapter.handle (/dev/shm/workspace/install/kibana-4/src/core/server/http/router/response_adapter.js:81:17)
[00:30:37]                   │ proc [kibana]     at Router.handle (/dev/shm/workspace/install/kibana-4/src/core/server/http/router/router.js:160:34)
[00:30:37]                   │ proc [kibana]     at process._tickCallback (internal/process/next_tick.js:68:7)
[00:30:37]                   │ERROR browser[SEVERE] http://localhost:6141/api/ml/data_frame/analytics/_explain - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
[00:30:37]                   │ debg --- retry.tryForTime error: Model memory limit should be '5mb' (got '50mb')
[00:30:38]                   │ debg TestSubjects.setValueWithChecks(mlAnalyticsCreateJobWizardModelMemoryInput, 5mb)
[00:30:38]                   │ debg TestSubjects.click(mlAnalyticsCreateJobWizardModelMemoryInput)
[00:30:38]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardModelMemoryInput"]') with timeout=10000
[00:30:38]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardModelMemoryInput"]') with timeout=10000
[00:30:38]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobWizardModelMemoryInput, value)
[00:30:38]                   │ debg TestSubjects.find(mlAnalyticsCreateJobWizardModelMemoryInput)
[00:30:38]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardModelMemoryInput"]') with timeout=10000
[00:30:38]                   └- ✓ pass  (1.3s) "machine learning data frame analytics outlier detection creation iowa house prices inputs the model memory limit"
[00:30:38]                 └-> continues to the details step
[00:30:38]                   └-> "before each" hook: global before each
[00:30:38]                   │ debg TestSubjects.clickWhenNotDisabled(mlAnalyticsCreateJobWizardContinueButton)
[00:30:38]                   │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlAnalyticsCreateJobWizardContinueButton"]') with timeout=10000
[00:30:38]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobWizardContinueButton"]') with timeout=10000
[00:30:48]                   │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/machine learning data frame analytics outlier detection creation iowa house prices continues to the details step.png"
[00:30:49]                   │ info Current URL is: http://localhost:6141/app/ml#/data_frame_analytics/new_job?index=4faeee80-c081-11ea-b571-fdc698759746
[00:30:49]                   │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/machine learning data frame analytics outlier detection creation iowa house prices continues to the details step.html
[00:30:49]                   └- ✖ fail: "machine learning data frame analytics outlier detection creation iowa house prices continues to the details step"
[00:30:49]                   │

Stack Trace

{ TimeoutError: Waiting until element is enabled
Wait timed out after 10124ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7) name: 'TimeoutError', remoteStacktrace: '' }

Build metrics

@kbn/optimizer bundle module count

id value diff baseline
triggers_actions_ui 147 +1 146

History

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

@YulNaumenko YulNaumenko merged commit d539af5 into elastic:7.x Jul 7, 2020
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