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

[Painless] Language Service #60612

Merged
merged 3 commits into from Mar 20, 2020

Conversation

jloleysens
Copy link
Contributor

@jloleysens jloleysens commented Mar 19, 2020

Summary

Another minor refactor and a fix for the worker loaded in main thread warning when autocomplete is used for the first time.

Screenshot 2020-03-19 at 12 32 51

Also added word operations (on macOS alt+leftArrow moves cursor to start of word) and addressed TODO.

word-wise-char

@jloleysens jloleysens added Feature:Dev Tools painless painless v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more release_note:skip Skip the PR/issue when compiling release notes labels Mar 19, 2020
@jloleysens jloleysens requested a review from a team as a code owner March 19, 2020 11:33
@jloleysens jloleysens self-assigned this Mar 19, 2020
@elasticmachine
Copy link
Contributor

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

@jloleysens jloleysens changed the base branch from master to app/painless March 19, 2020 11:33
@jloleysens jloleysens added this to In progress in Elasticsearch UI Mar 19, 2020
@jloleysens jloleysens removed the request for review from a team March 19, 2020 12:12
@jloleysens jloleysens requested a review from a team as a code owner March 19, 2020 12:12
@cjcenizal cjcenizal requested review from alisonelizabeth and removed request for cjcenizal March 19, 2020 15:23
Copy link
Member

@jbudz jbudz left a comment

Choose a reason for hiding this comment

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

ops changes LGTM

Copy link
Contributor

@alisonelizabeth alisonelizabeth left a comment

Choose a reason for hiding this comment

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

LGTM. Tested locally. Nice addition of the word operations!

@kibanamachine
Copy link
Contributor

💔 Build Failed


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/discover/feature_controls/discover_spaces·ts.discover feature controls spaces space with no features disabled shows "visualize" field button

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: discover
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: feature controls
[00:00:00]             └-> "before all" hook
[00:00:00]             └-: spaces
[00:00:00]               └-> "before all" hook
[00:00:00]               └-> "before all" hook
[00:00:00]                 │ info [logstash_functional] Loading "mappings.json"
[00:00:00]                 │ info [logstash_functional] Loading "data.json.gz"
[00:00:00]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]]).
[00:00:00]                 │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:00:00]                 │ 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:00]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]]).
[00:00:00]                 │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:00:00]                 │ 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:00]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]]).
[00:00:00]                 │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:00:00]                 │ 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:10]                 │ info progress: 9626
[00:00:13]                 │ info [logstash_functional] Indexed 4634 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:14]               └-: space with no features disabled
[00:00:14]                 └-> "before all" hook
[00:00:14]                 └-> "before all" hook
[00:00:14]                   │ info [discover/feature_controls/spaces] Loading "mappings.json"
[00:00:14]                   │ info [discover/feature_controls/spaces] Loading "data.json"
[00:00:14]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana_1/aSw0O6N3TfqT_9QneZW0XQ] deleting index
[00:00:14]                   │ info [discover/feature_controls/spaces] Deleted existing index [".kibana_1"]
[00:00:14]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:14]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:00:14]                   │ info [discover/feature_controls/spaces] Created index ".kibana"
[00:00:14]                   │ debg [discover/feature_controls/spaces] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:00:14]                   │ info [discover/feature_controls/spaces] Indexed 4 docs into ".kibana"
[00:00:14]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana/8dFHhnZRSySQGrW0AikMPA] update_mapping [_doc]
[00:00:15]                   │ debg Migrating saved objects
[00:00:15]                   │ proc [kibana]   log   [18:17:01.503] [info][savedobjects-service] Creating index .kibana_2.
[00:00:15]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:15]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:16]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:00:16]                   │ proc [kibana]   log   [18:17:01.661] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:16]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:16]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:16]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:00:16]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1], mappings [_doc]
[00:00:16]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] updating number_of_replicas to [0] for indices [.tasks]
[00:00:16]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.tasks][0]]]).
[00:00:16]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] 1592 finished with response BulkByScrollResponse[took=94ms,timed_out=false,sliceId=null,updated=0,created=5,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:16]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana/8dFHhnZRSySQGrW0AikMPA] deleting index
[00:00:16]                   │ proc [kibana]   log   [18:17:02.459] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:16]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana_2/J5WVUEgjSN6EPPaMmw2M3Q] update_mapping [_doc]
[00:00:17]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana_2/J5WVUEgjSN6EPPaMmw2M3Q] update_mapping [_doc]
[00:00:17]                   │ proc [kibana]   log   [18:17:02.691] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:17]                   │ proc [kibana]   log   [18:17:02.803] [info][savedobjects-service] Finished in 1305ms.
[00:00:17]                   │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:17]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana_2/J5WVUEgjSN6EPPaMmw2M3Q] update_mapping [_doc]
[00:00:18]                   │ debg creating space
[00:00:18]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana_2/J5WVUEgjSN6EPPaMmw2M3Q] update_mapping [_doc]
[00:00:19]                   │ debg created space
[00:00:19]                 └-> shows discover navlink
[00:00:19]                   └-> "before each" hook: global before each
[00:00:19]                   │ debg navigating to home url: http://localhost:6181/s/custom_space/app/kibana#/home
[00:00:19]                   │ debg Navigate to: http://localhost:6181/s/custom_space/app/kibana#/home
[00:00:19]                   │ debg ... sleep(700) start
[00:00:19]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/login?next=%2Fs%2Fcustom_space%2Fapp%2Fkibana%3F_t%3D1584641824715#/home 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:19]                   │
[00:00:19]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:20]                   │ debg ... sleep(700) end
[00:00:20]                   │ debg returned from get, calling refresh
[00:00:20]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/login?next=%2Fs%2Fcustom_space%2Fapp%2Fkibana%3F_t%3D1584641824715#/home 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:20]                   │
[00:00:20]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:20]                   │ debg currentUrl = http://localhost:6181/s/custom_space/login?next=%2Fs%2Fcustom_space%2Fapp%2Fkibana%3F_t%3D1584641824715#/home
[00:00:20]                   │          appUrl = http://localhost:6181/s/custom_space/app/kibana#/home
[00:00:20]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:28]                   │ proc [kibana]   log   [18:17:13.843] [warning][plugins][spaces] Error toggling capabilities for request to /api/core/capabilities: [security_exception] missing authentication credentials for REST request [/_security/user/_has_privileges], with { header={ WWW-Authenticate={ 0="ApiKey" & 1="Basic realm=\"security\" charset=\"UTF-8\"" } } } :: {"path":"/_security/user/_has_privileges","query":{},"body":"{\"applications\":[{\"application\":\"kibana-.kibana\",\"resources\":[\"space:custom_space\"],\"privileges\":[\"version:8.0.0-SNAPSHOT\",\"login:\"]}]}","statusCode":401,"response":"{\"error\":{\"root_cause\":[{\"type\":\"security_exception\",\"reason\":\"missing authentication credentials for REST request [/_security/user/_has_privileges]\",\"header\":{\"WWW-Authenticate\":[\"ApiKey\",\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"]}}],\"type\":\"security_exception\",\"reason\":\"missing authentication credentials for REST request [/_security/user/_has_privileges]\",\"header\":{\"WWW-Authenticate\":[\"ApiKey\",\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"]}},\"status\":401}","wwwAuthenticateDirective":"ApiKey, Basic realm=\"security\" charset=\"UTF-8\""}
[00:00:28]                   │ debg Found login page
[00:00:28]                   │ debg TestSubjects.setValue(loginUsername, test_user)
[00:00:28]                   │ debg TestSubjects.click(loginUsername)
[00:00:28]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:28]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:28]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-19T18:17:13Z
[00:00:28]                   │        Adding connection to http://localhost:6181/s/custom_space/elasticsearch
[00:00:28]                   │
[00:00:28]                   │      "
[00:00:28]                   │ debg TestSubjects.setValue(loginPassword, changeme)
[00:00:28]                   │ debg TestSubjects.click(loginPassword)
[00:00:28]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:28]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:29]                   │ debg TestSubjects.click(loginSubmit)
[00:00:29]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:29]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:29]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:00:37]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/app/kibana?_t=1584641824715#/home 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:37]                   │
[00:00:37]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/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:37]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-19T18:17:20Z
[00:00:37]                   │        Adding connection to http://localhost:6181/s/custom_space/elasticsearch
[00:00:37]                   │
[00:00:37]                   │      "
[00:00:37]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/app/kibana?_t=1584641842886#/home 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:37]                   │
[00:00:37]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/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:37]                   │ debg Finished login process currentUrl = http://localhost:6181/s/custom_space/app/kibana#/home
[00:00:37]                   │ debg TestSubjects.find(kibanaChrome)
[00:00:37]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:00:42]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-19T18:17:26Z
[00:00:42]                   │        Adding connection to http://localhost:6181/s/custom_space/elasticsearch
[00:00:42]                   │
[00:00:42]                   │      "
[00:00:42]                   │ debg ... sleep(501) start
[00:00:43]                   │ debg ... sleep(501) end
[00:00:43]                   │ debg in navigateTo url = http://localhost:6181/s/custom_space/app/kibana#/home
[00:00:43]                   │ debg TestSubjects.exists(statusPageContainer)
[00:00:43]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:45]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:46]                   │ debg TestSubjects.find(navDrawer)
[00:00:46]                   │ debg Find.findByCssSelector('[data-test-subj="navDrawer"]') with timeout=10000
[00:00:46]                   └- ✓ pass  (27.2s) "discover feature controls spaces space with no features disabled shows discover navlink"
[00:00:46]                 └-> shows save button
[00:00:46]                   └-> "before each" hook: global before each
[00:00:46]                   │ debg navigating to discover url: http://localhost:6181/s/custom_space/app/kibana#/discover
[00:00:46]                   │ debg Navigate to: http://localhost:6181/s/custom_space/app/kibana#/discover
[00:00:46]                   │ debg ... sleep(700) start
[00:00:46]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/app/kibana?_t=1584641851873#/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:46]                   │
[00:00:46]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/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:47]                   │ debg ... sleep(700) end
[00:00:47]                   │ debg returned from get, calling refresh
[00:00:47]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/app/kibana?_t=1584641851873#/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:47]                   │
[00:00:47]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/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:47]                   │ debg currentUrl = http://localhost:6181/s/custom_space/app/kibana#/discover
[00:00:47]                   │          appUrl = http://localhost:6181/s/custom_space/app/kibana#/discover
[00:00:47]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:53]                   │ debg TestSubjects.find(kibanaChrome)
[00:00:53]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:00:53]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-19T18:17:37Z
[00:00:53]                   │        Adding connection to http://localhost:6181/s/custom_space/elasticsearch
[00:00:53]                   │
[00:00:53]                   │      "
[00:00:53]                   │ debg ... sleep(501) start
[00:00:53]                   │ debg ... sleep(501) end
[00:00:54]                   │ debg in navigateTo url = http://localhost:6181/s/custom_space/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:00:54]                   │ debg --- retry.try error: URL changed, waiting for it to settle
[00:00:54]                   │ debg ... sleep(501) start
[00:00:55]                   │ debg ... sleep(501) end
[00:00:55]                   │ debg in navigateTo url = http://localhost:6181/s/custom_space/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:00:55]                   │ debg TestSubjects.exists(statusPageContainer)
[00:00:55]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:57]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:58]                   │ debg TestSubjects.exists(discoverSaveButton)
[00:00:58]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=20000
[00:00:58]                   └- ✓ pass  (12.0s) "discover feature controls spaces space with no features disabled shows save button"
[00:00:58]                 └-> shows "visualize" field button
[00:00:58]                   └-> "before each" hook: global before each
[00:00:58]                   │ debg navigating to discover url: http://localhost:6181/s/custom_space/app/kibana#/discover
[00:00:58]                   │ debg Navigate to: http://localhost:6181/s/custom_space/app/kibana#/discover
[00:00:58]                   │ debg ... sleep(700) start
[00:00:58]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/app/kibana?_t=1584641863899#/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:58]                   │
[00:00:58]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/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:59]                   │ debg ... sleep(700) end
[00:00:59]                   │ debg returned from get, calling refresh
[00:00:59]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/app/kibana?_t=1584641863899#/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:59]                   │
[00:00:59]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/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:59]                   │ debg currentUrl = http://localhost:6181/s/custom_space/app/kibana#/discover
[00:00:59]                   │          appUrl = http://localhost:6181/s/custom_space/app/kibana#/discover
[00:00:59]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:04]                   │ debg TestSubjects.find(kibanaChrome)
[00:01:04]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:01:04]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-19T18:17:49Z
[00:01:04]                   │        Adding connection to http://localhost:6181/s/custom_space/elasticsearch
[00:01:04]                   │
[00:01:04]                   │      "
[00:01:04]                   │ debg ... sleep(501) start
[00:01:05]                   │ debg ... sleep(501) end
[00:01:05]                   │ debg in navigateTo url = http://localhost:6181/s/custom_space/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:01:05]                   │ debg --- retry.try error: URL changed, waiting for it to settle
[00:01:06]                   │ debg ... sleep(501) start
[00:01:06]                   │ debg ... sleep(501) end
[00:01:06]                   │ debg in navigateTo url = http://localhost:6181/s/custom_space/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:01:06]                   │ debg TestSubjects.exists(statusPageContainer)
[00:01:06]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:01:09]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:01:09]                   │ debg Setting absolute range to Sep 19, 2015 @ 06:31:44.000 to Sep 23, 2015 @ 18:31:44.000
[00:01:09]                   │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:01:09]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:01:09]                   │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:01:09]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:01:09]                   │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:01:09]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:01:09]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:01:09]                   │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:01:09]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:01:10]                   │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:01:10]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:01:10]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:01:10]                   │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:01:10]                   │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:01:10]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:01:10]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:01:10]                   │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:01:10]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:10]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:10]                   │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 23, 2015 @ 18:31:44.000)
[00:01:10]                   │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:01:10]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:10]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:11]                   │ debg ... sleep(500) start
[00:01:12]                   │ debg ... sleep(500) end
[00:01:12]                   │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:01:12]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:01:12]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:01:12]                   │ debg Find.waitForElementStale with timeout=10000
[00:01:12]                   │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:01:12]                   │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:01:12]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:01:12]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:01:13]                   │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:01:13]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:13]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:13]                   │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 19, 2015 @ 06:31:44.000)
[00:01:13]                   │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:01:13]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:13]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:14]                   │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:01:14]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:01:16]                   │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:01:17]                   │ debg TestSubjects.click(querySubmitButton)
[00:01:17]                   │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:01:17]                   │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:01:18]                   │ debg Find.waitForElementStale with timeout=10000
[00:01:18]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:18]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:19]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.async-search] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:19]                   │ debg TestSubjects.click(field-bytes)
[00:01:19]                   │ debg Find.clickByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:01:19]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:01:29]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:01:29]                   │      Wait timed out after 10049ms
[00:01:30]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:01:40]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:01:40]                   │      Wait timed out after 10045ms
[00:01:40]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:01:50]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:01:50]                   │      Wait timed out after 10011ms
[00:01:51]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:02:01]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:02:01]                   │      Wait timed out after 10037ms
[00:02:01]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:02:11]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:02:11]                   │      Wait timed out after 10021ms
[00:02:12]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:02:22]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:02:22]                   │      Wait timed out after 10072ms
[00:02:22]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:02:32]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:02:32]                   │      Wait timed out after 10013ms
[00:02:33]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:02:43]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:02:43]                   │      Wait timed out after 10044ms
[00:02:43]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:02:53]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:02:53]                   │      Wait timed out after 10005ms
[00:02:54]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:03:04]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:03:04]                   │      Wait timed out after 10045ms
[00:03:04]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:03:14]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:03:14]                   │      Wait timed out after 10054ms
[00:03:15]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:03:25]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:03:25]                   │      Wait timed out after 10037ms
[00:03:25]                   │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/discover feature controls spaces space with no features disabled shows _visualize_ field button.png"
[00:03:26]                   │ info Current URL is: http://localhost:6181/s/custom_space/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272015-09-19T06:31:44.000Z%27,to:%272015-09-23T18:31:44.000Z%27))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:03:26]                   │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/discover feature controls spaces space with no features disabled shows _visualize_ field button.html
[00:03:26]                   └- ✖ fail: "discover feature controls spaces space with no features disabled shows "visualize" field button"
[00:03:26]                   │

Stack Trace

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

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/discover/feature_controls/discover_spaces·ts.discover feature controls spaces space with no features disabled shows "visualize" field button

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: discover
[00:00:00]           └-> "before all" hook
[00:00:00]           └-: feature controls
[00:00:00]             └-> "before all" hook
[00:00:00]             └-: spaces
[00:00:00]               └-> "before all" hook
[00:00:00]               └-> "before all" hook
[00:00:00]                 │ info [logstash_functional] Loading "mappings.json"
[00:00:00]                 │ info [logstash_functional] Loading "data.json.gz"
[00:00:00]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]]).
[00:00:00]                 │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:00:00]                 │ 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:00]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]]).
[00:00:00]                 │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:00:00]                 │ 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:00]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:00]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]]).
[00:00:00]                 │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:00:00]                 │ 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:10]                 │ info progress: 6921
[00:00:16]                 │ info [logstash_functional] Indexed 4634 docs into "logstash-2015.09.22"
[00:00:16]                 │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:16]                 │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:17]               └-: space with no features disabled
[00:00:17]                 └-> "before all" hook
[00:00:17]                 └-> "before all" hook
[00:00:17]                   │ info [discover/feature_controls/spaces] Loading "mappings.json"
[00:00:17]                   │ info [discover/feature_controls/spaces] Loading "data.json"
[00:00:17]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana_1/DigdalANTu-f1vAzS7UHlw] deleting index
[00:00:17]                   │ info [discover/feature_controls/spaces] Deleted existing index [".kibana_1"]
[00:00:17]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:00:17]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:00:17]                   │ info [discover/feature_controls/spaces] Created index ".kibana"
[00:00:17]                   │ debg [discover/feature_controls/spaces] ".kibana" settings {"index":{"number_of_shards":"1","auto_expand_replicas":"0-1","number_of_replicas":"0"}}
[00:00:18]                   │ info [discover/feature_controls/spaces] Indexed 4 docs into ".kibana"
[00:00:18]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana/OD_XK4DVQGKUzsfH5C2Agw] update_mapping [_doc]
[00:00:18]                   │ debg Migrating saved objects
[00:00:19]                   │ proc [kibana]   log   [18:10:54.837] [info][savedobjects-service] Creating index .kibana_2.
[00:00:19]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:19]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:19]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_2][0]]]).
[00:00:19]                   │ proc [kibana]   log   [18:10:55.030] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:19]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:00:19]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:19]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_1][0]]]).
[00:00:19]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1], mappings [_doc]
[00:00:19]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] updating number_of_replicas to [0] for indices [.tasks]
[00:00:19]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.tasks][0]]]).
[00:00:19]                   │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] 1673 finished with response BulkByScrollResponse[took=145.4ms,timed_out=false,sliceId=null,updated=0,created=5,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:00:20]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana/OD_XK4DVQGKUzsfH5C2Agw] deleting index
[00:00:20]                   │ proc [kibana]   log   [18:10:55.947] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:20]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana_2/AajGExO2RhmRCdjfgdu8GQ] update_mapping [_doc]
[00:00:20]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana_2/AajGExO2RhmRCdjfgdu8GQ] update_mapping [_doc]
[00:00:20]                   │ proc [kibana]   log   [18:10:56.252] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:20]                   │ proc [kibana]   log   [18:10:56.387] [info][savedobjects-service] Finished in 1554ms.
[00:00:20]                   │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:20]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana_2/AajGExO2RhmRCdjfgdu8GQ] update_mapping [_doc]
[00:00:21]                   │ debg creating space
[00:00:21]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.kibana_2/AajGExO2RhmRCdjfgdu8GQ] update_mapping [_doc]
[00:00:22]                   │ debg created space
[00:00:22]                 └-> shows discover navlink
[00:00:22]                   └-> "before each" hook: global before each
[00:00:22]                   │ debg navigating to home url: http://localhost:6181/s/custom_space/app/kibana#/home
[00:00:22]                   │ debg Navigate to: http://localhost:6181/s/custom_space/app/kibana#/home
[00:00:22]                   │ debg ... sleep(700) start
[00:00:22]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/login?next=%2Fs%2Fcustom_space%2Fapp%2Fkibana%3F_t%3D1584641458000#/home 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:22]                   │
[00:00:22]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:23]                   │ debg ... sleep(700) end
[00:00:23]                   │ debg returned from get, calling refresh
[00:00:23]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/login?next=%2Fs%2Fcustom_space%2Fapp%2Fkibana%3F_t%3D1584641458000#/home 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:23]                   │
[00:00:23]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:23]                   │ debg currentUrl = http://localhost:6181/s/custom_space/login?next=%2Fs%2Fcustom_space%2Fapp%2Fkibana%3F_t%3D1584641458000#/home
[00:00:23]                   │          appUrl = http://localhost:6181/s/custom_space/app/kibana#/home
[00:00:23]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:31]                   │ proc [kibana]   log   [18:11:07.355] [warning][plugins][spaces] Error toggling capabilities for request to /api/core/capabilities: [security_exception] missing authentication credentials for REST request [/_security/user/_has_privileges], with { header={ WWW-Authenticate={ 0="ApiKey" & 1="Basic realm=\"security\" charset=\"UTF-8\"" } } } :: {"path":"/_security/user/_has_privileges","query":{},"body":"{\"applications\":[{\"application\":\"kibana-.kibana\",\"resources\":[\"space:custom_space\"],\"privileges\":[\"version:8.0.0-SNAPSHOT\",\"login:\"]}]}","statusCode":401,"response":"{\"error\":{\"root_cause\":[{\"type\":\"security_exception\",\"reason\":\"missing authentication credentials for REST request [/_security/user/_has_privileges]\",\"header\":{\"WWW-Authenticate\":[\"ApiKey\",\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"]}}],\"type\":\"security_exception\",\"reason\":\"missing authentication credentials for REST request [/_security/user/_has_privileges]\",\"header\":{\"WWW-Authenticate\":[\"ApiKey\",\"Basic realm=\\\"security\\\" charset=\\\"UTF-8\\\"\"]}},\"status\":401}","wwwAuthenticateDirective":"ApiKey, Basic realm=\"security\" charset=\"UTF-8\""}
[00:00:31]                   │ debg Found login page
[00:00:31]                   │ debg TestSubjects.setValue(loginUsername, test_user)
[00:00:31]                   │ debg TestSubjects.click(loginUsername)
[00:00:31]                   │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:31]                   │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:31]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-19T18:11:07Z
[00:00:31]                   │        Adding connection to http://localhost:6181/s/custom_space/elasticsearch
[00:00:31]                   │
[00:00:31]                   │      "
[00:00:32]                   │ debg TestSubjects.setValue(loginPassword, changeme)
[00:00:32]                   │ debg TestSubjects.click(loginPassword)
[00:00:32]                   │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:32]                   │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:32]                   │ debg TestSubjects.click(loginSubmit)
[00:00:32]                   │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:32]                   │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:32]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide)') with timeout=60000
[00:00:41]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/app/kibana?_t=1584641458000#/home 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:41]                   │
[00:00:41]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/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:41]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-19T18:11:14Z
[00:00:41]                   │        Adding connection to http://localhost:6181/s/custom_space/elasticsearch
[00:00:41]                   │
[00:00:41]                   │      "
[00:00:41]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/app/kibana?_t=1584641476800#/home 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:41]                   │
[00:00:41]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/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:41]                   │ debg Finished login process currentUrl = http://localhost:6181/s/custom_space/app/kibana#/home
[00:00:41]                   │ debg TestSubjects.find(kibanaChrome)
[00:00:41]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:00:47]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-19T18:11:21Z
[00:00:47]                   │        Adding connection to http://localhost:6181/s/custom_space/elasticsearch
[00:00:47]                   │
[00:00:47]                   │      "
[00:00:47]                   │ debg ... sleep(501) start
[00:00:48]                   │ debg ... sleep(501) end
[00:00:48]                   │ debg in navigateTo url = http://localhost:6181/s/custom_space/app/kibana#/home
[00:00:48]                   │ debg TestSubjects.exists(statusPageContainer)
[00:00:48]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:50]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:51]                   │ debg TestSubjects.find(navDrawer)
[00:00:51]                   │ debg Find.findByCssSelector('[data-test-subj="navDrawer"]') with timeout=10000
[00:00:51]                   └- ✓ pass  (29.2s) "discover feature controls spaces space with no features disabled shows discover navlink"
[00:00:51]                 └-> shows save button
[00:00:51]                   └-> "before each" hook: global before each
[00:00:51]                   │ debg navigating to discover url: http://localhost:6181/s/custom_space/app/kibana#/discover
[00:00:51]                   │ debg Navigate to: http://localhost:6181/s/custom_space/app/kibana#/discover
[00:00:51]                   │ debg ... sleep(700) start
[00:00:51]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/app/kibana?_t=1584641487188#/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:51]                   │
[00:00:51]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/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:52]                   │ debg ... sleep(700) end
[00:00:52]                   │ debg returned from get, calling refresh
[00:00:53]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/app/kibana?_t=1584641487188#/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:53]                   │
[00:00:53]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/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:53]                   │ debg currentUrl = http://localhost:6181/s/custom_space/app/kibana#/discover
[00:00:53]                   │          appUrl = http://localhost:6181/s/custom_space/app/kibana#/discover
[00:00:53]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:59]                   │ debg TestSubjects.find(kibanaChrome)
[00:00:59]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:00:59]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-19T18:11:33Z
[00:00:59]                   │        Adding connection to http://localhost:6181/s/custom_space/elasticsearch
[00:00:59]                   │
[00:00:59]                   │      "
[00:01:00]                   │ debg ... sleep(501) start
[00:01:00]                   │ debg ... sleep(501) end
[00:01:01]                   │ debg in navigateTo url = http://localhost:6181/s/custom_space/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:01:01]                   │ debg --- retry.try error: URL changed, waiting for it to settle
[00:01:01]                   │ debg ... sleep(501) start
[00:01:02]                   │ debg ... sleep(501) end
[00:01:02]                   │ debg in navigateTo url = http://localhost:6181/s/custom_space/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:01:02]                   │ debg TestSubjects.exists(statusPageContainer)
[00:01:02]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:01:04]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:01:05]                   │ debg TestSubjects.exists(discoverSaveButton)
[00:01:05]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="discoverSaveButton"]') with timeout=20000
[00:01:05]                   └- ✓ pass  (14.0s) "discover feature controls spaces space with no features disabled shows save button"
[00:01:05]                 └-> shows "visualize" field button
[00:01:05]                   └-> "before each" hook: global before each
[00:01:05]                   │ debg navigating to discover url: http://localhost:6181/s/custom_space/app/kibana#/discover
[00:01:05]                   │ debg Navigate to: http://localhost:6181/s/custom_space/app/kibana#/discover
[00:01:05]                   │ debg ... sleep(700) start
[00:01:05]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/app/kibana?_t=1584641501231#/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:05]                   │
[00:01:05]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/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:06]                   │ debg ... sleep(700) end
[00:01:06]                   │ debg returned from get, calling refresh
[00:01:06]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/app/kibana?_t=1584641501231#/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:06]                   │
[00:01:06]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/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:07]                   │ debg currentUrl = http://localhost:6181/s/custom_space/app/kibana#/discover
[00:01:07]                   │          appUrl = http://localhost:6181/s/custom_space/app/kibana#/discover
[00:01:07]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:12]                   │ debg TestSubjects.find(kibanaChrome)
[00:01:12]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=10000
[00:01:12]                   │ debg browser[INFO] http://localhost:6181/s/custom_space/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-19T18:11:47Z
[00:01:12]                   │        Adding connection to http://localhost:6181/s/custom_space/elasticsearch
[00:01:12]                   │
[00:01:12]                   │      "
[00:01:12]                   │ debg ... sleep(501) start
[00:01:13]                   │ debg ... sleep(501) end
[00:01:13]                   │ debg in navigateTo url = http://localhost:6181/s/custom_space/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:01:13]                   │ debg --- retry.try error: URL changed, waiting for it to settle
[00:01:14]                   │ debg ... sleep(501) start
[00:01:14]                   │ debg ... sleep(501) end
[00:01:14]                   │ debg in navigateTo url = http://localhost:6181/s/custom_space/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:01:14]                   │ debg TestSubjects.exists(statusPageContainer)
[00:01:14]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:01:17]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:01:17]                   │ debg Setting absolute range to Sep 19, 2015 @ 06:31:44.000 to Sep 23, 2015 @ 18:31:44.000
[00:01:17]                   │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:01:17]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:01:17]                   │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:01:17]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:01:17]                   │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:01:17]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:01:17]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:01:18]                   │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:01:18]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:01:18]                   │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:01:18]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:01:18]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:01:18]                   │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:01:18]                   │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:01:18]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:01:18]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:01:18]                   │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:01:18]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:18]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:18]                   │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 23, 2015 @ 18:31:44.000)
[00:01:18]                   │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:01:18]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:18]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:19]                   │ debg ... sleep(500) start
[00:01:20]                   │ debg ... sleep(500) end
[00:01:20]                   │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:01:20]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:01:20]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:01:20]                   │ debg Find.waitForElementStale with timeout=10000
[00:01:20]                   │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:01:20]                   │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:01:20]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:01:20]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:01:20]                   │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:01:20]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:20]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:21]                   │ debg TestSubjects.setValue(superDatePickerAbsoluteDateInput, Sep 19, 2015 @ 06:31:44.000)
[00:01:21]                   │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:01:21]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:21]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:01:22]                   │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:01:22]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:01:24]                   │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:01:25]                   │ debg TestSubjects.click(querySubmitButton)
[00:01:25]                   │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:01:25]                   │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:01:25]                   │ debg Find.waitForElementStale with timeout=10000
[00:01:25]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:01:25]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:01:26]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584639160521532924] [.async-search] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:01:27]                   │ debg TestSubjects.click(field-bytes)
[00:01:27]                   │ debg Find.clickByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:01:27]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:01:37]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:01:37]                   │      Wait timed out after 10022ms
[00:01:37]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:01:47]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:01:47]                   │      Wait timed out after 10017ms
[00:01:48]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:01:58]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:01:58]                   │      Wait timed out after 10023ms
[00:01:58]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:02:08]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:02:08]                   │      Wait timed out after 10035ms
[00:02:09]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:02:19]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:02:19]                   │      Wait timed out after 10081ms
[00:02:19]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:02:29]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:02:29]                   │      Wait timed out after 10059ms
[00:02:30]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:02:40]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:02:40]                   │      Wait timed out after 10009ms
[00:02:41]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:02:51]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:02:51]                   │      Wait timed out after 10031ms
[00:02:51]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:03:01]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:03:01]                   │      Wait timed out after 10011ms
[00:03:02]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:03:12]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:03:12]                   │      Wait timed out after 10036ms
[00:03:12]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:03:22]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:03:22]                   │      Wait timed out after 10054ms
[00:03:23]                   │ debg Find.findByCssSelector('[data-test-subj="field-bytes"]') with timeout=10000
[00:03:33]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="field-bytes"])
[00:03:33]                   │      Wait timed out after 10043ms
[00:03:33]                   │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/discover feature controls spaces space with no features disabled shows _visualize_ field button.png"
[00:03:33]                   │ info Current URL is: http://localhost:6181/s/custom_space/app/kibana#/discover?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272015-09-19T06:31:44.000Z%27,to:%272015-09-23T18:31:44.000Z%27))&_a=(columns:!(_source),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:03:33]                   │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/discover feature controls spaces space with no features disabled shows _visualize_ field button.html
[00:03:34]                   └- ✖ fail: "discover feature controls spaces space with no features disabled shows "visualize" field button"
[00:03:34]                   │

Stack Trace

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

History

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

@jloleysens jloleysens merged commit ec81bf6 into elastic:app/painless Mar 20, 2020
Elasticsearch UI automation moved this from In progress to Done Mar 20, 2020
@jloleysens jloleysens deleted the app-painless/lang-service branch March 20, 2020 09:17
jloleysens added a commit to jloleysens/kibana that referenced this pull request Mar 20, 2020
…nless/doc-links

* 'app/painless' of github.com:elastic/kibana:
  [Painless] Language Service (elastic#60612)
  i18n

# Conflicts:
#	x-pack/plugins/painless_lab/public/plugin.tsx
cjcenizal added a commit that referenced this pull request Mar 23, 2020
* Create Painless Playground app (#54578)

* Replace heart script with smiley face script. (#57755)

* Rename Painless Playground -> Painless Lab. (#57545)

* Fix i18n namespace.

* Improve smiley face proportions.
- Add def keyword to Painless spec.
- Temporarily fix broken highlighting.
- Add small padding to main controls.

* [Painless Lab] Minor Fixes (#58135)

* Code restructure, improve types, add plugin id, introduced hook

Moved the code execution hook to a custom hook outside of main,
also chaining off promise to avoid lower level handling of
sequencing.

* Re-instated formatting code

To improve DX the execution error response from the painless API
was massaged to a more reader friendly state, only giving non-repeating
information.

Currently it is hard to determine the line and character information from
the painless endpoint. If the user wishes to see this raw information it
will be available in the API response flyout.

* Remove leading new line in default script

* Remove registration of feature flag

* Fix types

* Restore previous auto-submit request behaviour

* Remove use of null and remove old comment

Stick with "undefined" as the designation for something not existing.

* [Painless Lab] NP migration (#59794)

* Fix sample document editor.

* [Painless Lab] Fix float -> integer coercion bug (#60201)

* Clarify data and persistence flow. Fix floating point precision bug.
* Send a string to API and ES client instead of an object.

* Rename helpers lib to format. Add tests for formatRequestPayload.

* Add query parameter to score context (#60414)

* Fix typo and i18n

* Make state init lazy

Otherwise we are needlessly reading and JSON.parse'ing on every
state update

* Support the query parameter in requests to Painless

* Fix borked i18n

* Fix i18n

* Another i18n issue

* [Painless] Minor state update model refactor (#60532)

* Fix typo and i18n

* Make state init lazy

Otherwise we are needlessly reading and JSON.parse'ing on every
state update

* Support the query parameter in requests to Painless

* WiP on state refactor

* Some cleanup after manual testing

* Fix types and i18n

* Fix i18n in context_tab

* i18n

* [Painless] Language Service (#60612)

* Added language service

* Use the correct monaco instance and add wordwise operations

* Remove plugin context initializer for now

* [Painless] Replace hard-coded links (#60603)

* Replace hard-coded links

Also remove all props from Main component

* Pass the new links object to the request flyout too

* Link directly to painless execute API's contexts

* Remove responsive stacking from tabs with icons in them.

* Resize Painless Lab bottom bar to accommodate nav drawer width (#60833)

* Validate Painless Lab index field (#60841)

* Make JSON format of parameters field more prominent. Set default parameters to provide an example to users.
* Set default document to provide an example to users.
* Simplify context's updateState interface.
* Refactor store and context file organization.
  - Remove common directory, move constants and types files to root.
  - Move initialState into context file, where it's being used.
* Add validation for index input.
* Create context directory.

* Fix bottom bar z-index.

* Position flyout help link so it's bottom-aligned with the title and farther from the close button.

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alison Goryachev <alison.goryachev@elastic.co>
@cjcenizal cjcenizal added the Feature:Painless Lab Dev tool for learning Painless label Mar 23, 2020
cjcenizal added a commit that referenced this pull request Mar 24, 2020
* Create Painless Playground app (#54578)

* Replace heart script with smiley face script. (#57755)

* Rename Painless Playground -> Painless Lab. (#57545)

* Fix i18n namespace.

* Improve smiley face proportions.
- Add def keyword to Painless spec.
- Temporarily fix broken highlighting.
- Add small padding to main controls.

* [Painless Lab] Minor Fixes (#58135)

* Code restructure, improve types, add plugin id, introduced hook

Moved the code execution hook to a custom hook outside of main,
also chaining off promise to avoid lower level handling of
sequencing.

* Re-instated formatting code

To improve DX the execution error response from the painless API
was massaged to a more reader friendly state, only giving non-repeating
information.

Currently it is hard to determine the line and character information from
the painless endpoint. If the user wishes to see this raw information it
will be available in the API response flyout.

* Remove leading new line in default script

* Remove registration of feature flag

* Fix types

* Restore previous auto-submit request behaviour

* Remove use of null and remove old comment

Stick with "undefined" as the designation for something not existing.

* [Painless Lab] NP migration (#59794)

* Fix sample document editor.

* [Painless Lab] Fix float -> integer coercion bug (#60201)

* Clarify data and persistence flow. Fix floating point precision bug.
* Send a string to API and ES client instead of an object.

* Rename helpers lib to format. Add tests for formatRequestPayload.

* Add query parameter to score context (#60414)

* Fix typo and i18n

* Make state init lazy

Otherwise we are needlessly reading and JSON.parse'ing on every
state update

* Support the query parameter in requests to Painless

* Fix borked i18n

* Fix i18n

* Another i18n issue

* [Painless] Minor state update model refactor (#60532)

* Fix typo and i18n

* Make state init lazy

Otherwise we are needlessly reading and JSON.parse'ing on every
state update

* Support the query parameter in requests to Painless

* WiP on state refactor

* Some cleanup after manual testing

* Fix types and i18n

* Fix i18n in context_tab

* i18n

* [Painless] Language Service (#60612)

* Added language service

* Use the correct monaco instance and add wordwise operations

* Remove plugin context initializer for now

* [Painless] Replace hard-coded links (#60603)

* Replace hard-coded links

Also remove all props from Main component

* Pass the new links object to the request flyout too

* Link directly to painless execute API's contexts

* Remove responsive stacking from tabs with icons in them.

* Resize Painless Lab bottom bar to accommodate nav drawer width (#60833)

* Validate Painless Lab index field (#60841)

* Make JSON format of parameters field more prominent. Set default parameters to provide an example to users.
* Set default document to provide an example to users.
* Simplify context's updateState interface.
* Refactor store and context file organization.
  - Remove common directory, move constants and types files to root.
  - Move initialState into context file, where it's being used.
* Add validation for index input.
* Create context directory.

* Fix bottom bar z-index.

* Position flyout help link so it's bottom-aligned with the title and farther from the close button.

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alison Goryachev <alison.goryachev@elastic.co>

Co-authored-by: Matthias Wilhelm <matthias.wilhelm@elastic.co>
Co-authored-by: Jean-Louis Leysens <jloleysens@gmail.com>
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
Co-authored-by: Alison Goryachev <alison.goryachev@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Dev Tools Feature:Painless Lab Dev tool for learning Painless painless painless 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 v8.0.0
Projects
Development

Successfully merging this pull request may close these issues.

None yet

6 participants