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

Use modern mount context in Dev Tools and Console #70379

Merged
merged 3 commits into from
Jul 1, 2020

Conversation

cjcenizal
Copy link
Contributor

This removes a warning from the browser console:

App [dev_tools] is using deprecated mount context. Use core.getStartServices() instead.

As part of this I also cleaned up the plugin definitions of Grok Debugger, Search Profiler, and Painless Lab.

@cjcenizal cjcenizal changed the title Use modern mount context in Dev Tools and Console, Use modern mount context in Dev Tools and Console Jun 30, 2020
@cjcenizal cjcenizal added Feature:Console Dev Tools Console Feature Feature:Dev Tools Feature:Grok Debugger Dev Tools Grok Debugger feature Feature:Painless Lab Dev tool for learning Painless Feature:Search Profiler Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more chore v7.9.0 v8.0.0 labels Jun 30, 2020
@@ -46,23 +43,32 @@ export class ConsoleUIPlugin implements Plugin<void, void, AppSetupUIPluginDepen
category: FeatureCatalogueCategory.ADMIN,
});

devTools.register({
return devTools.register({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The original use of async meant that the return value of calling devTools.register was published as this setup method's contract.

Copy link
Contributor

Choose a reason for hiding this comment

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

Not 100% sure I follow 😅, how did async cause the call to devTools.register to be the return value of setup? AFAICT the return value of async setup was Promise<void>.

In fact, I don't think we should be returning the value of devTools.register as the public contract. Not sure it makes sense to expose our registration to dev tools to other plugins, thus giving them a way to enable and disable console?

Copy link
Contributor

Choose a reason for hiding this comment

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

To clarify, I think the return value of setup should go from Promise<void> to just void which should be achieved by just removing async and not returning anything.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You're right! I confused the implicit return of a promise with implicitly returning a value. Thanks for pointing this out!

element,
appBasePath: '',
onAppLeave: () => undefined,
// TODO: adapt to use Core's ScopedHistory
history: {} as any,
};
const unmountHandler = isAppMountDeprecated(activeDevTool.mount)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

None of the dev tools have deprecated mount methods any more.

@@ -66,7 +67,7 @@ export class DevToolApp {
constructor(
id: string,
title: string,
mount: App['mount'],
mount: AppMount,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to make this change in order for TS to pass. It kept thinking I was trying to use the deprecated interface.

@cjcenizal cjcenizal force-pushed the dev-tools/get-start-services branch from 10dac82 to 1c1ec2f Compare June 30, 2020 22:22
@@ -59,15 +63,18 @@ export class DevToolsPlugin implements Plugin<DevToolsSetup, void> {
euiIconType: 'devToolsApp',
order: 9001,
category: DEFAULT_APP_CATEGORIES.management,
mount: async (appMountContext, params) => {
if (!this.getSortedDevTools) {
Copy link
Contributor Author

@cjcenizal cjcenizal Jun 30, 2020

Choose a reason for hiding this comment

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

This looks like a typo. Instead of invoking this method we're just checking that it exists, so this condition will always evaluate to true. If this logic were to be changed to invoke the method and respect a false return value, we'd just throw an error and Kibana would crash. Which seems like worse behavior than rendering Dev Tools with an incomplete list of apps. So I think removing this condition makes the most sense.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah it looks like this check should have been:

this.getSortedDevTools().length === 0

But I think your proposal makes more sense 👍

@cjcenizal cjcenizal marked this pull request as ready for review June 30, 2020 22:24
@cjcenizal cjcenizal requested a review from a team as a code owner June 30, 2020 22:24
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

@cjcenizal cjcenizal added the release_note:skip Skip the PR/issue when compiling release notes label Jun 30, 2020
@cjcenizal cjcenizal requested review from jloleysens and sebelga June 30, 2020 22:25
@cjcenizal cjcenizal force-pushed the dev-tools/get-start-services branch from 1c1ec2f to 9118fe5 Compare June 30, 2020 22:28
…n definitions of Grok Debugger, Search Profiler, and Painless Lab.
@cjcenizal cjcenizal force-pushed the dev-tools/get-start-services branch from 9118fe5 to e05c909 Compare July 1, 2020 01:42
Copy link
Contributor

@jloleysens jloleysens left a comment

Choose a reason for hiding this comment

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

These are some really welcome changes @cjcenizal !

I left one comment regarding console setup return value that I would like to block on, but for the most part this is looking great 👍

@@ -46,23 +43,32 @@ export class ConsoleUIPlugin implements Plugin<void, void, AppSetupUIPluginDepen
category: FeatureCatalogueCategory.ADMIN,
});

devTools.register({
return devTools.register({
Copy link
Contributor

Choose a reason for hiding this comment

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

Not 100% sure I follow 😅, how did async cause the call to devTools.register to be the return value of setup? AFAICT the return value of async setup was Promise<void>.

In fact, I don't think we should be returning the value of devTools.register as the public contract. Not sure it makes sense to expose our registration to dev tools to other plugins, thus giving them a way to enable and disable console?

@@ -59,15 +63,18 @@ export class DevToolsPlugin implements Plugin<DevToolsSetup, void> {
euiIconType: 'devToolsApp',
order: 9001,
category: DEFAULT_APP_CATEGORIES.management,
mount: async (appMountContext, params) => {
if (!this.getSortedDevTools) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah it looks like this check should have been:

this.getSortedDevTools().length === 0

But I think your proposal makes more sense 👍

@cjcenizal
Copy link
Contributor Author

@jloleysens Thanks for the review! I addressed your feedback. Could you take another look?

Copy link
Contributor

@jloleysens jloleysens left a comment

Choose a reason for hiding this comment

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

Thanks for addressing the feedback, happy with these changes!

@cjcenizal
Copy link
Contributor Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-oss-agent / Chrome UI Functional Tests.test/functional/apps/saved_objects_management/edit_saved_object·ts.saved objects management saved objects edition page allows to delete a saved object

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:11:28]         └-: saved objects management
[00:11:28]           └-> "before all" hook
[00:11:28]           └-: saved objects edition page
[00:11:28]             └-> "before all" hook
[00:11:28]             └-> allows to update the saved object when submitting
[00:11:28]               └-> "before each" hook: global before each
[00:11:28]               └-> "before each" hook
[00:11:28]                 │ info [saved_objects_management/edit_saved_object] Loading "mappings.json"
[00:11:28]                 │ info [saved_objects_management/edit_saved_object] Loading "data.json"
[00:11:28]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:11:28]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]])." previous.health="YELLOW" reason="shards started [[.kibana][0]]"
[00:11:28]                 │ info [saved_objects_management/edit_saved_object] Created index ".kibana"
[00:11:28]                 │ debg [saved_objects_management/edit_saved_object] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:11:28]                 │ info [saved_objects_management/edit_saved_object] Indexed 4 docs into ".kibana"
[00:11:28]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana/EEPVn8O_SpK7g3x3fBUgyQ] update_mapping [_doc]
[00:11:28]                 │ debg Migrating saved objects
[00:11:28]                 │ proc [kibana]   log   [17:33:18.368] [info][savedobjects-service] Creating index .kibana_2.
[00:11:28]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:11:28]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] updating number_of_replicas to [0] for indices [.kibana_2]
[00:11:28]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_2][0]]"
[00:11:28]                 │ proc [kibana]   log   [17:33:18.416] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:11:28]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:11:28]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] updating number_of_replicas to [0] for indices [.kibana_1]
[00:11:28]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_1][0]]"
[00:11:28]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] 3680 finished with response BulkByScrollResponse[took=20.6ms,timed_out=false,sliceId=null,updated=0,created=4,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:11:28]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana/EEPVn8O_SpK7g3x3fBUgyQ] deleting index
[00:11:28]                 │ proc [kibana]   log   [17:33:18.747] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:11:29]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_2/Rcr8WTugRiaH388iEKq6Bg] update_mapping [_doc]
[00:11:29]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_2/Rcr8WTugRiaH388iEKq6Bg] update_mapping [_doc]
[00:11:29]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_2/Rcr8WTugRiaH388iEKq6Bg] update_mapping [_doc]
[00:11:29]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_2/Rcr8WTugRiaH388iEKq6Bg] update_mapping [_doc]
[00:11:29]                 │ proc [kibana]   log   [17:33:18.854] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:11:29]                 │ proc [kibana]   log   [17:33:18.902] [info][savedobjects-service] Finished in 537ms.
[00:11:29]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:11:29]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_2/Rcr8WTugRiaH388iEKq6Bg] update_mapping [_doc]
[00:11:30]               │ debg navigating to settings url: http://localhost:6181/app/management
[00:11:30]               │ debg navigate to: http://localhost:6181/app/management
[00:11:30]               │ debg browser[INFO] http://localhost:6181/app/management?_t=1593624800422 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:11:30]               │
[00:11:30]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 43:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:30]               │ debg ... sleep(700) start
[00:11:31]               │ debg ... sleep(700) end
[00:11:31]               │ debg returned from get, calling refresh
[00:11:31]               │ debg browser[INFO] http://localhost:6181/34227/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 444:106112 "INFO: 2020-07-01T17:33:21Z
[00:11:31]               │        Adding connection to http://localhost:6181/elasticsearch
[00:11:31]               │
[00:11:31]               │      "
[00:11:31]               │ERROR browser[SEVERE] http://localhost:6181/34227/bundles/core/core.entry.js 75:261772 TypeError: Failed to fetch
[00:11:31]               │          at Fetch._callee3$ (http://localhost:6181/34227/bundles/core/core.entry.js:26:104500)
[00:11:31]               │          at l (http://localhost:6181/34227/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:360:1007041)
[00:11:31]               │          at Generator._invoke (http://localhost:6181/34227/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:360:1006794)
[00:11:31]               │          at Generator.forEach.e.<computed> [as throw] (http://localhost:6181/34227/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:360:1007398)
[00:11:31]               │          at fetch_asyncGeneratorStep (http://localhost:6181/34227/bundles/core/core.entry.js:26:98881)
[00:11:31]               │          at _throw (http://localhost:6181/34227/bundles/core/core.entry.js:26:99289)
[00:11:31]               │ debg browser[INFO] http://localhost:6181/app/management?_t=1593624800422 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:11:31]               │
[00:11:31]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 43:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:31]               │ debg currentUrl = http://localhost:6181/app/management
[00:11:31]               │          appUrl = http://localhost:6181/app/management
[00:11:31]               │ debg TestSubjects.find(kibanaChrome)
[00:11:31]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:11:33]               │ debg browser[INFO] http://localhost:6181/34227/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 444:106112 "INFO: 2020-07-01T17:33:22Z
[00:11:33]               │        Adding connection to http://localhost:6181/elasticsearch
[00:11:33]               │
[00:11:33]               │      "
[00:11:33]               │ debg ... sleep(501) start
[00:11:33]               │ debg ... sleep(501) end
[00:11:33]               │ debg in navigateTo url = http://localhost:6181/app/management
[00:11:33]               │ debg TestSubjects.exists(statusPageContainer)
[00:11:33]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:11:36]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:11:36]               │ debg TestSubjects.click(objects)
[00:11:36]               │ debg Find.clickByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:11:36]               │ debg Find.findByCssSelector('[data-test-subj="objects"]') with timeout=10000
[00:11:36]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:11:36]               │ debg --- retry.try error: Waiting
[00:11:37]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:11:39]               │ debg --- retry.tryForTime error: *[data-test-subj="savedObjectsTable"] .euiBasicTable-loading is not displayed
[00:11:40]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:11:42]               │ debg --- retry.tryForTime error: *[data-test-subj="savedObjectsTable"] .euiBasicTable-loading is not displayed
[00:11:43]               │ debg TestSubjects.find(savedObjectsTable)
[00:11:43]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectsTable"]') with timeout=10000
[00:11:43]               │ debg navigateToUrl http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:11:43]               │ debg browser[INFO] http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist?_t=1593624813181 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:11:43]               │
[00:11:43]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 43:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:43]               │ debg currentUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:11:43]               │          appUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:11:43]               │ debg TestSubjects.find(kibanaChrome)
[00:11:43]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:11:44]               │ debg TestSubjects.exists(savedObjectEditSave)
[00:11:44]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="savedObjectEditSave"]') with timeout=120000
[00:11:44]               │ debg browser[INFO] http://localhost:6181/34227/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 444:106112 "INFO: 2020-07-01T17:33:34Z
[00:11:44]               │        Adding connection to http://localhost:6181/elasticsearch
[00:11:44]               │
[00:11:44]               │      "
[00:11:45]               │ debg TestSubjects.getAttribute(savedObjects-editField-title, value)
[00:11:45]               │ debg TestSubjects.find(savedObjects-editField-title)
[00:11:45]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:11:45]               │ debg TestSubjects.setValue(savedObjects-editField-title, Edited Dashboard)
[00:11:45]               │ debg TestSubjects.click(savedObjects-editField-title)
[00:11:45]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:11:45]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:11:45]               │ debg TestSubjects.setValue(savedObjects-editField-description, Some description)
[00:11:45]               │ debg TestSubjects.click(savedObjects-editField-description)
[00:11:45]               │ debg Find.clickByCssSelector('[data-test-subj="savedObjects-editField-description"]') with timeout=10000
[00:11:45]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-description"]') with timeout=10000
[00:11:45]               │ debg TestSubjects.find(savedObjectEditSave)
[00:11:45]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectEditSave"]') with timeout=10000
[00:11:45]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:11:45]               │ debg --- retry.try error: Waiting
[00:11:46]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:11:48]               │ debg --- retry.tryForTime error: *[data-test-subj="savedObjectsTable"] .euiBasicTable-loading is not displayed
[00:11:49]               │ debg TestSubjects.find(savedObjectsTable)
[00:11:49]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectsTable"]') with timeout=10000
[00:11:49]               │ debg navigateToUrl http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:11:49]               │ debg currentUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:11:49]               │          appUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:11:49]               │ debg TestSubjects.find(kibanaChrome)
[00:11:49]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:11:50]               │ debg TestSubjects.getAttribute(savedObjects-editField-title, value)
[00:11:50]               │ debg TestSubjects.find(savedObjects-editField-title)
[00:11:50]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-title"]') with timeout=10000
[00:11:50]               │ debg browser[INFO] http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist?_t=1593624819137 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:11:50]               │
[00:11:50]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 43:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:50]               │ debg browser[INFO] http://localhost:6181/34227/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 444:106112 "INFO: 2020-07-01T17:33:39Z
[00:11:50]               │        Adding connection to http://localhost:6181/elasticsearch
[00:11:50]               │
[00:11:50]               │      "
[00:11:50]               │ debg TestSubjects.getAttribute(savedObjects-editField-description, value)
[00:11:50]               │ debg TestSubjects.find(savedObjects-editField-description)
[00:11:50]               │ debg Find.findByCssSelector('[data-test-subj="savedObjects-editField-description"]') with timeout=10000
[00:11:50]               └- ✓ pass  (20.1s) "saved objects management saved objects edition page allows to update the saved object when submitting"
[00:11:50]             └-> "after each" hook
[00:11:50]               │ info [saved_objects_management/edit_saved_object] Unloading indices from "mappings.json"
[00:11:50]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_2/Rcr8WTugRiaH388iEKq6Bg] deleting index
[00:11:50]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_1/fHnuJ3L6QfC3eU1FBSQ2Zw] deleting index
[00:11:50]               │ info [saved_objects_management/edit_saved_object] Deleted existing index [".kibana_2",".kibana_1"]
[00:11:50]               │ info [saved_objects_management/edit_saved_object] Unloading indices from "data.json"
[00:11:50]             └-> allows to delete a saved object
[00:11:50]               └-> "before each" hook: global before each
[00:11:50]               └-> "before each" hook
[00:11:50]                 │ info [saved_objects_management/edit_saved_object] Loading "mappings.json"
[00:11:50]                 │ info [saved_objects_management/edit_saved_object] Loading "data.json"
[00:11:50]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:11:50]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]])." previous.health="YELLOW" reason="shards started [[.kibana][0]]"
[00:11:50]                 │ info [saved_objects_management/edit_saved_object] Created index ".kibana"
[00:11:50]                 │ debg [saved_objects_management/edit_saved_object] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:11:50]                 │ info [saved_objects_management/edit_saved_object] Indexed 4 docs into ".kibana"
[00:11:50]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana/zMEyGCR1SDOchRAdlalZSg] update_mapping [_doc]
[00:11:50]                 │ debg Migrating saved objects
[00:11:50]                 │ proc [kibana]   log   [17:33:40.697] [info][savedobjects-service] Creating index .kibana_2.
[00:11:50]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:11:50]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] updating number_of_replicas to [0] for indices [.kibana_2]
[00:11:50]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_2][0]]"
[00:11:50]                 │ proc [kibana]   log   [17:33:40.745] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:11:50]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:11:50]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] updating number_of_replicas to [0] for indices [.kibana_1]
[00:11:51]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_1][0]]"
[00:11:51]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] 3926 finished with response BulkByScrollResponse[took=23.1ms,timed_out=false,sliceId=null,updated=0,created=4,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:11:51]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana/zMEyGCR1SDOchRAdlalZSg] deleting index
[00:11:51]                 │ proc [kibana]   log   [17:33:41.070] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:11:51]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_2/_c21aanYR42bTpDdg1cxVA] update_mapping [_doc]
[00:11:51]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_2/_c21aanYR42bTpDdg1cxVA] update_mapping [_doc]
[00:11:51]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_2/_c21aanYR42bTpDdg1cxVA] update_mapping [_doc]
[00:11:51]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_2/_c21aanYR42bTpDdg1cxVA] update_mapping [_doc]
[00:11:51]                 │ proc [kibana]   log   [17:33:41.173] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:11:51]                 │ proc [kibana]   log   [17:33:41.215] [info][savedobjects-service] Finished in 519ms.
[00:11:51]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:11:51]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1593623143846867171] [.kibana_2/_c21aanYR42bTpDdg1cxVA] update_mapping [_doc]
[00:11:52]               │ debg navigateToUrl http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:11:53]               │ debg currentUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:11:53]               │          appUrl = http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:11:53]               │ debg TestSubjects.find(kibanaChrome)
[00:11:53]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:11:54]               │ debg TestSubjects.find(savedObjectEditDelete)
[00:11:54]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectEditDelete"]') with timeout=10000
[00:11:54]               │ debg browser[INFO] http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist?_t=1593624822749 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:11:54]               │
[00:11:54]               │ debg browser[INFO] http://localhost:6181/bundles/app/core/bootstrap.js 43:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:11:54]               │ debg browser[INFO] http://localhost:6181/34227/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 444:106112 "INFO: 2020-07-01T17:33:43Z
[00:11:54]               │        Adding connection to http://localhost:6181/elasticsearch
[00:11:54]               │
[00:11:54]               │      "
[00:11:54]               │ debg Clicking modal confirm
[00:11:54]               │ debg TestSubjects.exists(confirmModalTitleText)
[00:11:54]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="confirmModalTitleText"]') with timeout=2500
[00:11:54]               │ debg TestSubjects.click(confirmModalConfirmButton)
[00:11:54]               │ debg Find.clickByCssSelector('[data-test-subj="confirmModalConfirmButton"]') with timeout=10000
[00:11:54]               │ debg Find.findByCssSelector('[data-test-subj="confirmModalConfirmButton"]') with timeout=10000
[00:11:54]               │ debg TestSubjects.exists(confirmModalTitleText)
[00:11:54]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="confirmModalTitleText"]') with timeout=2500
[00:11:57]               │ debg browser[INFO] http://localhost:6181/34227/bundles/core/core.entry.js 75:262851 "Detected an unhandled Promise rejection.
[00:11:57]               │      TypeError: Cannot read property 'attributes' of undefined"
[00:11:57]               │ERROR browser[SEVERE] http://localhost:6181/34227/bundles/plugin/savedObjectsManagement/1.plugin.js 5:34045 Uncaught TypeError: Cannot read property 'attributes' of undefined
[00:11:57]               │ debg --- retry.tryForTime error: [data-test-subj="confirmModalTitleText"] is not displayed
[00:11:57]               │ debg Find.existsByDisplayedByCssSelector('*[data-test-subj="savedObjectsTable"] .euiBasicTable-loading') with timeout=2500
[00:12:00]               │ debg --- retry.tryForTime error: *[data-test-subj="savedObjectsTable"] .euiBasicTable-loading is not displayed
[00:12:00]               │ debg TestSubjects.find(savedObjectsTable)
[00:12:00]               │ debg Find.findByCssSelector('[data-test-subj="savedObjectsTable"]') with timeout=10000
[00:12:10]               │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/saved objects management saved objects edition page allows to delete a saved object.png"
[00:12:10]               │ info Current URL is: http://localhost:6181/app/management/kibana/objects/savedDashboards/i-exist
[00:12:10]               │ info Saving page source to: /dev/shm/workspace/kibana/test/functional/failure_debug/html/saved objects management saved objects edition page allows to delete a saved object.html
[00:12:10]               └- ✖ fail: "saved objects management saved objects edition page allows to delete a saved object"
[00:12:10]               │

Stack Trace

{ TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="savedObjectsTable"])
Wait timed out after 10023ms
    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

✅ unchanged

History

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

@cjcenizal cjcenizal merged commit 91b8e7d into elastic:master Jul 1, 2020
@cjcenizal cjcenizal deleted the dev-tools/get-start-services branch July 1, 2020 19:41
cjcenizal added a commit that referenced this pull request Jul 1, 2020
* Use modern mount context in Dev Tools and Console, and clean up plugin definitions of Grok Debugger, Search Profiler, and Painless Lab.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Feature:Console Dev Tools Console Feature Feature:Dev Tools Feature:Grok Debugger Dev Tools Grok Debugger feature Feature:Painless Lab Dev tool for learning Painless Feature:Search Profiler release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.9.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants