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

Add query parameter to score context #60414

Conversation

jloleysens
Copy link
Contributor

Summary

Add support for the query parameter on the score_context.

Screenshot 2020-03-17 at 17 40 29

Additional changes

Made the app a fixed height (computed from 100vh, similar to Console). This way, on smaller displays, if the context form grows too long the scroll will be contained to the tab.

Otherwise we are needlessly reading and JSON.parse'ing on every
state update
@jloleysens
Copy link
Contributor Author

Future Work

  1. Improve syntax highlighting and support triple quotes (this has not been built out for Monaco yet!)
  2. Perhaps we can link back to Console for editing the query

@cjcenizal cjcenizal added 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 labels Mar 17, 2020
@elasticmachine
Copy link
Contributor

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

@cjcenizal cjcenizal added the enhancement New value added to drive a business result label Mar 17, 2020
Copy link
Contributor

@cjcenizal cjcenizal left a comment

Choose a reason for hiding this comment

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

Tested locally, works like a charm. Code LGTM, just had a couple minor suggestions.

image

}
}

.painlessLab__betaLabelContainer {
line-height: 0;
}

.painlessLabMainContainer {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice!

@jloleysens jloleysens merged commit f5bec8e into elastic:app/painless Mar 18, 2020
@jloleysens jloleysens deleted the add-query-parameter-to-score-context branch March 18, 2020 15:24
jloleysens added a commit to jloleysens/kibana that referenced this pull request Mar 18, 2020
…efactor

* 'app/painless' of github.com:elastic/kibana:
  Add query parameter to score context (elastic#60414)

# Conflicts:
#	x-pack/plugins/painless_lab/public/application/common/types.ts
#	x-pack/plugins/painless_lab/public/application/components/main.tsx
#	x-pack/plugins/painless_lab/public/application/components/output_pane/context_tab.tsx
#	x-pack/plugins/painless_lab/public/application/components/output_pane/output_pane.tsx
#	x-pack/plugins/painless_lab/public/application/lib/format.ts
@kibanamachine
Copy link
Contributor

💔 Build Failed


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/machine_learning/data_frame_analytics/cloning·ts.machine learning data frame analytics jobs cloning supported by UI form classification job supported by the form should have correct init form values

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: machine learning
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ debg creating role ml_source
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] added role [ml_source]
[00:00:00]             │ debg created role ml_source
[00:00:00]             │ debg creating role ml_dest
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] added role [ml_dest]
[00:00:00]             │ debg created role ml_dest
[00:00:00]             │ debg creating role ml_dest_readonly
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] added role [ml_dest_readonly]
[00:00:00]             │ debg created role ml_dest_readonly
[00:00:00]             │ debg creating role ml_ui_extras
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] added role [ml_ui_extras]
[00:00:00]             │ debg created role ml_ui_extras
[00:00:00]             │ debg creating user ml_poweruser
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] added user [ml_poweruser]
[00:00:00]             │ debg created user ml_poweruser
[00:00:00]             │ debg creating user ml_viewer
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] added user [ml_viewer]
[00:00:00]             │ debg created user ml_viewer
[00:32:44]           └-: data frame analytics
[00:32:44]             └-> "before all" hook
[00:36:39]             └-: jobs cloning supported by UI form
[00:36:39]               └-> "before all" hook
[00:36:39]               └-> "before all" hook
[00:36:39]                 │ debg SecurityPage.forceLogout
[00:36:39]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:36:39]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:36:40]                 │ debg Redirecting to /logout to force the logout
[00:36:40]                 │ debg Waiting on the login form to appear
[00:36:40]                 │ debg Waiting up to 100000ms for login form...
[00:36:40]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/ml/ml.plugin.js 14:236842 "clearing dependency cache"
[00:36:40]                 │ debg browser[INFO] http://localhost:6131/logout?_t=1584552307047 340 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:36:40]                 │
[00:36:40]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:36:40]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:36:43]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-18T17:25:10Z
[00:36:43]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:36:43]                 │
[00:36:43]                 │      "
[00:36:43]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:36:44]                 │ debg browser[INFO] http://localhost:6131/login?_t=1584552307047 340 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:36:44]                 │
[00:36:44]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:36:45]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:36:45]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-18T17:25:12Z
[00:36:45]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:36:45]                 │
[00:36:45]                 │      "
[00:36:45]                 │ proc [kibana]   log   [17:25:12.541] [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:default\"],\"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:36:46]                 │ debg navigating to login url: http://localhost:6131/login
[00:36:46]                 │ debg Navigate to: http://localhost:6131/login
[00:36:46]                 │ debg ... sleep(700) start
[00:36:46]                 │ debg browser[INFO] http://localhost:6131/login?_t=1584552312673 340 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:36:46]                 │
[00:36:46]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:36:46]                 │ debg ... sleep(700) end
[00:36:46]                 │ debg returned from get, calling refresh
[00:36:47]                 │ proc [kibana]   log   [17:25:14.169] [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:default\"],\"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:36:47]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-18T17:25:14Z
[00:36:47]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:36:47]                 │
[00:36:47]                 │      "
[00:36:47]                 │ debg browser[INFO] http://localhost:6131/login?_t=1584552312673 340 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:36:47]                 │
[00:36:47]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:36:47]                 │ debg currentUrl = http://localhost:6131/login
[00:36:47]                 │          appUrl = http://localhost:6131/login
[00:36:47]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:36:49]                 │ proc [kibana]   log   [17:25:15.647] [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:default\"],\"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:36:49]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-18T17:25:15Z
[00:36:49]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:36:49]                 │
[00:36:49]                 │      "
[00:36:49]                 │ debg ... sleep(501) start
[00:36:49]                 │ debg ... sleep(501) end
[00:36:49]                 │ debg in navigateTo url = http://localhost:6131/login
[00:36:49]                 │ debg TestSubjects.exists(statusPageContainer)
[00:36:49]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:36:52]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:36:52]                 │ debg TestSubjects.setValue(loginUsername, ml_poweruser)
[00:36:52]                 │ debg TestSubjects.click(loginUsername)
[00:36:52]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:36:52]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:36:53]                 │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:36:53]                 │ debg TestSubjects.click(loginPassword)
[00:36:53]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:36:53]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:36:53]                 │ debg TestSubjects.click(loginSubmit)
[00:36:53]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:36:53]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:36:53]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:36:58]                 │ debg browser[INFO] http://localhost:6131/app/kibana 340 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:36:58]                 │
[00:36:58]                 │ debg browser[INFO] http://localhost:6131/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:36:58]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-18T17:25:22Z
[00:36:58]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:36:58]                 │
[00:36:58]                 │      "
[00:36:58]                 │ debg Finished login process currentUrl = http://localhost:6131/app/kibana#/home
[00:36:58]                 │ debg Waiting up to 20000ms for logout button visible...
[00:36:58]                 │ debg TestSubjects.exists(userMenuButton)
[00:36:58]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:36:58]                 │ debg TestSubjects.exists(userMenu)
[00:36:58]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:37:00]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:37:01]                 │ debg TestSubjects.click(userMenuButton)
[00:37:01]                 │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:37:01]                 │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:37:01]                 │ debg Waiting up to 20000ms for user menu opened...
[00:37:01]                 │ debg TestSubjects.exists(userMenu)
[00:37:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:37:01]                 │ debg TestSubjects.exists(userMenu > logoutLink)
[00:37:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:37:01]               └-: classification job supported by the form
[00:37:01]                 └-> "before all" hook
[00:37:01]                 └-> "before all" hook
[00:37:01]                   │ info [ml/bm_classification] Loading "mappings.json"
[00:37:01]                   │ info [ml/bm_classification] Loading "data.json.gz"
[00:37:01]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [bank-marketing] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:37:01]                   │ info [ml/bm_classification] Created index "bank-marketing"
[00:37:01]                   │ debg [ml/bm_classification] "bank-marketing" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:37:01]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_2/_Wq4uW1FTIi3d9Am_9ZO3w] deleting index
[00:37:01]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_1/_E0SelauR0-cy42kyjU73A] deleting index
[00:37:01]                   │ info [ml/bm_classification] Deleted existing index [".kibana_2",".kibana_1"]
[00:37:01]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:37:01]                   │ info [ml/bm_classification] Created index ".kibana_1"
[00:37:01]                   │ debg [ml/bm_classification] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:37:02]                   │ info [ml/bm_classification] Indexed 9314 docs into "bank-marketing"
[00:37:02]                   │ info [ml/bm_classification] Indexed 5 docs into ".kibana_1"
[00:37:02]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_1/CreB0j06QlyEVVYWwuf5Sg] update_mapping [_doc]
[00:37:02]                   │ debg Migrating saved objects
[00:37:03]                   │ proc [kibana]   log   [17:25:30.456] [info][savedobjects-service] Detected mapping change in "dynamic"
[00:37:03]                   │ proc [kibana]   log   [17:25:30.457] [info][savedobjects-service] Creating index .kibana_2.
[00:37:03]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:37:03]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] updating number_of_replicas to [0] for indices [.kibana_2]
[00:37:03]                   │ proc [kibana]   log   [17:25:30.522] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:37:03]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_2/D2KSC_xkQAOEP96qfE_TLQ] update_mapping [_doc]
[00:37:03]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_2/D2KSC_xkQAOEP96qfE_TLQ] update_mapping [_doc]
[00:37:04]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_2/D2KSC_xkQAOEP96qfE_TLQ] update_mapping [_doc]
[00:37:04]                   │ proc [kibana]   log   [17:25:30.636] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:37:04]                   │ proc [kibana]   log   [17:25:30.673] [info][savedobjects-service] Finished in 217ms.
[00:37:04]                   │ debg Creating data frame analytic job with id 'bm_1_1584550105165'...
[00:37:04]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.ml-config] creating index, cause [auto(bulk api)], templates [.ml-config], shards [1]/[1], mappings [_doc]
[00:37:04]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] updating number_of_replicas to [0] for indices [.ml-config]
[00:37:04]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:37:04]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:37:04]                   │ info [o.e.x.m.MlInitializationService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] Created ML annotations index and aliases
[00:37:04]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.ml-config/WQUmWq6MQHSjwj70T8hSdQ] update_mapping [_doc]
[00:37:04]                   │ debg Waiting up to 5000ms for 'bm_1_1584550105165' to be created...
[00:37:04]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1], mappings [_doc]
[00:37:04]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:37:04]                   │ debg navigating to ml url: http://localhost:6131/app/ml
[00:37:04]                   │ debg Navigate to: http://localhost:6131/app/ml
[00:37:04]                   │ debg ... sleep(700) start
[00:37:04]                   │ debg browser[INFO] http://localhost:6131/app/ml?_t=1584552330844 340 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:37:04]                   │
[00:37:04]                   │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:37:05]                   │ debg ... sleep(700) end
[00:37:05]                   │ debg returned from get, calling refresh
[00:37:05]                   │ debg browser[INFO] http://localhost:6131/app/ml?_t=1584552330844 340 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:37:05]                   │
[00:37:05]                   │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:37:05]                   │ debg currentUrl = http://localhost:6131/app/ml
[00:37:05]                   │          appUrl = http://localhost:6131/app/ml
[00:37:05]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:37:08]                   │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-18T17:25:34Z
[00:37:08]                   │        Adding connection to http://localhost:6131/elasticsearch
[00:37:08]                   │
[00:37:08]                   │      "
[00:37:08]                   │ debg ... sleep(501) start
[00:37:08]                   │ debg ... sleep(501) end
[00:37:08]                   │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=%28refreshInterval%3A%28pause%3A%21t%2Cvalue%3A0%29%29
[00:37:08]                   │ debg --- retry.try error: URL changed, waiting for it to settle
[00:37:09]                   │ debg ... sleep(501) start
[00:37:09]                   │ debg ... sleep(501) end
[00:37:09]                   │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=%28refreshInterval%3A%28pause%3A%21t%2Cvalue%3A0%29%29
[00:37:09]                   │ debg TestSubjects.exists(statusPageContainer)
[00:37:09]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:37:12]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:37:13]                   │ debg TestSubjects.exists(mlPageOverview)
[00:37:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageOverview"]') with timeout=2000
[00:37:13]                   │ debg TestSubjects.click(~mlMainTab & ~dataFrameAnalytics)
[00:37:13]                   │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"]') with timeout=10000
[00:37:13]                   │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"]') with timeout=10000
[00:37:13]                   │ debg TestSubjects.exists(~mlMainTab & ~dataFrameAnalytics & ~selected)
[00:37:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"][data-test-subj~="selected"]') with timeout=120000
[00:37:13]                   │ debg TestSubjects.exists(mlPageDataFrameAnalytics)
[00:37:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageDataFrameAnalytics"]') with timeout=120000
[00:37:13]                   │ debg TestSubjects.findAll(~mlSubTab)
[00:37:13]                   │ debg Find.allByCssSelector('[data-test-subj~="mlSubTab"]') with timeout=3
[00:37:13]                   │ debg TestSubjects.exists(~mlAnalyticsTable)
[00:37:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlAnalyticsTable"]') with timeout=60000
[00:37:13]                   │ debg TestSubjects.exists(mlAnalyticsTable loaded)
[00:37:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsTable loaded"]') with timeout=30000
[00:37:13]                   │ debg TestSubjects.exists(~mlAnalyticsTable)
[00:37:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlAnalyticsTable"]') with timeout=60000
[00:37:13]                   │ debg TestSubjects.exists(mlAnalyticsTable loaded)
[00:37:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsTable loaded"]') with timeout=30000
[00:37:13]                   │ debg TestSubjects.find(mlAnalyticsTableContainer)
[00:37:13]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsTableContainer"]') with timeout=10000
[00:37:13]                   │ debg TestSubjects.find(mlAnalyticsTableContainer)
[00:37:13]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsTableContainer"]') with timeout=10000
[00:37:13]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsTableRow row-bm_1_1584550105165"] [data-test-subj=euiCollapsedItemActionsButton]') with timeout=10000
[00:37:13]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsTableRow row-bm_1_1584550105165"] [data-test-subj=euiCollapsedItemActionsButton]') with timeout=10000
[00:37:13]                   │ debg Find.existsByCssSelector('.euiPanel') with timeout=20000
[00:37:14]                   │ debg TestSubjects.click(mlAnalyticsJobCloneButton)
[00:37:14]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsJobCloneButton"]') with timeout=10000
[00:37:14]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsJobCloneButton"]') with timeout=10000
[00:37:14]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyout)
[00:37:14]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyout"]') with timeout=120000
[00:37:14]                   │ debg browser[INFO] http://localhost:6131/bundles/plugin/ml/ml.plugin.js 39:266958 "Property \"class_assignment_objective\" is unknown."
[00:37:14]                   │ debg --- retry.tryForTime error: [data-test-subj="mlAnalyticsCreateJobFlyout"] is not displayed
[00:37:14]                 └-> should open the flyout with a proper header
[00:37:14]                   └-> "before each" hook: global before each
[00:37:14]                   │ debg TestSubjects.getVisibleText(mlDataFrameAnalyticsFlyoutHeaderTitle)
[00:37:14]                   │ debg TestSubjects.find(mlDataFrameAnalyticsFlyoutHeaderTitle)
[00:37:14]                   │ debg Find.findByCssSelector('[data-test-subj="mlDataFrameAnalyticsFlyoutHeaderTitle"]') with timeout=10000
[00:37:15]                   └- ✓ pass  (31ms) "machine learning data frame analytics jobs cloning supported by UI form classification job supported by the form should open the flyout with a proper header"
[00:37:15]                 └-> should have correct init form values
[00:37:15]                   └-> "before each" hook: global before each
[00:37:15]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:37:15]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:37:15]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:37:25]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:37:25]                   │      Wait timed out after 10024ms
[00:37:25]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:37:25]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:37:25]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:37:35]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:37:35]                   │      Wait timed out after 10018ms
[00:37:36]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:37:36]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:37:36]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:37:46]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:37:46]                   │      Wait timed out after 10028ms
[00:37:46]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:37:46]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:37:46]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:37:56]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:37:56]                   │      Wait timed out after 10004ms
[00:37:57]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:37:57]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:37:57]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:38:07]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:38:07]                   │      Wait timed out after 10030ms
[00:38:07]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:38:07]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:38:07]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:38:17]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:38:17]                   │      Wait timed out after 10050ms
[00:38:18]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:38:18]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:38:18]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:38:28]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:38:28]                   │      Wait timed out after 10018ms
[00:38:28]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:38:28]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:38:28]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:38:38]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:38:38]                   │      Wait timed out after 10045ms
[00:38:39]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:38:39]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:38:39]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:38:49]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:38:49]                   │      Wait timed out after 10031ms
[00:38:49]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:38:49]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:38:49]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:38:59]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:38:59]                   │      Wait timed out after 10058ms
[00:39:00]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:39:00]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:39:00]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:39:10]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:39:10]                   │      Wait timed out after 10028ms
[00:39:10]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:39:10]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:39:10]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:39:20]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:39:20]                   │      Wait timed out after 10020ms
[00:39:21]                   │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/machine learning data frame analytics jobs cloning supported by UI form classification job supported by the form should have correct init form values.png"
[00:39:21]                   │ info Current URL is: http://localhost:6131/app/ml#/data_frame_analytics?_g=%28refreshInterval%3A%28pause%3A%21f%2Cvalue%3A30000%29%29
[00:39:21]                   │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/machine learning data frame analytics jobs cloning supported by UI form classification job supported by the form should have correct init form values.html
[00:39:21]                   └- ✖ fail: "machine learning data frame analytics jobs cloning supported by UI form classification job supported by the form should have correct init form values"
[00:39:21]                   │

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
Wait timed out after 10020ms
    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/machine_learning/data_frame_analytics/cloning·ts.machine learning data frame analytics jobs cloning supported by UI form classification job supported by the form should have correct init form values

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: machine learning
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ debg creating role ml_source
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] added role [ml_source]
[00:00:00]             │ debg created role ml_source
[00:00:00]             │ debg creating role ml_dest
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] added role [ml_dest]
[00:00:00]             │ debg created role ml_dest
[00:00:00]             │ debg creating role ml_dest_readonly
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] added role [ml_dest_readonly]
[00:00:00]             │ debg created role ml_dest_readonly
[00:00:00]             │ debg creating role ml_ui_extras
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] added role [ml_ui_extras]
[00:00:00]             │ debg created role ml_ui_extras
[00:00:00]             │ debg creating user ml_poweruser
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] added user [ml_poweruser]
[00:00:00]             │ debg created user ml_poweruser
[00:00:00]             │ debg creating user ml_viewer
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] added user [ml_viewer]
[00:00:00]             │ debg created user ml_viewer
[00:38:30]           └-: data frame analytics
[00:38:30]             └-> "before all" hook
[00:42:44]             └-: jobs cloning supported by UI form
[00:42:44]               └-> "before all" hook
[00:42:44]               └-> "before all" hook
[00:42:44]                 │ debg SecurityPage.forceLogout
[00:42:44]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:42:44]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:42:44]                 │ debg Redirecting to /logout to force the logout
[00:42:44]                 │ debg Waiting on the login form to appear
[00:42:44]                 │ debg Waiting up to 100000ms for login form...
[00:42:44]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/ml/ml.plugin.js 14:236842 "clearing dependency cache"
[00:42:44]                 │ debg browser[INFO] http://localhost:6131/logout?_t=1584549818117 340 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:42:44]                 │
[00:42:44]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:42:44]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:42:48]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-18T16:43:41Z
[00:42:48]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:42:48]                 │
[00:42:48]                 │      "
[00:42:48]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:42:48]                 │ debg browser[INFO] http://localhost:6131/login?_t=1584549818117 340 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:42:48]                 │
[00:42:48]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:42:49]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:42:51]                 │ proc [kibana]   log   [16:43:45.057] [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:default\"],\"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:42:51]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-18T16:43:45Z
[00:42:51]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:42:51]                 │
[00:42:51]                 │      "
[00:42:51]                 │ debg navigating to login url: http://localhost:6131/login
[00:42:51]                 │ debg Navigate to: http://localhost:6131/login
[00:42:51]                 │ debg ... sleep(700) start
[00:42:52]                 │ debg browser[INFO] http://localhost:6131/login?_t=1584549825240 340 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:42:52]                 │
[00:42:52]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:42:52]                 │ debg ... sleep(700) end
[00:42:52]                 │ debg returned from get, calling refresh
[00:42:52]                 │ debg browser[INFO] http://localhost:6131/login?_t=1584549825240 340 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:42:52]                 │
[00:42:52]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:42:52]                 │ debg currentUrl = http://localhost:6131/login
[00:42:52]                 │          appUrl = http://localhost:6131/login
[00:42:52]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:42:56]                 │ proc [kibana]   log   [16:43:49.390] [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:default\"],\"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:42:56]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-18T16:43:49Z
[00:42:56]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:42:56]                 │
[00:42:56]                 │      "
[00:42:56]                 │ debg ... sleep(501) start
[00:42:56]                 │ debg ... sleep(501) end
[00:42:56]                 │ debg in navigateTo url = http://localhost:6131/login
[00:42:56]                 │ debg TestSubjects.exists(statusPageContainer)
[00:42:56]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:42:59]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:42:59]                 │ debg TestSubjects.setValue(loginUsername, ml_poweruser)
[00:42:59]                 │ debg TestSubjects.click(loginUsername)
[00:42:59]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:42:59]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:43:00]                 │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:43:00]                 │ debg TestSubjects.click(loginPassword)
[00:43:00]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:43:00]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:43:00]                 │ debg TestSubjects.click(loginSubmit)
[00:43:00]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:43:00]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:43:00]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:43:06]                 │ debg browser[INFO] http://localhost:6131/app/kibana 340 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:43:06]                 │
[00:43:06]                 │ debg browser[INFO] http://localhost:6131/bundles/app/kibana/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:43:06]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-18T16:43:57Z
[00:43:06]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:43:06]                 │
[00:43:06]                 │      "
[00:43:06]                 │ debg Finished login process currentUrl = http://localhost:6131/app/kibana#/home
[00:43:06]                 │ debg Waiting up to 20000ms for logout button visible...
[00:43:06]                 │ debg TestSubjects.exists(userMenuButton)
[00:43:06]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:43:06]                 │ debg TestSubjects.exists(userMenu)
[00:43:06]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:43:09]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:43:09]                 │ debg TestSubjects.click(userMenuButton)
[00:43:09]                 │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:43:09]                 │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:43:09]                 │ debg Waiting up to 20000ms for user menu opened...
[00:43:09]                 │ debg TestSubjects.exists(userMenu)
[00:43:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:43:09]                 │ debg TestSubjects.exists(userMenu > logoutLink)
[00:43:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:43:09]               └-: classification job supported by the form
[00:43:09]                 └-> "before all" hook
[00:43:09]                 └-> "before all" hook
[00:43:09]                   │ info [ml/bm_classification] Loading "mappings.json"
[00:43:09]                   │ info [ml/bm_classification] Loading "data.json.gz"
[00:43:09]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [bank-marketing] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:43:10]                   │ info [ml/bm_classification] Created index "bank-marketing"
[00:43:10]                   │ debg [ml/bm_classification] "bank-marketing" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:43:10]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_2/Pt6azIQmTSK091XtklJsFw] deleting index
[00:43:10]                   │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_1/b7RVFruISUuda0rW0imAJw] deleting index
[00:43:10]                   │ info [ml/bm_classification] Deleted existing index [".kibana_2",".kibana_1"]
[00:43:10]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:43:10]                   │ info [ml/bm_classification] Created index ".kibana_1"
[00:43:10]                   │ debg [ml/bm_classification] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:43:11]                   │ info [ml/bm_classification] Indexed 9314 docs into "bank-marketing"
[00:43:11]                   │ info [ml/bm_classification] Indexed 5 docs into ".kibana_1"
[00:43:11]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_1/lHEniV21SuS6s8cm3-9KJw] update_mapping [_doc]
[00:43:11]                   │ debg Migrating saved objects
[00:43:12]                   │ proc [kibana]   log   [16:44:05.602] [info][savedobjects-service] Detected mapping change in "dynamic"
[00:43:12]                   │ proc [kibana]   log   [16:44:05.603] [info][savedobjects-service] Creating index .kibana_2.
[00:43:12]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:43:12]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] updating number_of_replicas to [0] for indices [.kibana_2]
[00:43:12]                   │ proc [kibana]   log   [16:44:05.685] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:43:12]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_2/kT9j-WYGQfuI8QwA_KNZPQ] update_mapping [_doc]
[00:43:12]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_2/kT9j-WYGQfuI8QwA_KNZPQ] update_mapping [_doc]
[00:43:12]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.kibana_2/kT9j-WYGQfuI8QwA_KNZPQ] update_mapping [_doc]
[00:43:12]                   │ proc [kibana]   log   [16:44:05.834] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:43:12]                   │ proc [kibana]   log   [16:44:05.902] [info][savedobjects-service] Finished in 300ms.
[00:43:12]                   │ debg Creating data frame analytic job with id 'bm_1_1584547251492'...
[00:43:12]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.ml-config] creating index, cause [auto(bulk api)], templates [.ml-config], shards [1]/[1], mappings [_doc]
[00:43:12]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] updating number_of_replicas to [0] for indices [.ml-config]
[00:43:12]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:43:12]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:43:12]                   │ info [o.e.x.m.MlInitializationService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] Created ML annotations index and aliases
[00:43:12]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.ml-config/IfChwcJfTFOiHyVHPNGfuw] update_mapping [_doc]
[00:43:12]                   │ debg Waiting up to 5000ms for 'bm_1_1584547251492' to be created...
[00:43:12]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1], mappings [_doc]
[00:43:12]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1584545131915960418] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:43:12]                   │ debg navigating to ml url: http://localhost:6131/app/ml
[00:43:12]                   │ debg Navigate to: http://localhost:6131/app/ml
[00:43:13]                   │ debg ... sleep(700) start
[00:43:13]                   │ debg browser[INFO] http://localhost:6131/app/ml?_t=1584549846125 340 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:43:13]                   │
[00:43:13]                   │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:43:13]                   │ debg ... sleep(700) end
[00:43:13]                   │ debg returned from get, calling refresh
[00:43:14]                   │ debg browser[INFO] http://localhost:6131/app/ml?_t=1584549846125 340 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:43:14]                   │
[00:43:14]                   │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:43:14]                   │ debg currentUrl = http://localhost:6131/app/ml
[00:43:14]                   │          appUrl = http://localhost:6131/app/ml
[00:43:14]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:43:17]                   │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 96:139970 "INFO: 2020-03-18T16:44:10Z
[00:43:17]                   │        Adding connection to http://localhost:6131/elasticsearch
[00:43:17]                   │
[00:43:17]                   │      "
[00:43:17]                   │ debg ... sleep(501) start
[00:43:18]                   │ debg ... sleep(501) end
[00:43:18]                   │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=%28refreshInterval%3A%28pause%3A%21t%2Cvalue%3A0%29%29
[00:43:18]                   │ debg --- retry.try error: URL changed, waiting for it to settle
[00:43:18]                   │ debg ... sleep(501) start
[00:43:19]                   │ debg ... sleep(501) end
[00:43:19]                   │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=%28refreshInterval%3A%28pause%3A%21t%2Cvalue%3A0%29%29
[00:43:19]                   │ debg TestSubjects.exists(statusPageContainer)
[00:43:19]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:43:21]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:43:22]                   │ debg TestSubjects.exists(mlPageOverview)
[00:43:22]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageOverview"]') with timeout=2000
[00:43:22]                   │ debg TestSubjects.click(~mlMainTab & ~dataFrameAnalytics)
[00:43:22]                   │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"]') with timeout=10000
[00:43:22]                   │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"]') with timeout=10000
[00:43:22]                   │ debg TestSubjects.exists(~mlMainTab & ~dataFrameAnalytics & ~selected)
[00:43:22]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"][data-test-subj~="selected"]') with timeout=120000
[00:43:22]                   │ debg TestSubjects.exists(mlPageDataFrameAnalytics)
[00:43:22]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageDataFrameAnalytics"]') with timeout=120000
[00:43:22]                   │ debg TestSubjects.findAll(~mlSubTab)
[00:43:22]                   │ debg Find.allByCssSelector('[data-test-subj~="mlSubTab"]') with timeout=3
[00:43:22]                   │ debg TestSubjects.exists(~mlAnalyticsTable)
[00:43:22]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlAnalyticsTable"]') with timeout=60000
[00:43:22]                   │ debg TestSubjects.exists(mlAnalyticsTable loaded)
[00:43:22]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsTable loaded"]') with timeout=30000
[00:43:23]                   │ debg TestSubjects.exists(~mlAnalyticsTable)
[00:43:23]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlAnalyticsTable"]') with timeout=60000
[00:43:23]                   │ debg TestSubjects.exists(mlAnalyticsTable loaded)
[00:43:23]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsTable loaded"]') with timeout=30000
[00:43:23]                   │ debg TestSubjects.find(mlAnalyticsTableContainer)
[00:43:23]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsTableContainer"]') with timeout=10000
[00:43:23]                   │ debg TestSubjects.find(mlAnalyticsTableContainer)
[00:43:23]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsTableContainer"]') with timeout=10000
[00:43:23]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsTableRow row-bm_1_1584547251492"] [data-test-subj=euiCollapsedItemActionsButton]') with timeout=10000
[00:43:23]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsTableRow row-bm_1_1584547251492"] [data-test-subj=euiCollapsedItemActionsButton]') with timeout=10000
[00:43:23]                   │ debg Find.existsByCssSelector('.euiPanel') with timeout=20000
[00:43:23]                   │ debg TestSubjects.click(mlAnalyticsJobCloneButton)
[00:43:23]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsJobCloneButton"]') with timeout=10000
[00:43:23]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsJobCloneButton"]') with timeout=10000
[00:43:23]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyout)
[00:43:23]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyout"]') with timeout=120000
[00:43:23]                   │ debg browser[INFO] http://localhost:6131/bundles/plugin/ml/ml.plugin.js 39:266958 "Property \"class_assignment_objective\" is unknown."
[00:43:24]                   │ debg --- retry.tryForTime error: [data-test-subj="mlAnalyticsCreateJobFlyout"] is not displayed
[00:43:24]                 └-> should open the flyout with a proper header
[00:43:24]                   └-> "before each" hook: global before each
[00:43:24]                   │ debg TestSubjects.getVisibleText(mlDataFrameAnalyticsFlyoutHeaderTitle)
[00:43:24]                   │ debg TestSubjects.find(mlDataFrameAnalyticsFlyoutHeaderTitle)
[00:43:24]                   │ debg Find.findByCssSelector('[data-test-subj="mlDataFrameAnalyticsFlyoutHeaderTitle"]') with timeout=10000
[00:43:24]                   └- ✓ pass  (31ms) "machine learning data frame analytics jobs cloning supported by UI form classification job supported by the form should open the flyout with a proper header"
[00:43:24]                 └-> should have correct init form values
[00:43:24]                   └-> "before each" hook: global before each
[00:43:24]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:43:24]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:43:24]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:43:34]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:43:34]                   │      Wait timed out after 10045ms
[00:43:35]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:43:35]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:43:35]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:43:45]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:43:45]                   │      Wait timed out after 10058ms
[00:43:45]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:43:45]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:43:45]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:43:55]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:43:55]                   │      Wait timed out after 10036ms
[00:43:56]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:43:56]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:43:56]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:44:06]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:44:06]                   │      Wait timed out after 10052ms
[00:44:06]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:44:06]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:44:06]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:44:16]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:44:16]                   │      Wait timed out after 10008ms
[00:44:17]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:44:17]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:44:17]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:44:27]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:44:27]                   │      Wait timed out after 10029ms
[00:44:27]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:44:27]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:44:27]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:44:37]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:44:37]                   │      Wait timed out after 10009ms
[00:44:38]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:44:38]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:44:38]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:44:48]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:44:48]                   │      Wait timed out after 10032ms
[00:44:48]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:44:48]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:44:48]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:44:58]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:44:58]                   │      Wait timed out after 10010ms
[00:44:59]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:44:59]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:44:59]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:45:09]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:45:09]                   │      Wait timed out after 10056ms
[00:45:09]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:45:09]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:45:09]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:45:19]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:45:19]                   │      Wait timed out after 10043ms
[00:45:20]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:45:20]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:45:20]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:45:30]                   │ debg --- retry.try error: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
[00:45:30]                   │      Wait timed out after 10022ms
[00:45:31]                   │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/machine learning data frame analytics jobs cloning supported by UI form classification job supported by the form should have correct init form values.png"
[00:45:31]                   │ info Current URL is: http://localhost:6131/app/ml#/data_frame_analytics?_g=%28refreshInterval%3A%28pause%3A%21f%2Cvalue%3A30000%29%29
[00:45:31]                   │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/machine learning data frame analytics jobs cloning supported by UI form classification job supported by the form should have correct init form values.html
[00:45:31]                   └- ✖ fail: "machine learning data frame analytics jobs cloning supported by UI form classification job supported by the form should have correct init form values"
[00:45:31]                   │

Stack Trace

Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"])
Wait timed out after 10022ms
    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

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
enhancement New value added to drive a business result 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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants