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

[ML] Add check for loss_function when cloning a regression job #65481

Merged

Conversation

peteharverson
Copy link
Contributor

Summary

Adds an extra check for the new loss_function when determining the editor to use when cloning a regression job, fixing a regression introduced by elastic/elasticsearch#56118.

The form editor will be used if the job contains a loss_function parameter with the default value of mse.

image

Checklist

@peteharverson peteharverson added :ml v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Feature:Data Frame Analytics ML data frame analytics features v7.8.0 v7.9.0 labels May 6, 2020
@peteharverson peteharverson requested a review from a team as a code owner May 6, 2020 13:58
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

Copy link
Contributor

@darnautov darnautov left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@alvarezmelissa87 alvarezmelissa87 left a comment

Choose a reason for hiding this comment

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

LGTM ⚡

Copy link
Contributor

@walterra walterra left a comment

Choose a reason for hiding this comment

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

LGTM

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-oss-agent / Plugin Functional Tests.test/plugin_functional/test_suites/core_plugins/application_status·ts.core plugins application status management allows to change the defaultPath of an application

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:01:53]         └-: core plugins
[00:01:53]           └-> "before all" hook
[00:04:38]           └-: application status management
[00:04:38]             └-> "before all" hook
[00:04:38]             └-> can change the navLink status at runtime
[00:04:38]               └-> "before each" hook: global before each
[00:04:38]               └-> "before each" hook
[00:04:38]                 │ debg navigating to app_status_start url: http://localhost:6121/app/app_status_start
[00:04:38]                 │ debg navigate to: http://localhost:6121/app/app_status_start
[00:04:38]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:04:38]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:04:38]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:04:38]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588775351171 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:38]                 │
[00:04:38]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:38]                 │ debg ... sleep(700) start
[00:04:39]                 │ debg ... sleep(700) end
[00:04:39]                 │ debg returned from get, calling refresh
[00:04:39]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588775351171 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:39]                 │
[00:04:39]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:39]                 │ debg currentUrl = http://localhost:6121/app/app_status_start
[00:04:39]                 │          appUrl = http://localhost:6121/app/app_status_start
[00:04:39]                 │ debg TestSubjects.find(kibanaChrome)
[00:04:39]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:04:41]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 170:12 "Testbed plugin set up. uiProp: 'Accessible from client'"
[00:04:41]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T14:29:14Z
[00:04:41]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:04:41]                 │
[00:04:41]                 │      "
[00:04:41]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:41]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:41]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:41]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:41]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:41]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:41]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:41]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:04:41]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 178:12 "Testbed plugin started"
[00:04:41]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status_start"
[00:04:41]                 │ debg ... sleep(501) start
[00:04:42]                 │ debg ... sleep(501) end
[00:04:42]                 │ debg in navigateTo url = http://localhost:6121/app/app_status_start
[00:04:42]                 │ debg TestSubjects.exists(statusPageContainer)
[00:04:42]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:04:44]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:04:45]               │ debg TestSubjects.exists(collapsibleNav)
[00:04:45]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:04:47]               │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:04:48]               │ debg TestSubjects.click(toggleNavButton)
[00:04:48]               │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:04:48]               │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:04:48]               │ debg TestSubjects.find(collapsibleNav)
[00:04:48]               │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:04:48]               │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:04:48]               │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:04:48]               │ debg TestSubjects.exists(collapsibleNav)
[00:04:48]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:04:51]               │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:04:51]               │ debg TestSubjects.click(toggleNavButton)
[00:04:51]               │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:04:51]               │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:04:51]               │ debg TestSubjects.find(collapsibleNav)
[00:04:51]               │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:04:51]               │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:04:51]               │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:04:51]               └- ✓ pass  (6.6s) "core plugins application status management can change the navLink status at runtime"
[00:04:51]             └-> shows an error when navigating to an inaccessible app
[00:04:51]               └-> "before each" hook: global before each
[00:04:51]               └-> "before each" hook
[00:04:51]                 │ debg navigating to app_status_start url: http://localhost:6121/app/app_status_start
[00:04:51]                 │ debg navigate to: http://localhost:6121/app/app_status_start
[00:04:51]                 │ debg ... sleep(700) start
[00:04:51]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:04:51]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:04:51]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:04:51]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588775364368 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:51]                 │
[00:04:51]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:52]                 │ debg ... sleep(700) end
[00:04:52]                 │ debg returned from get, calling refresh
[00:04:54]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588775364368 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:54]                 │
[00:04:54]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:54]                 │ debg currentUrl = http://localhost:6121/app/app_status_start
[00:04:54]                 │          appUrl = http://localhost:6121/app/app_status_start
[00:04:54]                 │ debg TestSubjects.find(kibanaChrome)
[00:04:54]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:04:56]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 170:12 "Testbed plugin set up. uiProp: 'Accessible from client'"
[00:04:56]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T14:29:28Z
[00:04:56]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:04:56]                 │
[00:04:56]                 │      "
[00:04:56]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:56]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:56]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:56]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:56]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:56]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:56]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:04:56]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:04:56]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 178:12 "Testbed plugin started"
[00:04:56]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status_start"
[00:04:56]                 │ debg ... sleep(501) start
[00:04:56]                 │ debg ... sleep(501) end
[00:04:56]                 │ debg in navigateTo url = http://localhost:6121/app/app_status_start
[00:04:56]                 │ debg TestSubjects.exists(statusPageContainer)
[00:04:56]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:04:59]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:04:59]               │ debg TestSubjects.exists(appNotFoundPageContent)
[00:04:59]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="appNotFoundPageContent"]') with timeout=2500
[00:04:59]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status"
[00:05:00]               │ debg TestSubjects.exists(appStatusApp)
[00:05:00]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="appStatusApp"]') with timeout=2500
[00:05:02]               │ debg --- retry.tryForTime error: [data-test-subj="appStatusApp"] is not displayed
[00:05:03]               └- ✓ pass  (3.2s) "core plugins application status management shows an error when navigating to an inaccessible app"
[00:05:03]             └-> allows to navigate to an accessible app
[00:05:03]               └-> "before each" hook: global before each
[00:05:03]               └-> "before each" hook
[00:05:03]                 │ debg navigating to app_status_start url: http://localhost:6121/app/app_status_start
[00:05:03]                 │ debg navigate to: http://localhost:6121/app/app_status_start
[00:05:03]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:05:03]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:05:03]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:05:03]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588775375742 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:05:03]                 │
[00:05:03]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:03]                 │ debg ... sleep(700) start
[00:05:03]                 │ debg ... sleep(700) end
[00:05:03]                 │ debg returned from get, calling refresh
[00:05:04]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588775375742 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:05:04]                 │
[00:05:04]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:04]                 │ debg currentUrl = http://localhost:6121/app/app_status_start
[00:05:04]                 │          appUrl = http://localhost:6121/app/app_status_start
[00:05:04]                 │ debg TestSubjects.find(kibanaChrome)
[00:05:04]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:05:06]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 170:12 "Testbed plugin set up. uiProp: 'Accessible from client'"
[00:05:06]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T14:29:38Z
[00:05:06]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:05:06]                 │
[00:05:06]                 │      "
[00:05:06]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:06]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:06]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:06]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:06]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:06]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:06]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:06]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:05:06]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 178:12 "Testbed plugin started"
[00:05:06]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status_start"
[00:05:06]                 │ debg ... sleep(501) start
[00:05:06]                 │ debg ... sleep(501) end
[00:05:06]                 │ debg in navigateTo url = http://localhost:6121/app/app_status_start
[00:05:06]                 │ debg TestSubjects.exists(statusPageContainer)
[00:05:06]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:05:09]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:05:09]               │ debg TestSubjects.exists(appNotFoundPageContent)
[00:05:09]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="appNotFoundPageContent"]') with timeout=2500
[00:05:12]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status"
[00:05:12]               │ debg --- retry.tryForTime error: [data-test-subj="appNotFoundPageContent"] is not displayed
[00:05:12]               │ debg TestSubjects.exists(appStatusApp)
[00:05:12]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="appStatusApp"]') with timeout=2500
[00:05:12]               └- ✓ pass  (3.1s) "core plugins application status management allows to navigate to an accessible app"
[00:05:12]             └-> allows to change the defaultPath of an application
[00:05:12]               └-> "before each" hook: global before each
[00:05:12]               └-> "before each" hook
[00:05:12]                 │ debg navigating to app_status_start url: http://localhost:6121/app/app_status_start
[00:05:12]                 │ debg navigate to: http://localhost:6121/app/app_status_start
[00:05:12]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:05:12]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:05:12]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:05:12]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588775385408 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:05:12]                 │
[00:05:12]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:12]                 │ debg ... sleep(700) start
[00:05:13]                 │ debg ... sleep(700) end
[00:05:13]                 │ debg returned from get, calling refresh
[00:05:14]                 │ debg browser[INFO] http://localhost:6121/app/app_status_start?_t=1588775385408 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:05:14]                 │
[00:05:14]                 │ debg browser[INFO] http://localhost:6121/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:14]                 │ debg currentUrl = http://localhost:6121/app/app_status_start
[00:05:14]                 │          appUrl = http://localhost:6121/app/app_status_start
[00:05:14]                 │ debg TestSubjects.find(kibanaChrome)
[00:05:14]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:05:15]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 170:12 "Testbed plugin set up. uiProp: 'Accessible from client'"
[00:05:15]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T14:29:48Z
[00:05:15]                 │        Adding connection to http://localhost:6121/elasticsearch
[00:05:15]                 │
[00:05:15]                 │      "
[00:05:15]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:15]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:15]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:15]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:15]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:15]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:15]                 │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/core/core.entry.js 36415:18 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:15]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:05:15]                 │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 178:12 "Testbed plugin started"
[00:05:15]                 │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status_start"
[00:05:15]                 │ debg ... sleep(501) start
[00:05:16]                 │ debg ... sleep(501) end
[00:05:16]                 │ debg in navigateTo url = http://localhost:6121/app/app_status_start
[00:05:16]                 │ debg TestSubjects.exists(statusPageContainer)
[00:05:16]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:05:18]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:05:19]               │ debg TestSubjects.exists(collapsibleNav)
[00:05:19]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:05:21]               │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:05:22]               │ debg TestSubjects.click(toggleNavButton)
[00:05:22]               │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:05:22]               │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:05:22]               │ debg TestSubjects.find(collapsibleNav)
[00:05:22]               │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:05:22]               │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:05:22]               │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:05:22]               │ debg TestSubjects.exists(collapsibleNav)
[00:05:22]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=2500
[00:05:25]               │ debg --- retry.tryForTime error: [data-test-subj="collapsibleNav"] is not displayed
[00:05:25]               │ debg TestSubjects.click(toggleNavButton)
[00:05:25]               │ debg Find.clickByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:05:25]               │ debg Find.findByCssSelector('[data-test-subj="toggleNavButton"]') with timeout=10000
[00:05:26]               │ debg TestSubjects.find(collapsibleNav)
[00:05:26]               │ debg Find.findByCssSelector('[data-test-subj="collapsibleNav"]') with timeout=10000
[00:05:26]               │ debg Find.existsByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=2500
[00:05:26]               │ debg Find.findByCssSelector('[data-test-subj=collapsibleNav] > button') with timeout=10000
[00:05:26]               │ debg TestSubjects.exists(appStatusApp)
[00:05:26]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="appStatusApp"]') with timeout=2500
[00:05:26]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to app_status"
[00:05:26]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:05:26]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to undefined"
[00:05:26]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Error Sending Metrics Report TypeError: Failed to fetch"
[00:05:26]               │ debg browser[INFO] http://localhost:6121/app/kibana#/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:05:26]               │
[00:05:26]               │ debg browser[INFO] http://localhost:6121/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:28]               │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 170:12 "Testbed plugin set up. uiProp: 'Accessible from client'"
[00:05:28]               │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-05-06T14:30:00Z
[00:05:28]               │        Adding connection to http://localhost:6121/elasticsearch
[00:05:28]               │
[00:05:28]               │      "
[00:05:28]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2483:20 "App [rendering] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:28]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2483:20 "App [custom-app-route] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:28]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2483:20 "App [chromeless] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:28]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2483:20 "App [foo] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:28]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2483:20 "App [bar] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:28]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2483:20 "App [appleave1] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:28]               │ debg browser[WARNING] http://localhost:6121/9007199254740991/bundles/commons.bundle.js 2483:20 "App [appleave2] is using deprecated mount context. Use core.getStartServices() instead."
[00:05:28]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting user-agent."
[00:05:28]               │ debg browser[INFO] http://localhost:6121/9007199254740991/bundles/plugin/testbed/testbed.plugin.js 178:12 "Testbed plugin started"
[00:05:28]               │ debg browser[DEBUG] http://localhost:6121/9007199254740991/bundles/plugin/usageCollection/usageCollection.plugin.js 974:16 "Reporting application changed to home"
[00:05:28]               │ debg --- retry.tryForTime error: [data-test-subj="appStatusApp"] is not displayed
[00:05:29]               │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/core plugins application status management allows to change the defaultPath of an application.png"
[00:05:29]               │ info Current URL is: http://localhost:6121/app/kibana#/home
[00:05:29]               │ info Saving page source to: /dev/shm/workspace/kibana/test/plugin_functional/failure_debug/html/core plugins application status management allows to change the defaultPath of an application.html
[00:05:29]               └- ✖ fail: "core plugins application status management allows to change the defaultPath of an application"
[00:05:29]               │

Stack Trace

{ Error: expected false to sort of equal true
    at Assertion.assert (packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (packages/kbn-expect/expect.js:244:8)
    at Context.it (test/plugin_functional/test_suites/core_plugins/application_status.ts:114:60) actual: 'false', expected: 'true', showDiff: true }

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Data Frame Analytics ML data frame analytics features :ml release_note:skip Skip the PR/issue when compiling release notes v7.8.0 v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants