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

[PoC] persisted state service #63451

Closed
wants to merge 7 commits into from
Closed

Conversation

ppisljar
Copy link
Member

Summary

continuing on #63085

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

Copy link
Member

@lukeelmers lukeelmers left a comment

Choose a reason for hiding this comment

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

Pushed some updates to clean up the typings & remove casting, and I think everything works now. From another plugin, if you do this:

async start(core, { share }) {
  const visDef = await share.persistableState.get('visualizations');
}

...then you should get the correct type on visDef, with autocomplete working.

I also added mocks for the share plugin since there was a TS compilation failure on the vis mocks.

TS won't pass just yet though; there are a few failures related to vis tests that are using extractReferences, but AFAIK nothing related to the new service.

src/plugins/share/public/persistable_state/types.ts Outdated Show resolved Hide resolved
Comment on lines 79 to 81
// TODO: should be PersistableState<SerializableState>
[key: string]: PersistableState<unknown>;
}
Copy link
Member

Choose a reason for hiding this comment

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

Same comment on SerializableState -- this should replace unknown once VisSavedObject is updated or changed to a different interface.

Comment on lines 22 to 26
type State = string | number | boolean | null | undefined | SerializableState;

interface SerializableState {
[key: string]: State | State[];
}
Copy link
Member

Choose a reason for hiding this comment

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

This is more or less ripped off from core's SavedObjectAttributes, just with a different name to prevent confusion.

@kibanamachine
Copy link
Contributor

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / kibana-oss-agent / Accessibility Tests.test/accessibility/apps/discover·ts.Discover "before all" hook for "main view"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: Discover
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ info [discover] Loading "mappings.json"
[00:00:00]             │ info [discover] Loading "data.json.gz"
[00:00:00]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] [.kibana_1/6TlweEfOSUahcLWGbLu3JA] deleting index
[00:00:00]             │ info [discover] Deleted existing index [".kibana_1"]
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] applying create index request using v1 templates []
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] [.kibana] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:00]             │ info [discover] Created index ".kibana"
[00:00:00]             │ debg [discover] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:00]             │ info [discover] Indexed 2 docs into ".kibana"
[00:00:00]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] [.kibana/mV9H5-F2SNahq9HDXLonDw] update_mapping [_doc]
[00:00:00]             │ debg Migrating saved objects
[00:00:00]             │ proc [kibana]   log   [13:53:59.779] [info][savedobjects-service] Creating index .kibana_2.
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] applying create index request using v1 templates []
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:00]             │ proc [kibana]   log   [13:53:59.855] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] applying create index request using v1 templates []
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] applying create index request using v1 templates []
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1], mappings [_doc]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] updating number_of_replicas to [0] for indices [.tasks]
[00:00:00]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] 104 finished with response BulkByScrollResponse[took=80ms,timed_out=false,sliceId=null,updated=0,created=2,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:00]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] [.kibana/mV9H5-F2SNahq9HDXLonDw] deleting index
[00:00:00]             │ proc [kibana]   log   [13:54:00.252] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:00]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] [.kibana_2/hDR_EbIpQW6A80VieUMExw] update_mapping [_doc]
[00:00:00]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] [.kibana_2/hDR_EbIpQW6A80VieUMExw] update_mapping [_doc]
[00:00:00]             │ proc [kibana]   log   [13:54:00.362] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:00]             │ proc [kibana]   log   [13:54:00.414] [info][savedobjects-service] Finished in 637ms.
[00:00:00]             │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:01]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] [.kibana_2/hDR_EbIpQW6A80VieUMExw] update_mapping [_doc]
[00:00:02]             │ info [logstash_functional] Loading "mappings.json"
[00:00:02]             │ info [logstash_functional] Loading "data.json.gz"
[00:00:02]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] applying create index request using v1 templates []
[00:00:02]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:02]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.22][0]]"
[00:00:02]             │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:00:02]             │ debg [logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:02]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] applying create index request using v1 templates []
[00:00:02]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:02]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.20][0]]"
[00:00:02]             │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:00:02]             │ debg [logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:02]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] applying create index request using v1 templates []
[00:00:02]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:02]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.21][0]]"
[00:00:02]             │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:00:02]             │ debg [logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:12]             │ info progress: 12037
[00:00:13]             │ info [logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:00:13]             │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:13]             │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:13]             │ debg applying update to kibana config: {"defaultIndex":"logstash-*"}
[00:00:14]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xl-1586957572077845633] [.kibana_2/hDR_EbIpQW6A80VieUMExw] update_mapping [_doc]
[00:00:14]             │ debg navigating to discover url: http://localhost:61131/app/kibana#/discover
[00:00:14]             │ debg navigate to: http://localhost:61131/app/kibana#/discover
[00:00:14]             │ debg browser[INFO] http://localhost:61131/app/kibana?_t=1586958853875#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:14]             │
[00:00:14]             │ debg browser[INFO] http://localhost:61131/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:14]             │ debg ... sleep(700) start
[00:00:15]             │ debg ... sleep(700) end
[00:00:15]             │ debg returned from get, calling refresh
[00:00:16]             │ debg browser[INFO] http://localhost:61131/app/kibana?_t=1586958853875#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:16]             │
[00:00:16]             │ debg browser[INFO] http://localhost:61131/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:16]             │ debg currentUrl = http://localhost:61131/app/kibana#/discover
[00:00:16]             │          appUrl = http://localhost:61131/app/kibana#/discover
[00:00:16]             │ debg TestSubjects.find(kibanaChrome)
[00:00:16]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:18]             │ debg browser[INFO] http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-15T13:54:17Z
[00:00:18]             │        Adding connection to http://localhost:61131/elasticsearch
[00:00:18]             │
[00:00:18]             │      "
[00:00:18]             │ERROR browser[SEVERE] http://localhost:61131/bundles/commons.bundle.js 0:1479779 TypeError: Cannot read property 'persistableState' of undefined
[00:00:18]             │          at VisualizationsPlugin.setup (http://localhost:61131/bundles/plugin/visualizations/visualizations.plugin.js:6:573355)
[00:00:18]             │          at PluginWrapper._callee2$ (http://localhost:61131/bundles/commons.bundle.js:1:659580)
[00:00:18]             │          at l (http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970423)
[00:00:18]             │          at Generator._invoke (http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970176)
[00:00:18]             │          at Generator.forEach.e.<computed> [as next] (http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970780)
[00:00:18]             │          at asyncGeneratorStep (http://localhost:61131/bundles/commons.bundle.js:1:656579)
[00:00:18]             │          at _next (http://localhost:61131/bundles/commons.bundle.js:1:656890)
[00:00:18]             │ debg browser[INFO] http://localhost:61131/bundles/commons.bundle.js 0:1480781 "Detected an unhandled Promise rejection.
[00:00:18]             │      TypeError: Cannot read property 'persistableState' of undefined"
[00:00:18]             │ERROR browser[SEVERE] http://localhost:61131/bundles/plugin/visualizations/visualizations.plugin.js 5:573354 Uncaught TypeError: Cannot read property 'persistableState' of undefined
[00:01:16]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:01:16]             │      Wait timed out after 60129ms
[00:01:16]             │ debg navigate to: http://localhost:61131/app/kibana#/discover
[00:01:16]             │ debg browser[INFO] http://localhost:61131/app/kibana?_t=1586958916208#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:16]             │
[00:01:16]             │ debg browser[INFO] http://localhost:61131/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:16]             │ debg ... sleep(700) start
[00:01:17]             │ debg ... sleep(700) end
[00:01:17]             │ debg returned from get, calling refresh
[00:01:18]             │ debg browser[INFO] http://localhost:61131/app/kibana?_t=1586958916208#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:01:18]             │
[00:01:18]             │ debg browser[INFO] http://localhost:61131/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:18]             │ debg currentUrl = http://localhost:61131/app/kibana#/discover
[00:01:18]             │          appUrl = http://localhost:61131/app/kibana#/discover
[00:01:18]             │ debg TestSubjects.find(kibanaChrome)
[00:01:18]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:19]             │ debg browser[INFO] http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-15T13:55:19Z
[00:01:19]             │        Adding connection to http://localhost:61131/elasticsearch
[00:01:19]             │
[00:01:19]             │      "
[00:01:19]             │ERROR browser[SEVERE] http://localhost:61131/bundles/commons.bundle.js 0:1479779 TypeError: Cannot read property 'persistableState' of undefined
[00:01:19]             │          at VisualizationsPlugin.setup (http://localhost:61131/bundles/plugin/visualizations/visualizations.plugin.js:6:573355)
[00:01:19]             │          at PluginWrapper._callee2$ (http://localhost:61131/bundles/commons.bundle.js:1:659580)
[00:01:19]             │          at l (http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970423)
[00:01:19]             │          at Generator._invoke (http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970176)
[00:01:19]             │          at Generator.forEach.e.<computed> [as next] (http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970780)
[00:01:19]             │          at asyncGeneratorStep (http://localhost:61131/bundles/commons.bundle.js:1:656579)
[00:01:19]             │          at _next (http://localhost:61131/bundles/commons.bundle.js:1:656890)
[00:01:19]             │ debg browser[INFO] http://localhost:61131/bundles/commons.bundle.js 0:1480781 "Detected an unhandled Promise rejection.
[00:01:19]             │      TypeError: Cannot read property 'persistableState' of undefined"
[00:01:19]             │ERROR browser[SEVERE] http://localhost:61131/bundles/plugin/visualizations/visualizations.plugin.js 5:573354 Uncaught TypeError: Cannot read property 'persistableState' of undefined
[00:02:18]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:02:18]             │      Wait timed out after 60054ms
[00:02:18]             │ debg --- retry.tryForTime error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:02:18]             │      Wait timed out after 60054ms
[00:02:18]             │          at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:02:18]             │          at process._tickCallback (internal/process/next_tick.js:68:7)
[00:02:19]             │ debg navigate to: http://localhost:61131/app/kibana#/discover
[00:02:19]             │ debg browser[INFO] http://localhost:61131/app/kibana?_t=1586958978602#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:02:19]             │
[00:02:19]             │ debg browser[INFO] http://localhost:61131/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:19]             │ debg ... sleep(700) start
[00:02:19]             │ debg ... sleep(700) end
[00:02:19]             │ debg returned from get, calling refresh
[00:02:20]             │ debg browser[INFO] http://localhost:61131/app/kibana?_t=1586958978602#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:02:20]             │
[00:02:20]             │ debg browser[INFO] http://localhost:61131/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:20]             │ debg currentUrl = http://localhost:61131/app/kibana#/discover
[00:02:20]             │          appUrl = http://localhost:61131/app/kibana#/discover
[00:02:20]             │ debg TestSubjects.find(kibanaChrome)
[00:02:20]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:22]             │ debg browser[INFO] http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-15T13:56:21Z
[00:02:22]             │        Adding connection to http://localhost:61131/elasticsearch
[00:02:22]             │
[00:02:22]             │      "
[00:02:22]             │ERROR browser[SEVERE] http://localhost:61131/bundles/commons.bundle.js 0:1479779 TypeError: Cannot read property 'persistableState' of undefined
[00:02:22]             │          at VisualizationsPlugin.setup (http://localhost:61131/bundles/plugin/visualizations/visualizations.plugin.js:6:573355)
[00:02:22]             │          at PluginWrapper._callee2$ (http://localhost:61131/bundles/commons.bundle.js:1:659580)
[00:02:22]             │          at l (http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970423)
[00:02:22]             │          at Generator._invoke (http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970176)
[00:02:22]             │          at Generator.forEach.e.<computed> [as next] (http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970780)
[00:02:22]             │          at asyncGeneratorStep (http://localhost:61131/bundles/commons.bundle.js:1:656579)
[00:02:22]             │          at _next (http://localhost:61131/bundles/commons.bundle.js:1:656890)
[00:02:22]             │ debg browser[INFO] http://localhost:61131/bundles/commons.bundle.js 0:1480781 "Detected an unhandled Promise rejection.
[00:02:22]             │      TypeError: Cannot read property 'persistableState' of undefined"
[00:02:22]             │ERROR browser[SEVERE] http://localhost:61131/bundles/plugin/visualizations/visualizations.plugin.js 5:573354 Uncaught TypeError: Cannot read property 'persistableState' of undefined
[00:03:20]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:03:20]             │      Wait timed out after 60186ms
[00:03:21]             │ debg navigate to: http://localhost:61131/app/kibana#/discover
[00:03:21]             │ debg browser[INFO] http://localhost:61131/app/kibana?_t=1586959040659#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:03:21]             │
[00:03:21]             │ debg browser[INFO] http://localhost:61131/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:21]             │ debg ... sleep(700) start
[00:03:21]             │ debg ... sleep(700) end
[00:03:21]             │ debg returned from get, calling refresh
[00:03:22]             │ debg browser[INFO] http://localhost:61131/app/kibana?_t=1586959040659#/discover 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:03:22]             │
[00:03:22]             │ debg browser[INFO] http://localhost:61131/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:22]             │ debg currentUrl = http://localhost:61131/app/kibana#/discover
[00:03:22]             │          appUrl = http://localhost:61131/app/kibana#/discover
[00:03:22]             │ debg TestSubjects.find(kibanaChrome)
[00:03:22]             │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:24]             │ debg browser[INFO] http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-15T13:57:23Z
[00:03:24]             │        Adding connection to http://localhost:61131/elasticsearch
[00:03:24]             │
[00:03:24]             │      "
[00:03:24]             │ERROR browser[SEVERE] http://localhost:61131/bundles/commons.bundle.js 0:1479779 TypeError: Cannot read property 'persistableState' of undefined
[00:03:24]             │          at VisualizationsPlugin.setup (http://localhost:61131/bundles/plugin/visualizations/visualizations.plugin.js:6:573355)
[00:03:24]             │          at PluginWrapper._callee2$ (http://localhost:61131/bundles/commons.bundle.js:1:659580)
[00:03:24]             │          at l (http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970423)
[00:03:24]             │          at Generator._invoke (http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970176)
[00:03:24]             │          at Generator.forEach.e.<computed> [as next] (http://localhost:61131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970780)
[00:03:24]             │          at asyncGeneratorStep (http://localhost:61131/bundles/commons.bundle.js:1:656579)
[00:03:24]             │          at _next (http://localhost:61131/bundles/commons.bundle.js:1:656890)
[00:03:24]             │ debg browser[INFO] http://localhost:61131/bundles/commons.bundle.js 0:1480781 "Detected an unhandled Promise rejection.
[00:03:24]             │      TypeError: Cannot read property 'persistableState' of undefined"
[00:03:24]             │ERROR browser[SEVERE] http://localhost:61131/bundles/plugin/visualizations/visualizations.plugin.js 5:573354 Uncaught TypeError: Cannot read property 'persistableState' of undefined
[00:04:22]             │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:22]             │      Wait timed out after 60051ms
[00:04:23]             │ debg --- retry.tryForTime error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:23]             │      Wait timed out after 60051ms
[00:04:23]             │          at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:04:23]             │          at process._tickCallback (internal/process/next_tick.js:68:7)
[00:04:23]             │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/Discover _before all_ hook.png"
[00:04:23]             │ info Current URL is: http://localhost:61131/app/kibana#/discover
[00:04:23]             │ info Saving page source to: /dev/shm/workspace/kibana/test/functional/failure_debug/html/Discover _before all_ hook.html
[00:04:23]             └- ✖ fail: "Discover "before all" hook for "main view""
[00:04:23]             │

Stack Trace

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

Kibana Pipeline / kibana-oss-agent / Chrome UI Functional Tests.test/functional/apps/console/_console·ts.console app console app "before all" hook for "should show the default request"

Link to Jenkins

Standard Out

Failed Tests Reporter:
  - Test has failed 1 times on tracked branches: https://dryrun

[00:00:00]       │
[00:00:00]         └-: console app
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: console app
[00:00:00]             └-> "before all" hook
[00:00:00]             └-> "before all" hook
[00:00:00]               │ debg navigateTo console
[00:00:00]               │ debg navigating to console url: http://localhost:6111/app/kibana#/dev_tools/console
[00:00:00]               │ debg navigate to: http://localhost:6111/app/kibana#/dev_tools/console
[00:00:00]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586958953114#/dev_tools/console 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:00:00]               │
[00:00:00]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:00]               │ debg ... sleep(700) start
[00:00:00]               │ debg ... sleep(700) end
[00:00:00]               │ debg returned from get, calling refresh
[00:00:01]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586958953114#/dev_tools/console 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:00:01]               │
[00:00:01]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:01]               │ debg currentUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:00:01]               │          appUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:00:01]               │ debg TestSubjects.find(kibanaChrome)
[00:00:01]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:03]               │ debg browser[INFO] http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-15T13:55:56Z
[00:00:03]               │        Adding connection to http://localhost:6111/elasticsearch
[00:00:03]               │
[00:00:03]               │      "
[00:00:03]               │ERROR browser[SEVERE] http://localhost:6111/bundles/commons.bundle.js 0:1479779 TypeError: Cannot read property 'persistableState' of undefined
[00:00:03]               │          at VisualizationsPlugin.setup (http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js:6:573355)
[00:00:03]               │          at PluginWrapper._callee2$ (http://localhost:6111/bundles/commons.bundle.js:1:659580)
[00:00:03]               │          at l (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970423)
[00:00:03]               │          at Generator._invoke (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970176)
[00:00:03]               │          at Generator.forEach.e.<computed> [as next] (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970780)
[00:00:03]               │          at asyncGeneratorStep (http://localhost:6111/bundles/commons.bundle.js:1:656579)
[00:00:03]               │          at _next (http://localhost:6111/bundles/commons.bundle.js:1:656890)
[00:00:03]               │ debg browser[INFO] http://localhost:6111/bundles/commons.bundle.js 0:1480781 "Detected an unhandled Promise rejection.
[00:00:03]               │      TypeError: Cannot read property 'persistableState' of undefined"
[00:00:03]               │ERROR browser[SEVERE] http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js 5:573354 Uncaught TypeError: Cannot read property 'persistableState' of undefined
[00:01:01]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:01:01]               │      Wait timed out after 60082ms
[00:01:02]               │ debg navigate to: http://localhost:6111/app/kibana#/dev_tools/console
[00:01:02]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586959015459#/dev_tools/console 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:01:02]               │
[00:01:02]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:02]               │ debg ... sleep(700) start
[00:01:03]               │ debg ... sleep(700) end
[00:01:03]               │ debg returned from get, calling refresh
[00:01:03]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586959015459#/dev_tools/console 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:01:03]               │
[00:01:03]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:03]               │ debg currentUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:01:03]               │          appUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:01:03]               │ debg TestSubjects.find(kibanaChrome)
[00:01:03]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:05]               │ debg browser[INFO] http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-15T13:56:58Z
[00:01:05]               │        Adding connection to http://localhost:6111/elasticsearch
[00:01:05]               │
[00:01:05]               │      "
[00:01:05]               │ERROR browser[SEVERE] http://localhost:6111/bundles/commons.bundle.js 0:1479779 TypeError: Cannot read property 'persistableState' of undefined
[00:01:05]               │          at VisualizationsPlugin.setup (http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js:6:573355)
[00:01:05]               │          at PluginWrapper._callee2$ (http://localhost:6111/bundles/commons.bundle.js:1:659580)
[00:01:05]               │          at l (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970423)
[00:01:05]               │          at Generator._invoke (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970176)
[00:01:05]               │          at Generator.forEach.e.<computed> [as next] (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970780)
[00:01:05]               │          at asyncGeneratorStep (http://localhost:6111/bundles/commons.bundle.js:1:656579)
[00:01:05]               │          at _next (http://localhost:6111/bundles/commons.bundle.js:1:656890)
[00:01:05]               │ debg browser[INFO] http://localhost:6111/bundles/commons.bundle.js 0:1480781 "Detected an unhandled Promise rejection.
[00:01:05]               │      TypeError: Cannot read property 'persistableState' of undefined"
[00:01:05]               │ERROR browser[SEVERE] http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js 5:573354 Uncaught TypeError: Cannot read property 'persistableState' of undefined
[00:02:03]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:02:03]               │      Wait timed out after 60048ms
[00:02:04]               │ debg --- retry.tryForTime error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:02:04]               │      Wait timed out after 60048ms
[00:02:04]               │          at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:02:04]               │          at process._tickCallback (internal/process/next_tick.js:68:7)
[00:02:04]               │ debg navigate to: http://localhost:6111/app/kibana#/dev_tools/console
[00:02:05]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586959077926#/dev_tools/console 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:02:05]               │
[00:02:05]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:05]               │ debg ... sleep(700) start
[00:02:05]               │ debg ... sleep(700) end
[00:02:05]               │ debg returned from get, calling refresh
[00:02:06]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586959077926#/dev_tools/console 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:02:06]               │
[00:02:06]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:06]               │ debg currentUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:02:06]               │          appUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:02:06]               │ debg TestSubjects.find(kibanaChrome)
[00:02:06]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:08]               │ debg browser[INFO] http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-15T13:58:00Z
[00:02:08]               │        Adding connection to http://localhost:6111/elasticsearch
[00:02:08]               │
[00:02:08]               │      "
[00:02:08]               │ERROR browser[SEVERE] http://localhost:6111/bundles/commons.bundle.js 0:1479779 TypeError: Cannot read property 'persistableState' of undefined
[00:02:08]               │          at VisualizationsPlugin.setup (http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js:6:573355)
[00:02:08]               │          at PluginWrapper._callee2$ (http://localhost:6111/bundles/commons.bundle.js:1:659580)
[00:02:08]               │          at l (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970423)
[00:02:08]               │          at Generator._invoke (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970176)
[00:02:08]               │          at Generator.forEach.e.<computed> [as next] (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970780)
[00:02:08]               │          at asyncGeneratorStep (http://localhost:6111/bundles/commons.bundle.js:1:656579)
[00:02:08]               │          at _next (http://localhost:6111/bundles/commons.bundle.js:1:656890)
[00:02:08]               │ debg browser[INFO] http://localhost:6111/bundles/commons.bundle.js 0:1480781 "Detected an unhandled Promise rejection.
[00:02:08]               │      TypeError: Cannot read property 'persistableState' of undefined"
[00:02:08]               │ERROR browser[SEVERE] http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js 5:573354 Uncaught TypeError: Cannot read property 'persistableState' of undefined
[00:03:06]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:03:06]               │      Wait timed out after 60146ms
[00:03:06]               │ debg navigate to: http://localhost:6111/app/kibana#/dev_tools/console
[00:03:07]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586959139935#/dev_tools/console 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:03:07]               │
[00:03:07]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:07]               │ debg ... sleep(700) start
[00:03:07]               │ debg ... sleep(700) end
[00:03:07]               │ debg returned from get, calling refresh
[00:03:08]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586959139935#/dev_tools/console 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:03:08]               │
[00:03:08]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:08]               │ debg currentUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:03:08]               │          appUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:03:08]               │ debg TestSubjects.find(kibanaChrome)
[00:03:08]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:09]               │ debg browser[INFO] http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-15T13:59:02Z
[00:03:09]               │        Adding connection to http://localhost:6111/elasticsearch
[00:03:09]               │
[00:03:09]               │      "
[00:03:09]               │ERROR browser[SEVERE] http://localhost:6111/bundles/commons.bundle.js 0:1479779 TypeError: Cannot read property 'persistableState' of undefined
[00:03:09]               │          at VisualizationsPlugin.setup (http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js:6:573355)
[00:03:09]               │          at PluginWrapper._callee2$ (http://localhost:6111/bundles/commons.bundle.js:1:659580)
[00:03:09]               │          at l (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970423)
[00:03:09]               │          at Generator._invoke (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970176)
[00:03:09]               │          at Generator.forEach.e.<computed> [as next] (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970780)
[00:03:09]               │          at asyncGeneratorStep (http://localhost:6111/bundles/commons.bundle.js:1:656579)
[00:03:09]               │          at _next (http://localhost:6111/bundles/commons.bundle.js:1:656890)
[00:03:10]               │ debg browser[INFO] http://localhost:6111/bundles/commons.bundle.js 0:1480781 "Detected an unhandled Promise rejection.
[00:03:10]               │      TypeError: Cannot read property 'persistableState' of undefined"
[00:03:10]               │ERROR browser[SEVERE] http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js 5:573354 Uncaught TypeError: Cannot read property 'persistableState' of undefined
[00:04:08]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:08]               │      Wait timed out after 60023ms
[00:04:08]               │ debg --- retry.tryForTime error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:08]               │      Wait timed out after 60023ms
[00:04:08]               │          at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:04:08]               │          at process._tickCallback (internal/process/next_tick.js:68:7)
[00:04:09]               │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/console app console app _before all_ hook.png"
[00:04:09]               │ info Current URL is: http://localhost:6111/app/kibana#/dev_tools/console
[00:04:09]               │ info Saving page source to: /dev/shm/workspace/kibana/test/functional/failure_debug/html/console app console app _before all_ hook.html
[00:04:09]               └- ✖ fail: "console app console app "before all" hook for "should show the default request""
[00:04:09]               │

Stack Trace

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

Kibana Pipeline / kibana-oss-agent / Chrome UI Functional Tests.test/functional/apps/console/_console·ts.console app console app "before all" hook for "should show the default request"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: console app
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: console app
[00:00:00]             └-> "before all" hook
[00:00:00]             └-> "before all" hook
[00:00:00]               │ debg navigateTo console
[00:00:00]               │ debg navigating to console url: http://localhost:6111/app/kibana#/dev_tools/console
[00:00:00]               │ debg navigate to: http://localhost:6111/app/kibana#/dev_tools/console
[00:00:00]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586958603674#/dev_tools/console 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:00:00]               │
[00:00:00]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:00]               │ debg ... sleep(700) start
[00:00:01]               │ debg ... sleep(700) end
[00:00:01]               │ debg returned from get, calling refresh
[00:00:02]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586958603674#/dev_tools/console 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:00:02]               │
[00:00:02]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:02]               │ debg currentUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:00:02]               │          appUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:00:02]               │ debg TestSubjects.find(kibanaChrome)
[00:00:02]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:04]               │ debg browser[INFO] http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-15T13:50:07Z
[00:00:04]               │        Adding connection to http://localhost:6111/elasticsearch
[00:00:04]               │
[00:00:04]               │      "
[00:00:04]               │ERROR browser[SEVERE] http://localhost:6111/bundles/commons.bundle.js 0:1479779 TypeError: Cannot read property 'persistableState' of undefined
[00:00:04]               │          at VisualizationsPlugin.setup (http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js:6:573355)
[00:00:04]               │          at PluginWrapper._callee2$ (http://localhost:6111/bundles/commons.bundle.js:1:659580)
[00:00:04]               │          at l (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970423)
[00:00:04]               │          at Generator._invoke (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970176)
[00:00:04]               │          at Generator.forEach.e.<computed> [as next] (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970780)
[00:00:04]               │          at asyncGeneratorStep (http://localhost:6111/bundles/commons.bundle.js:1:656579)
[00:00:04]               │          at _next (http://localhost:6111/bundles/commons.bundle.js:1:656890)
[00:00:04]               │ debg browser[INFO] http://localhost:6111/bundles/commons.bundle.js 0:1480781 "Detected an unhandled Promise rejection.
[00:00:04]               │      TypeError: Cannot read property 'persistableState' of undefined"
[00:00:04]               │ERROR browser[SEVERE] http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js 5:573354 Uncaught TypeError: Cannot read property 'persistableState' of undefined
[00:01:02]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:01:02]               │      Wait timed out after 60087ms
[00:01:02]               │ debg navigate to: http://localhost:6111/app/kibana#/dev_tools/console
[00:01:02]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586958666258#/dev_tools/console 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:01:02]               │
[00:01:02]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:02]               │ debg ... sleep(700) start
[00:01:03]               │ debg ... sleep(700) end
[00:01:03]               │ debg returned from get, calling refresh
[00:01:04]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586958666258#/dev_tools/console 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:01:04]               │
[00:01:04]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:04]               │ debg currentUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:01:04]               │          appUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:01:04]               │ debg TestSubjects.find(kibanaChrome)
[00:01:04]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:06]               │ debg browser[INFO] http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-15T13:51:09Z
[00:01:06]               │        Adding connection to http://localhost:6111/elasticsearch
[00:01:06]               │
[00:01:06]               │      "
[00:01:06]               │ERROR browser[SEVERE] http://localhost:6111/bundles/commons.bundle.js 0:1479779 TypeError: Cannot read property 'persistableState' of undefined
[00:01:06]               │          at VisualizationsPlugin.setup (http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js:6:573355)
[00:01:06]               │          at PluginWrapper._callee2$ (http://localhost:6111/bundles/commons.bundle.js:1:659580)
[00:01:06]               │          at l (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970423)
[00:01:06]               │          at Generator._invoke (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970176)
[00:01:06]               │          at Generator.forEach.e.<computed> [as next] (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970780)
[00:01:06]               │          at asyncGeneratorStep (http://localhost:6111/bundles/commons.bundle.js:1:656579)
[00:01:06]               │          at _next (http://localhost:6111/bundles/commons.bundle.js:1:656890)
[00:01:06]               │ debg browser[INFO] http://localhost:6111/bundles/commons.bundle.js 0:1480781 "Detected an unhandled Promise rejection.
[00:01:06]               │      TypeError: Cannot read property 'persistableState' of undefined"
[00:01:06]               │ERROR browser[SEVERE] http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js 5:573354 Uncaught TypeError: Cannot read property 'persistableState' of undefined
[00:02:04]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:02:04]               │      Wait timed out after 60135ms
[00:02:05]               │ debg --- retry.tryForTime error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:02:05]               │      Wait timed out after 60135ms
[00:02:05]               │          at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:02:05]               │          at process._tickCallback (internal/process/next_tick.js:68:7)
[00:02:05]               │ debg navigate to: http://localhost:6111/app/kibana#/dev_tools/console
[00:02:05]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586958729142#/dev_tools/console 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:02:05]               │
[00:02:05]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:05]               │ debg ... sleep(700) start
[00:02:06]               │ debg ... sleep(700) end
[00:02:06]               │ debg returned from get, calling refresh
[00:02:07]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586958729142#/dev_tools/console 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:02:07]               │
[00:02:07]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:02:08]               │ debg currentUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:02:08]               │          appUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:02:08]               │ debg TestSubjects.find(kibanaChrome)
[00:02:08]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:02:09]               │ debg browser[INFO] http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-15T13:52:13Z
[00:02:09]               │        Adding connection to http://localhost:6111/elasticsearch
[00:02:09]               │
[00:02:09]               │      "
[00:02:09]               │ERROR browser[SEVERE] http://localhost:6111/bundles/commons.bundle.js 0:1479779 TypeError: Cannot read property 'persistableState' of undefined
[00:02:09]               │          at VisualizationsPlugin.setup (http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js:6:573355)
[00:02:09]               │          at PluginWrapper._callee2$ (http://localhost:6111/bundles/commons.bundle.js:1:659580)
[00:02:09]               │          at l (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970423)
[00:02:09]               │          at Generator._invoke (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970176)
[00:02:09]               │          at Generator.forEach.e.<computed> [as next] (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970780)
[00:02:09]               │          at asyncGeneratorStep (http://localhost:6111/bundles/commons.bundle.js:1:656579)
[00:02:09]               │          at _next (http://localhost:6111/bundles/commons.bundle.js:1:656890)
[00:02:09]               │ debg browser[INFO] http://localhost:6111/bundles/commons.bundle.js 0:1480781 "Detected an unhandled Promise rejection.
[00:02:09]               │      TypeError: Cannot read property 'persistableState' of undefined"
[00:02:09]               │ERROR browser[SEVERE] http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js 5:573354 Uncaught TypeError: Cannot read property 'persistableState' of undefined
[00:03:08]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:03:08]               │      Wait timed out after 60120ms
[00:03:08]               │ debg navigate to: http://localhost:6111/app/kibana#/dev_tools/console
[00:03:08]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586958792241#/dev_tools/console 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:03:08]               │
[00:03:08]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:08]               │ debg ... sleep(700) start
[00:03:09]               │ debg ... sleep(700) end
[00:03:09]               │ debg returned from get, calling refresh
[00:03:10]               │ debg browser[INFO] http://localhost:6111/app/kibana?_t=1586958792241#/dev_tools/console 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:03:10]               │
[00:03:10]               │ debg browser[INFO] http://localhost:6111/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:10]               │ debg currentUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:03:10]               │          appUrl = http://localhost:6111/app/kibana#/dev_tools/console
[00:03:10]               │ debg TestSubjects.find(kibanaChrome)
[00:03:10]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:12]               │ debg browser[INFO] http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-15T13:53:16Z
[00:03:12]               │        Adding connection to http://localhost:6111/elasticsearch
[00:03:12]               │
[00:03:12]               │      "
[00:03:12]               │ERROR browser[SEVERE] http://localhost:6111/bundles/commons.bundle.js 0:1479779 TypeError: Cannot read property 'persistableState' of undefined
[00:03:12]               │          at VisualizationsPlugin.setup (http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js:6:573355)
[00:03:12]               │          at PluginWrapper._callee2$ (http://localhost:6111/bundles/commons.bundle.js:1:659580)
[00:03:12]               │          at l (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970423)
[00:03:12]               │          at Generator._invoke (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970176)
[00:03:12]               │          at Generator.forEach.e.<computed> [as next] (http://localhost:6111/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:288:970780)
[00:03:12]               │          at asyncGeneratorStep (http://localhost:6111/bundles/commons.bundle.js:1:656579)
[00:03:12]               │          at _next (http://localhost:6111/bundles/commons.bundle.js:1:656890)
[00:03:12]               │ debg browser[INFO] http://localhost:6111/bundles/commons.bundle.js 0:1480781 "Detected an unhandled Promise rejection.
[00:03:12]               │      TypeError: Cannot read property 'persistableState' of undefined"
[00:03:12]               │ERROR browser[SEVERE] http://localhost:6111/bundles/plugin/visualizations/visualizations.plugin.js 5:573354 Uncaught TypeError: Cannot read property 'persistableState' of undefined
[00:04:10]               │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:10]               │      Wait timed out after 60119ms
[00:04:11]               │ debg --- retry.tryForTime error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="kibanaChrome"])
[00:04:11]               │      Wait timed out after 60119ms
[00:04:11]               │          at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
[00:04:11]               │          at process._tickCallback (internal/process/next_tick.js:68:7)
[00:04:11]               │ info Taking screenshot "/dev/shm/workspace/kibana/test/functional/screenshots/failure/console app console app _before all_ hook.png"
[00:04:11]               │ info Current URL is: http://localhost:6111/app/kibana#/dev_tools/console
[00:04:11]               │ info Saving page source to: /dev/shm/workspace/kibana/test/functional/failure_debug/html/console app console app _before all_ hook.html
[00:04:11]               └- ✖ fail: "console app console app "before all" hook for "should show the default request""
[00:04:11]               │

Stack Trace

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

and 25 more failures, only showing the first 3.

History

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

@ppisljar ppisljar added v7.8.0 v8.0.0 release_note:skip Skip the PR/issue when compiling release notes labels Apr 21, 2020
@LeeDr
Copy link
Contributor

LeeDr commented Jul 9, 2020

This seems like a new feature or enhancement so it shouldn't go in v7.8.1 patch release. I removed that label. You probably want to add v7.9.0

@ppisljar ppisljar added the WIP Work in progress label Jul 13, 2020
@ppisljar ppisljar changed the title persisted state service [PoC] persisted state service Jul 30, 2020
@ppisljar ppisljar closed this Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:StateManagement release_note:skip Skip the PR/issue when compiling release notes v8.0.0 WIP Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants