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

Support triple quoted JSON strings and Painless highlighting to Watcher and SearchProfiler #57563

Merged
merged 16 commits into from
Feb 17, 2020

Conversation

jloleysens
Copy link
Contributor

@jloleysens jloleysens commented Feb 13, 2020

Summary

The XJSON mode is used currently in SearchProfiler and in Console. Watcher, and probably other plugins, may also want to make use of it if they present users with the Ace Editor.

Fixes #21752

How to review

No functionality should have changed except for that in Watcher. All other changes are just moving files around and one case (collapseLiteralStrings, expandLiteralStrings) moving functionality out of a file.

Console

Go to the Console plugin and test check highlighting. The following snippet should show all syntax highlighting in action:

GET test-000002/_doc/-MYcPnABNNJJRoNt1xvS

POST test-alias/_doc
{
  "foo": """ foo """,
   "foo": """ foo """,
  "script": """while true 1 === 2"""
}


POST _sql
{
"query": """
    SELECT agent.hostname AS HOST, timestamp AS TIME, round(TEMPERATURE_A,1) AS TEMP FROM \"test\" WHERE agent.hostname = 'host-1-1'
  """
}



PUT /test-000001
{
  "aliases": {
    "test-alias": {
      "is_write_index": true
    }
  }
}

You should have an error next the second "foo" object entry complaining about duplicate keys - indicating that grammar checking still works.

SearchProfiler

SearchProfiler should still work the same (it had XJsonMode before). But should now also provide Painless syntax highlighting.

Screenshot 2020-02-13 at 12 01 57

Try running the default query, and one like the image above, they should both work. As with Console, duplicate keys should still result in a grammar error.

Watcher

Screenshot 2020-02-13 at 13 33 07

Watcher advanced JSON editor also now understands XJSON mode. As with Console, duplicate keys should still result in a grammar error. Introducing a JSON error like 1"3"4 as a key name, should be flagged as invalid JSON. Creating the Watcher with valid JSON should work as before.

Release Note

To make multiline script writing more user friendly, we add triple quote (""") parsing and Painless syntax highlighting to Watcher's advanced create editors and SearchProfiler's editor.

For maintainers

@elasticmachine
Copy link
Contributor

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

@jloleysens jloleysens requested review from alisonelizabeth and removed request for alisonelizabeth and cjcenizal February 13, 2020 13:05
Import JSON highlight rules in XJSONHighlight rules
Exporting console_lang through the es_ui_shared/public barrel caused the XJsonMode to imported to a index_management too and any other plugin that may
import something from that directory. console_lang was moved to it's own top level directory es_ui_shared/console_lang.

We also included a mock for tests using XJsonMode to import from console_lang.
@jloleysens
Copy link
Contributor Author

@elasticmachine merge upstream

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.

@jloleysens thanks for adding this functionality to watcher! Console and search profiler syntax highlighting still worked as expected for me.

Syntax highlighting also works for watcher. However, I did notice that if you create a watch with painless syntax, switch to the "Simulate" tab, and then back to edit, the script is parsed and does not retain the highlighting. Similarly, if you save the watch and then go back to edit it.

I also think we should add the XJSON mode to the "Alternative input" code editor under the "Simulate" tab.

@jloleysens
Copy link
Contributor Author

@alisonelizabeth Those are excellent points! I'll address those points you mentioned for watcher 👍

@alisonelizabeth
Copy link
Contributor

@jloleysens forgot to add - if you could also add a release note to this PR, that would be awesome!

Console Jest tests were still failing because they did not mock out the raw-loader imported worker file
Upon entering the advanced watcher creation view, the JSON should be scanned for triple quote expansion
Editors had github theme, which diverged from the textmate theme used in Console and SearchProfiler
Slight refactor to the logic for using XJSON mode. Created an adhoc hook for wrapping the
logic of useState and moved lanugage util imports there too to reduce the number of imports
in both the watcher form and simulate tabs in advanced creation.
@jloleysens
Copy link
Contributor Author

@elasticmachine merge upstream

x-json worker is currently only used inside of x-pack. Also testing
for if this will fix the CI/prod build
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.

Latest LGTM. Thanks for making those changes!

@jloleysens
Copy link
Contributor Author

@elasticmachine merge upstream

@jloleysens
Copy link
Contributor Author

@elasticmachine merge upstream

@jloleysens jloleysens merged commit 3d7bae4 into elastic:master Feb 17, 2020
@jloleysens jloleysens deleted the share-ace-console branch February 17, 2020 10:06
jloleysens added a commit to jloleysens/kibana that referenced this pull request Feb 17, 2020
…#57563)

* Move mode and lexer rules to shared space

* Update searchprofiler mode rules

* Moved x-json worker out of searchprofiler and into es_ui_shared (for use in Watcher)
Renamed ace/mode -> ace/modes

* Moved collapse and expand literal string functions to es_ui_shared

* Fix some imports
Enable Watcher editor to parse XJson using XJsonMode

* Fix imports

Import JSON highlight rules in XJSONHighlight rules

* Move console_lang, fix Jest tests

Exporting console_lang through the es_ui_shared/public barrel caused the XJsonMode to imported to a index_management too and any other plugin that may
import something from that directory. console_lang was moved to it's own top level directory es_ui_shared/console_lang.

We also included a mock for tests using XJsonMode to import from console_lang.

* Fixed OSS Jest tests

Console Jest tests were still failing because they did not mock out the raw-loader imported worker file

* Expand triple quotes in editor

Upon entering the advanced watcher creation view, the JSON should be scanned for triple quote expansion

* Bring all editors themes in line

Editors had github theme, which diverged from the textmate theme used in Console and SearchProfiler

* Added XJSON mode to simulate alternative input editor

Slight refactor to the logic for using XJSON mode. Created an adhoc hook for wrapping the
logic of useState and moved lanugage util imports there too to reduce the number of imports
in both the watcher form and simulate tabs in advanced creation.

* Moved x-json worker to x-pack

x-json worker is currently only used inside of x-pack. Also testing
for if this will fix the CI/prod build

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
jloleysens added a commit to jloleysens/kibana that referenced this pull request Feb 17, 2020
…re/files-and-filetree

* 'master' of github.com:elastic/kibana: (139 commits)
  Move Ace XJSON lexer-rules, worker and utils to es_ui_shared (elastic#57563)
  [Upgrade Assistant] Fix filter deprecations search filter (elastic#57541)
  [ML] New Platform server shim: update indices routes (elastic#57685)
  Bump redux dependencies (elastic#53348)
  [Index management] Client-side NP ready (elastic#57295)
  change id of x-pack event_log plugin to eventLog (elastic#57612)
  [eventLog] get kibana.index name from config instead of hard-coding it (elastic#57607)
  revert
  allow using any path to generate
  fixes ui titles (elastic#57535)
  Fix login redirect for expired sessions (elastic#57157)
  Expose Vis on the contract as it requires visTypes (elastic#56968)
  [SIEM][Detection Engine] Fixes queries to ignore errors when signals index is not present
  [Remote clusters] Migrate client-side code out of legacy (elastic#57365)
  Fix failed test reporter for SIEM Cypress use (elastic#57240)
  skip flaky suite (elastic#45244)
  update chromedriver to 80.0.1 (elastic#57602)
  change slack action to only report on whitelisted host name (elastic#57582)
  [kbn/optimizer] throw errors into stream on invalid completion (elastic#57735)
  moving visualize/utils to new platform (elastic#56650)
  ...
jloleysens added a commit that referenced this pull request Feb 17, 2020
…#57781)

* Move mode and lexer rules to shared space

* Update searchprofiler mode rules

* Moved x-json worker out of searchprofiler and into es_ui_shared (for use in Watcher)
Renamed ace/mode -> ace/modes

* Moved collapse and expand literal string functions to es_ui_shared

* Fix some imports
Enable Watcher editor to parse XJson using XJsonMode

* Fix imports

Import JSON highlight rules in XJSONHighlight rules

* Move console_lang, fix Jest tests

Exporting console_lang through the es_ui_shared/public barrel caused the XJsonMode to imported to a index_management too and any other plugin that may
import something from that directory. console_lang was moved to it's own top level directory es_ui_shared/console_lang.

We also included a mock for tests using XJsonMode to import from console_lang.

* Fixed OSS Jest tests

Console Jest tests were still failing because they did not mock out the raw-loader imported worker file

* Expand triple quotes in editor

Upon entering the advanced watcher creation view, the JSON should be scanned for triple quote expansion

* Bring all editors themes in line

Editors had github theme, which diverged from the textmate theme used in Console and SearchProfiler

* Added XJSON mode to simulate alternative input editor

Slight refactor to the logic for using XJSON mode. Created an adhoc hook for wrapping the
logic of useState and moved lanugage util imports there too to reduce the number of imports
in both the watcher form and simulate tabs in advanced creation.

* Moved x-json worker to x-pack

x-json worker is currently only used inside of x-pack. Also testing
for if this will fix the CI/prod build

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
@cjcenizal cjcenizal changed the title Move Ace XJSON lexer-rules, worker and utils to es_ui_shared Support triple quoted JSON strings and Painless highlighting to Watcher and SearchProfiler Mar 17, 2020
@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/classification_creation·ts.machine learning data frame analytics classification creation bank marketing starts the analytics job

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:04:51]         └-: machine learning
[00:04:51]           └-> "before all" hook
[00:31:59]           └-: data frame analytics
[00:31:59]             └-> "before all" hook
[00:33:28]             └-: classification creation
[00:33:28]               └-> "before all" hook
[00:33:28]               └-> "before all" hook
[00:33:28]                 │ info [ml/bm_classification] Loading "mappings.json"
[00:33:28]                 │ info [ml/bm_classification] Loading "data.json.gz"
[00:33:28]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [bank-marketing] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:33:28]                 │ info [ml/bm_classification] Created index "bank-marketing"
[00:33:28]                 │ debg [ml/bm_classification] "bank-marketing" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:33:28]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.kibana_1/NEx1sbqMRrWhrOFma_9afQ] deleting index
[00:33:28]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.kibana_2/NHxIFGv0QTuwu1mR7zEoQg] deleting index
[00:33:28]                 │ info [ml/bm_classification] Deleted existing index [".kibana_2",".kibana_1"]
[00:33:28]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:33:28]                 │ info [ml/bm_classification] Created index ".kibana_1"
[00:33:28]                 │ debg [ml/bm_classification] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:33:29]                 │ info [ml/bm_classification] Indexed 9314 docs into "bank-marketing"
[00:33:29]                 │ info [ml/bm_classification] Indexed 5 docs into ".kibana_1"
[00:33:30]                 │ info Detected mapping change in "properties.case-workflow"
[00:33:30]                 │ info Creating index .kibana_2.
[00:33:30]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:33:30]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] updating number_of_replicas to [0] for indices [.kibana_2]
[00:33:30]                 │ info Migrating .kibana_1 saved objects to .kibana_2
[00:33:30]                 │ debg Migrating saved objects space:default, telemetry:telemetry, config:7.0.0, index-pattern:5ef765b0-41b1-11ea-87af-5ba256dbe605, maps-telemetry:maps-telemetry
[00:33:30]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.kibana_2/rBQxEo9GTXCeTpOF3JtYjw] update_mapping [_doc]
[00:33:30]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.kibana_2/rBQxEo9GTXCeTpOF3JtYjw] update_mapping [_doc]
[00:33:30]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.kibana_2/rBQxEo9GTXCeTpOF3JtYjw] update_mapping [_doc]
[00:33:30]                 │ info Pointing alias .kibana to .kibana_2.
[00:33:30]                 │ info Finished in 224ms.
[00:33:30]               └-: bank marketing
[00:33:30]                 └-> "before all" hook
[00:33:30]                 └-> loads the data frame analytics page
[00:33:30]                   └-> "before each" hook: global before each
[00:33:30]                   │ debg navigating to ml url: http://localhost:6131/app/ml
[00:33:30]                   │ debg Navigate to: http://localhost:6131/app/ml
[00:33:31]                   │ debg ... sleep(700) start
[00:33:31]                   │ debg browser[INFO] http://localhost:6131/app/ml?_t=1584413033727 350 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:33:31]                   │
[00:33:31]                   │ debg browser[INFO] http://localhost:6131/bundles/app/ml/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:33:32]                   │ debg ... sleep(700) end
[00:33:32]                   │ debg returned from get, calling refresh
[00:33:32]                   │ debg browser[INFO] http://localhost:6131/app/ml?_t=1584413033727 350 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:33:32]                   │
[00:33:32]                   │ debg browser[INFO] http://localhost:6131/bundles/app/ml/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:33:33]                   │ debg currentUrl = http://localhost:6131/app/ml
[00:33:33]                   │          appUrl = http://localhost:6131/app/ml
[00:33:33]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:33:36]                   │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 67:139970 "INFO: 2020-03-17T02:43:58Z
[00:33:36]                   │        Adding connection to http://localhost:6131/elasticsearch
[00:33:36]                   │
[00:33:36]                   │      "
[00:33:36]                   │ debg ... sleep(501) start
[00:33:37]                   │ debg ... sleep(501) end
[00:33:37]                   │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=(refreshInterval:(pause:!t,value:0))
[00:33:37]                   │ debg --- retry.try error: URL changed, waiting for it to settle
[00:33:37]                   │ debg ... sleep(501) start
[00:33:38]                   │ debg ... sleep(501) end
[00:33:38]                   │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=(refreshInterval:(pause:!t,value:0))
[00:33:38]                   │ debg TestSubjects.exists(statusPageContainer)
[00:33:38]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:33:40]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:33:41]                   │ debg TestSubjects.click(~mlMainTab & ~dataFrameAnalytics)
[00:33:41]                   │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"]') with timeout=10000
[00:33:41]                   │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"]') with timeout=10000
[00:33:41]                   │ debg TestSubjects.exists(~mlMainTab & ~dataFrameAnalytics & ~selected)
[00:33:41]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"][data-test-subj~="selected"]') with timeout=120000
[00:33:41]                   │ debg TestSubjects.exists(mlPageDataFrameAnalytics)
[00:33:41]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageDataFrameAnalytics"]') with timeout=120000
[00:33:41]                   │ debg TestSubjects.findAll(~mlSubTab)
[00:33:41]                   │ debg Find.allByCssSelector('[data-test-subj~="mlSubTab"]') with timeout=3
[00:33:41]                   └- ✓ pass  (10.9s) "machine learning data frame analytics classification creation bank marketing loads the data frame analytics page"
[00:33:41]                 └-> loads the job creation flyout
[00:33:41]                   └-> "before each" hook: global before each
[00:33:41]                   │ debg TestSubjects.exists(mlNoDataFrameAnalyticsFound)
[00:33:41]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlNoDataFrameAnalyticsFound"]') with timeout=2500
[00:33:41]                   │ debg TestSubjects.click(mlAnalyticsCreateFirstButton)
[00:33:41]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateFirstButton"]') with timeout=10000
[00:33:41]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateFirstButton"]') with timeout=10000
[00:33:41]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyout)
[00:33:41]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyout"]') with timeout=120000
[00:33:42]                   └- ✓ pass  (373ms) "machine learning data frame analytics classification creation bank marketing loads the job creation flyout"
[00:33:42]                 └-> selects the job type
[00:33:42]                   └-> "before each" hook: global before each
[00:33:42]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:33:42]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=120000
[00:33:42]                   │ debg Find.selectValue('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]', option[value="classification"]')
[00:33:42]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:33:42]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:33:42]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:33:42]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:33:42]                   └- ✓ pass  (210ms) "machine learning data frame analytics classification creation bank marketing selects the job type"
[00:33:42]                 └-> inputs the job id
[00:33:42]                   └-> "before each" hook: global before each
[00:33:42]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutJobIdInput)
[00:33:42]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobIdInput"]') with timeout=120000
[00:33:42]                   │ debg TestSubjects.setValue(mlAnalyticsCreateJobFlyoutJobIdInput, bm_1_1584411021298)
[00:33:42]                   │ debg TestSubjects.click(mlAnalyticsCreateJobFlyoutJobIdInput)
[00:33:42]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobIdInput"]') with timeout=10000
[00:33:42]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobIdInput"]') with timeout=10000
[00:33:42]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobIdInput, value)
[00:33:42]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobIdInput)
[00:33:42]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobIdInput"]') with timeout=10000
[00:33:42]                   └- ✓ pass  (508ms) "machine learning data frame analytics classification creation bank marketing inputs the job id"
[00:33:42]                 └-> inputs the job description
[00:33:42]                   └-> "before each" hook: global before each
[00:33:42]                   │ debg TestSubjects.exists(mlDFAnalyticsJobCreationJobDescription)
[00:33:42]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlDFAnalyticsJobCreationJobDescription"]') with timeout=120000
[00:33:42]                   │ debg TestSubjects.setValue(mlDFAnalyticsJobCreationJobDescription, Classification job based on 'bank-marketing' dataset with dependentVariable 'y' and trainingPercent '20')
[00:33:42]                   │ debg TestSubjects.click(mlDFAnalyticsJobCreationJobDescription)
[00:33:42]                   │ debg Find.clickByCssSelector('[data-test-subj="mlDFAnalyticsJobCreationJobDescription"]') with timeout=10000
[00:33:42]                   │ debg Find.findByCssSelector('[data-test-subj="mlDFAnalyticsJobCreationJobDescription"]') with timeout=10000
[00:33:44]                   │ debg TestSubjects.getAttribute(mlDFAnalyticsJobCreationJobDescription, value)
[00:33:44]                   │ debg TestSubjects.find(mlDFAnalyticsJobCreationJobDescription)
[00:33:44]                   │ debg Find.findByCssSelector('[data-test-subj="mlDFAnalyticsJobCreationJobDescription"]') with timeout=10000
[00:33:44]                   └- ✓ pass  (1.3s) "machine learning data frame analytics classification creation bank marketing inputs the job description"
[00:33:44]                 └-> selects the source index
[00:33:44]                   └-> "before each" hook: global before each
[00:33:44]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutSourceIndexSelect > comboBoxInput)
[00:33:44]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutSourceIndexSelect"] [data-test-subj="comboBoxInput"]') with timeout=120000
[00:33:44]                   │ debg comboBox.set, comboBoxSelector: mlAnalyticsCreateJobFlyoutSourceIndexSelect > comboBoxInput
[00:33:44]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutSourceIndexSelect > comboBoxInput)
[00:33:44]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutSourceIndexSelect"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:33:44]                   │ debg comboBox.setElement, value: bank-marketing*
[00:33:44]                   │ debg comboBox.isOptionSelected, value: bank-marketing*
[00:33:46]                   │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:33:46]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:33:46]                   │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="bank-marketing*"]') with timeout=2500
[00:33:46]                   │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:33:46]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:33:49]                   │ debg --- retry.tryForTime error: [data-test-subj~="comboBoxOptionsList"] is not displayed
[00:33:49]                   │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlAnalyticsCreateJobFlyoutSourceIndexSelect > comboBoxInput
[00:33:49]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutSourceIndexSelect > comboBoxInput)
[00:33:49]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutSourceIndexSelect"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:33:50]                   └- ✓ pass  (5.7s) "machine learning data frame analytics classification creation bank marketing selects the source index"
[00:33:50]                 └-> inputs the destination index
[00:33:50]                   └-> "before each" hook: global before each
[00:33:50]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutDestinationIndexInput)
[00:33:50]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutDestinationIndexInput"]') with timeout=120000
[00:33:50]                   │ debg TestSubjects.setValue(mlAnalyticsCreateJobFlyoutDestinationIndexInput, dest_bm_1_1584411021298)
[00:33:50]                   │ debg TestSubjects.click(mlAnalyticsCreateJobFlyoutDestinationIndexInput)
[00:33:50]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutDestinationIndexInput"]') with timeout=10000
[00:33:50]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutDestinationIndexInput"]') with timeout=10000
[00:33:50]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutDestinationIndexInput, value)
[00:33:50]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutDestinationIndexInput)
[00:33:50]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutDestinationIndexInput"]') with timeout=10000
[00:33:50]                   └- ✓ pass  (456ms) "machine learning data frame analytics classification creation bank marketing inputs the destination index"
[00:33:50]                 └-> inputs the dependent variable
[00:33:50]                   └-> "before each" hook: global before each
[00:33:50]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutDependentVariableSelect > comboBoxInput)
[00:33:50]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutDependentVariableSelect"] [data-test-subj="comboBoxInput"]') with timeout=120000
[00:33:50]                   │ debg comboBox.set, comboBoxSelector: mlAnalyticsCreateJobFlyoutDependentVariableSelect > comboBoxInput
[00:33:50]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutDependentVariableSelect > comboBoxInput)
[00:33:50]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutDependentVariableSelect"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:33:50]                   │ debg comboBox.setElement, value: y
[00:33:50]                   │ debg comboBox.isOptionSelected, value: y
[00:33:52]                   │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:33:52]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:33:52]                   │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="y"]') with timeout=2500
[00:33:52]                   │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:33:52]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:33:55]                   │ debg --- retry.tryForTime error: [data-test-subj~="comboBoxOptionsList"] is not displayed
[00:33:55]                   │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlAnalyticsCreateJobFlyoutDependentVariableSelect > comboBoxInput
[00:33:55]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutDependentVariableSelect > comboBoxInput)
[00:33:55]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutDependentVariableSelect"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:33:56]                   └- ✓ pass  (5.5s) "machine learning data frame analytics classification creation bank marketing inputs the dependent variable"
[00:33:56]                 └-> inputs the training percent
[00:33:56]                   └-> "before each" hook: global before each
[00:33:56]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutTrainingPercentSlider)
[00:33:56]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutTrainingPercentSlider"]') with timeout=120000
[00:33:56]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutTrainingPercentSlider)
[00:33:56]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutTrainingPercentSlider"]') with timeout=10000
[00:33:56]                   │ debg --- retry.tryForTime error: slider value should have changed, but is still 80
[00:33:56]                   │ debg --- retry.tryForTime error: slider value should be '20' (got '70')
[00:33:57]                   │ debg --- retry.tryForTime error: slider value should have changed, but is still 70
[00:33:57]                   │ debg --- retry.tryForTime error: slider value should be '20' (got '60')
[00:33:58]                   │ debg --- retry.tryForTime error: slider value should have changed, but is still 60
[00:33:58]                   │ debg --- retry.tryForTime error: slider value should be '20' (got '50')
[00:33:59]                   │ debg --- retry.tryForTime error: slider value should have changed, but is still 50
[00:33:59]                   │ debg --- retry.tryForTime error: slider value should be '20' (got '40')
[00:34:00]                   │ debg --- retry.tryForTime error: slider value should have changed, but is still 40
[00:34:00]                   │ debg --- retry.tryForTime error: slider value should be '20' (got '30')
[00:34:01]                   │ debg --- retry.tryForTime error: slider value should have changed, but is still 30
[00:34:01]                   │ debg --- retry.tryForTime error: slider value should be '20' (got '20')
[00:34:02]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutTrainingPercentSlider, value)
[00:34:02]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutTrainingPercentSlider)
[00:34:02]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutTrainingPercentSlider"]') with timeout=10000
[00:34:02]                   └- ✓ pass  (6.2s) "machine learning data frame analytics classification creation bank marketing inputs the training percent"
[00:34:02]                 └-> inputs the model memory limit
[00:34:02]                   └-> "before each" hook: global before each
[00:34:02]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutModelMemoryInput)
[00:34:02]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutModelMemoryInput"]') with timeout=120000
[00:34:02]                   │ debg TestSubjects.setValue(mlAnalyticsCreateJobFlyoutModelMemoryInput, 105mb)
[00:34:02]                   │ debg TestSubjects.click(mlAnalyticsCreateJobFlyoutModelMemoryInput)
[00:34:02]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutModelMemoryInput"]') with timeout=10000
[00:34:02]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutModelMemoryInput"]') with timeout=10000
[00:34:02]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutModelMemoryInput, value)
[00:34:02]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutModelMemoryInput)
[00:34:02]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutModelMemoryInput"]') with timeout=10000
[00:34:02]                   └- ✓ pass  (294ms) "machine learning data frame analytics classification creation bank marketing inputs the model memory limit"
[00:34:02]                 └-> sets the create index pattern switch
[00:34:02]                   └-> "before each" hook: global before each
[00:34:02]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch)
[00:34:02]                   │ debg Find.existsByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch"]') with timeout=120000
[00:34:02]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch, aria-checked)
[00:34:02]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch)
[00:34:02]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch"]') with timeout=10000
[00:34:02]                   │ debg TestSubjects.click(mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch)
[00:34:02]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch"]') with timeout=10000
[00:34:02]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch"]') with timeout=10000
[00:34:02]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch, aria-checked)
[00:34:02]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch)
[00:34:02]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch"]') with timeout=10000
[00:34:02]                   └- ✓ pass  (171ms) "machine learning data frame analytics classification creation bank marketing sets the create index pattern switch"
[00:34:02]                 └-> creates the analytics job
[00:34:02]                   └-> "before each" hook: global before each
[00:34:02]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutCreateButton)
[00:34:02]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateButton"]') with timeout=120000
[00:34:02]                   │ debg TestSubjects.click(mlAnalyticsCreateJobFlyoutCreateButton)
[00:34:02]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateButton"]') with timeout=10000
[00:34:02]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateButton"]') with timeout=10000
[00:34:02]                   │ debg TestSubjects.missingOrFail(mlAnalyticsCreateJobFlyoutCreateButton)
[00:34:02]                   │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateButton"]') with timeout=2500
[00:34:02]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.ml-config] creating index, cause [auto(bulk api)], templates [.ml-config], shards [1]/[1], mappings [_doc]
[00:34:02]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] updating number_of_replicas to [0] for indices [.ml-config]
[00:34:02]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:34:02]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:34:02]                   │ info [o.e.x.m.MlInitializationService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] Created ML annotations index and aliases
[00:34:02]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.ml-config/yZORJ-LoTcetqnF0bwfEnA] update_mapping [_doc]
[00:34:02]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1], mappings [_doc]
[00:34:02]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:34:03]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutStartButton)
[00:34:03]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"]') with timeout=120000
[00:34:03]                   └- ✓ pass  (1.0s) "machine learning data frame analytics classification creation bank marketing creates the analytics job"
[00:34:03]                 └-> starts the analytics job
[00:34:03]                   └-> "before each" hook: global before each
[00:34:03]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutStartButton)
[00:34:03]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"]') with timeout=120000
[00:34:03]                   │ debg TestSubjects.click(mlAnalyticsCreateJobFlyoutStartButton)
[00:34:03]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"]') with timeout=10000
[00:34:03]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"]') with timeout=10000
[00:34:03]                   │ debg TestSubjects.missingOrFail(mlAnalyticsCreateJobFlyoutStartButton)
[00:34:03]                   │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"]') with timeout=2500
[00:34:04]                   │ERROR browser[SEVERE] http://localhost:6131/api/ml/data_frame/analytics/bm_1_1584411021298/_start - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:34:06]                   │ debg --- retry.tryForTime error: The element [data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"] was still present when it should have disappeared.
[00:34:06]                   │      Wait timed out after 2565ms
[00:34:06]                   │ debg TestSubjects.missingOrFail(mlAnalyticsCreateJobFlyoutStartButton)
[00:34:06]                   │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"]') with timeout=2500
[00:34:09]                   │ debg --- retry.tryForTime error: The element [data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"] was still present when it should have disappeared.
[00:34:09]                   │      Wait timed out after 2544ms
[00:34:09]                   │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/machine learning data frame analytics classification creation bank marketing starts the analytics job.png"
[00:34:10]                   │ info Current URL is: http://localhost:6131/app/ml#/data_frame_analytics?_g=(refreshInterval:(pause:!f,value:30000))
[00:34:10]                   │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/machine learning data frame analytics classification creation bank marketing starts the analytics job.html
[00:34:10]                   └- ✖ fail: "machine learning data frame analytics classification creation bank marketing starts the analytics job"
[00:34:10]                   │

Stack Trace

Error: retry.tryForTime timeout: TimeoutError: The element [data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"] was still present when it should have disappeared.
Wait timed out after 2544ms
    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/classification_creation·ts.machine learning data frame analytics classification creation bank marketing starts the analytics job

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:05:28]         └-: machine learning
[00:05:28]           └-> "before all" hook
[00:35:12]           └-: data frame analytics
[00:35:12]             └-> "before all" hook
[00:36:38]             └-: classification creation
[00:36:38]               └-> "before all" hook
[00:36:38]               └-> "before all" hook
[00:36:38]                 │ info [ml/bm_classification] Loading "mappings.json"
[00:36:38]                 │ info [ml/bm_classification] Loading "data.json.gz"
[00:36:38]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [bank-marketing] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:36:39]                 │ info [ml/bm_classification] Created index "bank-marketing"
[00:36:39]                 │ debg [ml/bm_classification] "bank-marketing" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:36:39]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.kibana_1/AnuIDYAgS8KOjHdaNVFiTg] deleting index
[00:36:39]                 │ info [o.e.c.m.MetaDataDeleteIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.kibana_2/SvWFvnHDQ5aMxs0bsZAIYA] deleting index
[00:36:39]                 │ info [ml/bm_classification] Deleted existing index [".kibana_2",".kibana_1"]
[00:36:39]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.kibana_1] creating index, cause [api], templates [], shards [1]/[0], mappings [_doc]
[00:36:39]                 │ info [ml/bm_classification] Created index ".kibana_1"
[00:36:39]                 │ debg [ml/bm_classification] ".kibana_1" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:36:40]                 │ info [ml/bm_classification] Indexed 9314 docs into "bank-marketing"
[00:36:40]                 │ info [ml/bm_classification] Indexed 5 docs into ".kibana_1"
[00:36:41]                 │ info Detected mapping change in "properties.case-workflow"
[00:36:41]                 │ info Creating index .kibana_2.
[00:36:41]                 │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:36:41]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] updating number_of_replicas to [0] for indices [.kibana_2]
[00:36:41]                 │ info Migrating .kibana_1 saved objects to .kibana_2
[00:36:41]                 │ debg Migrating saved objects space:default, telemetry:telemetry, config:7.0.0, index-pattern:5ef765b0-41b1-11ea-87af-5ba256dbe605, maps-telemetry:maps-telemetry
[00:36:41]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.kibana_2/xh-FDsAXSymNdIXWyiX2sA] update_mapping [_doc]
[00:36:41]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.kibana_2/xh-FDsAXSymNdIXWyiX2sA] update_mapping [_doc]
[00:36:41]                 │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.kibana_2/xh-FDsAXSymNdIXWyiX2sA] update_mapping [_doc]
[00:36:41]                 │ info Pointing alias .kibana to .kibana_2.
[00:36:41]                 │ info Finished in 239ms.
[00:36:41]               └-: bank marketing
[00:36:41]                 └-> "before all" hook
[00:36:41]                 └-> loads the data frame analytics page
[00:36:41]                   └-> "before each" hook: global before each
[00:36:41]                   │ debg navigating to ml url: http://localhost:6131/app/ml
[00:36:41]                   │ debg Navigate to: http://localhost:6131/app/ml
[00:36:42]                   │ debg ... sleep(700) start
[00:36:42]                   │ debg browser[INFO] http://localhost:6131/app/ml?_t=1584410857241 350 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:42]                   │
[00:36:42]                   │ debg browser[INFO] http://localhost:6131/bundles/app/ml/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:36:43]                   │ debg ... sleep(700) end
[00:36:43]                   │ debg returned from get, calling refresh
[00:36:43]                   │ debg browser[INFO] http://localhost:6131/app/ml?_t=1584410857241 350 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:43]                   │
[00:36:43]                   │ debg browser[INFO] http://localhost:6131/bundles/app/ml/bootstrap.js 9:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:36:44]                   │ debg currentUrl = http://localhost:6131/app/ml
[00:36:44]                   │          appUrl = http://localhost:6131/app/ml
[00:36:44]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:36:47]                   │ debg browser[INFO] http://localhost:6131/bundles/plugin/data/data.plugin.js 67:139970 "INFO: 2020-03-17T02:07:42Z
[00:36:47]                   │        Adding connection to http://localhost:6131/elasticsearch
[00:36:47]                   │
[00:36:47]                   │      "
[00:36:47]                   │ debg ... sleep(501) start
[00:36:48]                   │ debg ... sleep(501) end
[00:36:48]                   │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=(refreshInterval:(pause:!t,value:0))
[00:36:48]                   │ debg --- retry.try error: URL changed, waiting for it to settle
[00:36:48]                   │ debg ... sleep(501) start
[00:36:49]                   │ debg ... sleep(501) end
[00:36:49]                   │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=(refreshInterval:(pause:!t,value:0))
[00:36:49]                   │ debg TestSubjects.exists(statusPageContainer)
[00:36:49]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:36:51]                   │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:36:52]                   │ debg TestSubjects.click(~mlMainTab & ~dataFrameAnalytics)
[00:36:52]                   │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"]') with timeout=10000
[00:36:52]                   │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"]') with timeout=10000
[00:36:52]                   │ debg TestSubjects.exists(~mlMainTab & ~dataFrameAnalytics & ~selected)
[00:36:52]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="dataFrameAnalytics"][data-test-subj~="selected"]') with timeout=120000
[00:36:52]                   │ debg TestSubjects.exists(mlPageDataFrameAnalytics)
[00:36:52]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageDataFrameAnalytics"]') with timeout=120000
[00:36:52]                   │ debg TestSubjects.findAll(~mlSubTab)
[00:36:52]                   │ debg Find.allByCssSelector('[data-test-subj~="mlSubTab"]') with timeout=3
[00:36:52]                   └- ✓ pass  (11.1s) "machine learning data frame analytics classification creation bank marketing loads the data frame analytics page"
[00:36:52]                 └-> loads the job creation flyout
[00:36:52]                   └-> "before each" hook: global before each
[00:36:52]                   │ debg TestSubjects.exists(mlNoDataFrameAnalyticsFound)
[00:36:52]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlNoDataFrameAnalyticsFound"]') with timeout=2500
[00:36:52]                   │ debg TestSubjects.click(mlAnalyticsCreateFirstButton)
[00:36:52]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateFirstButton"]') with timeout=10000
[00:36:52]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateFirstButton"]') with timeout=10000
[00:36:52]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyout)
[00:36:52]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyout"]') with timeout=120000
[00:36:52]                   └- ✓ pass  (416ms) "machine learning data frame analytics classification creation bank marketing loads the job creation flyout"
[00:36:52]                 └-> selects the job type
[00:36:52]                   └-> "before each" hook: global before each
[00:36:52]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:36:52]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=120000
[00:36:52]                   │ debg Find.selectValue('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]', option[value="classification"]')
[00:36:52]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:36:53]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobTypeSelect, value)
[00:36:53]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobTypeSelect)
[00:36:53]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobTypeSelect"]') with timeout=10000
[00:36:53]                   └- ✓ pass  (312ms) "machine learning data frame analytics classification creation bank marketing selects the job type"
[00:36:53]                 └-> inputs the job id
[00:36:53]                   └-> "before each" hook: global before each
[00:36:53]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutJobIdInput)
[00:36:53]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobIdInput"]') with timeout=120000
[00:36:53]                   │ debg TestSubjects.setValue(mlAnalyticsCreateJobFlyoutJobIdInput, bm_1_1584408654695)
[00:36:53]                   │ debg TestSubjects.click(mlAnalyticsCreateJobFlyoutJobIdInput)
[00:36:53]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobIdInput"]') with timeout=10000
[00:36:53]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobIdInput"]') with timeout=10000
[00:36:53]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutJobIdInput, value)
[00:36:53]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutJobIdInput)
[00:36:53]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutJobIdInput"]') with timeout=10000
[00:36:53]                   └- ✓ pass  (495ms) "machine learning data frame analytics classification creation bank marketing inputs the job id"
[00:36:53]                 └-> inputs the job description
[00:36:53]                   └-> "before each" hook: global before each
[00:36:53]                   │ debg TestSubjects.exists(mlDFAnalyticsJobCreationJobDescription)
[00:36:53]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlDFAnalyticsJobCreationJobDescription"]') with timeout=120000
[00:36:53]                   │ debg TestSubjects.setValue(mlDFAnalyticsJobCreationJobDescription, Classification job based on 'bank-marketing' dataset with dependentVariable 'y' and trainingPercent '20')
[00:36:53]                   │ debg TestSubjects.click(mlDFAnalyticsJobCreationJobDescription)
[00:36:53]                   │ debg Find.clickByCssSelector('[data-test-subj="mlDFAnalyticsJobCreationJobDescription"]') with timeout=10000
[00:36:53]                   │ debg Find.findByCssSelector('[data-test-subj="mlDFAnalyticsJobCreationJobDescription"]') with timeout=10000
[00:36:55]                   │ debg TestSubjects.getAttribute(mlDFAnalyticsJobCreationJobDescription, value)
[00:36:55]                   │ debg TestSubjects.find(mlDFAnalyticsJobCreationJobDescription)
[00:36:55]                   │ debg Find.findByCssSelector('[data-test-subj="mlDFAnalyticsJobCreationJobDescription"]') with timeout=10000
[00:36:55]                   └- ✓ pass  (1.7s) "machine learning data frame analytics classification creation bank marketing inputs the job description"
[00:36:55]                 └-> selects the source index
[00:36:55]                   └-> "before each" hook: global before each
[00:36:55]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutSourceIndexSelect > comboBoxInput)
[00:36:55]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutSourceIndexSelect"] [data-test-subj="comboBoxInput"]') with timeout=120000
[00:36:55]                   │ debg comboBox.set, comboBoxSelector: mlAnalyticsCreateJobFlyoutSourceIndexSelect > comboBoxInput
[00:36:55]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutSourceIndexSelect > comboBoxInput)
[00:36:55]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutSourceIndexSelect"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:36:55]                   │ debg comboBox.setElement, value: bank-marketing*
[00:36:55]                   │ debg comboBox.isOptionSelected, value: bank-marketing*
[00:36:57]                   │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:36:57]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:36:57]                   │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="bank-marketing*"]') with timeout=2500
[00:36:58]                   │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:36:58]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:37:00]                   │ debg --- retry.tryForTime error: [data-test-subj~="comboBoxOptionsList"] is not displayed
[00:37:01]                   │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlAnalyticsCreateJobFlyoutSourceIndexSelect > comboBoxInput
[00:37:01]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutSourceIndexSelect > comboBoxInput)
[00:37:01]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutSourceIndexSelect"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:37:01]                   └- ✓ pass  (5.8s) "machine learning data frame analytics classification creation bank marketing selects the source index"
[00:37:01]                 └-> inputs the destination index
[00:37:01]                   └-> "before each" hook: global before each
[00:37:01]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutDestinationIndexInput)
[00:37:01]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutDestinationIndexInput"]') with timeout=120000
[00:37:01]                   │ debg TestSubjects.setValue(mlAnalyticsCreateJobFlyoutDestinationIndexInput, dest_bm_1_1584408654695)
[00:37:01]                   │ debg TestSubjects.click(mlAnalyticsCreateJobFlyoutDestinationIndexInput)
[00:37:01]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutDestinationIndexInput"]') with timeout=10000
[00:37:01]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutDestinationIndexInput"]') with timeout=10000
[00:37:01]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutDestinationIndexInput, value)
[00:37:01]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutDestinationIndexInput)
[00:37:01]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutDestinationIndexInput"]') with timeout=10000
[00:37:01]                   └- ✓ pass  (489ms) "machine learning data frame analytics classification creation bank marketing inputs the destination index"
[00:37:01]                 └-> inputs the dependent variable
[00:37:01]                   └-> "before each" hook: global before each
[00:37:01]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutDependentVariableSelect > comboBoxInput)
[00:37:01]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutDependentVariableSelect"] [data-test-subj="comboBoxInput"]') with timeout=120000
[00:37:01]                   │ debg comboBox.set, comboBoxSelector: mlAnalyticsCreateJobFlyoutDependentVariableSelect > comboBoxInput
[00:37:01]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutDependentVariableSelect > comboBoxInput)
[00:37:01]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutDependentVariableSelect"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:37:01]                   │ debg comboBox.setElement, value: y
[00:37:01]                   │ debg comboBox.isOptionSelected, value: y
[00:37:03]                   │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:37:03]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:37:03]                   │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="y"]') with timeout=2500
[00:37:04]                   │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:37:04]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:37:06]                   │ debg --- retry.tryForTime error: [data-test-subj~="comboBoxOptionsList"] is not displayed
[00:37:07]                   │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlAnalyticsCreateJobFlyoutDependentVariableSelect > comboBoxInput
[00:37:07]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutDependentVariableSelect > comboBoxInput)
[00:37:07]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutDependentVariableSelect"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:37:07]                   └- ✓ pass  (5.6s) "machine learning data frame analytics classification creation bank marketing inputs the dependent variable"
[00:37:07]                 └-> inputs the training percent
[00:37:07]                   └-> "before each" hook: global before each
[00:37:07]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutTrainingPercentSlider)
[00:37:07]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutTrainingPercentSlider"]') with timeout=120000
[00:37:07]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutTrainingPercentSlider)
[00:37:07]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutTrainingPercentSlider"]') with timeout=10000
[00:37:07]                   │ debg --- retry.tryForTime error: slider value should have changed, but is still 80
[00:37:07]                   │ debg --- retry.tryForTime error: slider value should be '20' (got '70')
[00:37:08]                   │ debg --- retry.tryForTime error: slider value should have changed, but is still 70
[00:37:08]                   │ debg --- retry.tryForTime error: slider value should be '20' (got '60')
[00:37:09]                   │ debg --- retry.tryForTime error: slider value should have changed, but is still 60
[00:37:09]                   │ debg --- retry.tryForTime error: slider value should be '20' (got '50')
[00:37:10]                   │ debg --- retry.tryForTime error: slider value should have changed, but is still 50
[00:37:10]                   │ debg --- retry.tryForTime error: slider value should be '20' (got '40')
[00:37:11]                   │ debg --- retry.tryForTime error: slider value should have changed, but is still 40
[00:37:11]                   │ debg --- retry.tryForTime error: slider value should be '20' (got '30')
[00:37:12]                   │ debg --- retry.tryForTime error: slider value should have changed, but is still 30
[00:37:12]                   │ debg --- retry.tryForTime error: slider value should be '20' (got '20')
[00:37:13]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutTrainingPercentSlider, value)
[00:37:13]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutTrainingPercentSlider)
[00:37:13]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutTrainingPercentSlider"]') with timeout=10000
[00:37:13]                   └- ✓ pass  (6.2s) "machine learning data frame analytics classification creation bank marketing inputs the training percent"
[00:37:13]                 └-> inputs the model memory limit
[00:37:13]                   └-> "before each" hook: global before each
[00:37:13]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutModelMemoryInput)
[00:37:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutModelMemoryInput"]') with timeout=120000
[00:37:13]                   │ debg TestSubjects.setValue(mlAnalyticsCreateJobFlyoutModelMemoryInput, 105mb)
[00:37:13]                   │ debg TestSubjects.click(mlAnalyticsCreateJobFlyoutModelMemoryInput)
[00:37:13]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutModelMemoryInput"]') with timeout=10000
[00:37:13]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutModelMemoryInput"]') with timeout=10000
[00:37:13]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutModelMemoryInput, value)
[00:37:13]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutModelMemoryInput)
[00:37:13]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutModelMemoryInput"]') with timeout=10000
[00:37:13]                   └- ✓ pass  (301ms) "machine learning data frame analytics classification creation bank marketing inputs the model memory limit"
[00:37:13]                 └-> sets the create index pattern switch
[00:37:13]                   └-> "before each" hook: global before each
[00:37:13]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch)
[00:37:13]                   │ debg Find.existsByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch"]') with timeout=120000
[00:37:13]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch, aria-checked)
[00:37:13]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch)
[00:37:13]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch"]') with timeout=10000
[00:37:13]                   │ debg TestSubjects.click(mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch)
[00:37:13]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch"]') with timeout=10000
[00:37:13]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch"]') with timeout=10000
[00:37:13]                   │ debg TestSubjects.getAttribute(mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch, aria-checked)
[00:37:13]                   │ debg TestSubjects.find(mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch)
[00:37:13]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateIndexPatternSwitch"]') with timeout=10000
[00:37:13]                   └- ✓ pass  (175ms) "machine learning data frame analytics classification creation bank marketing sets the create index pattern switch"
[00:37:13]                 └-> creates the analytics job
[00:37:13]                   └-> "before each" hook: global before each
[00:37:13]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutCreateButton)
[00:37:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateButton"]') with timeout=120000
[00:37:13]                   │ debg TestSubjects.click(mlAnalyticsCreateJobFlyoutCreateButton)
[00:37:13]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateButton"]') with timeout=10000
[00:37:13]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateButton"]') with timeout=10000
[00:37:14]                   │ debg TestSubjects.missingOrFail(mlAnalyticsCreateJobFlyoutCreateButton)
[00:37:14]                   │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutCreateButton"]') with timeout=2500
[00:37:14]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.ml-config] creating index, cause [auto(bulk api)], templates [.ml-config], shards [1]/[1], mappings [_doc]
[00:37:14]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] updating number_of_replicas to [0] for indices [.ml-config]
[00:37:14]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:37:14]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:37:14]                   │ info [o.e.x.m.MlInitializationService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] Created ML annotations index and aliases
[00:37:14]                   │ info [o.e.c.m.MetaDataMappingService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.ml-config/89FEEN_kSWih1qmtHBU5eA] update_mapping [_doc]
[00:37:14]                   │ info [o.e.c.m.MetaDataCreateIndexService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1], mappings [_doc]
[00:37:14]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-centos-tests-xl-1584406619929461747] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:37:14]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutStartButton)
[00:37:14]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"]') with timeout=120000
[00:37:14]                   └- ✓ pass  (1.0s) "machine learning data frame analytics classification creation bank marketing creates the analytics job"
[00:37:14]                 └-> starts the analytics job
[00:37:14]                   └-> "before each" hook: global before each
[00:37:14]                   │ debg TestSubjects.exists(mlAnalyticsCreateJobFlyoutStartButton)
[00:37:14]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"]') with timeout=120000
[00:37:14]                   │ debg TestSubjects.click(mlAnalyticsCreateJobFlyoutStartButton)
[00:37:14]                   │ debg Find.clickByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"]') with timeout=10000
[00:37:14]                   │ debg Find.findByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"]') with timeout=10000
[00:37:15]                   │ debg TestSubjects.missingOrFail(mlAnalyticsCreateJobFlyoutStartButton)
[00:37:15]                   │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"]') with timeout=2500
[00:37:15]                   │ERROR browser[SEVERE] http://localhost:6131/api/ml/data_frame/analytics/bm_1_1584408654695/_start - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:37:17]                   │ debg --- retry.tryForTime error: The element [data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"] was still present when it should have disappeared.
[00:37:17]                   │      Wait timed out after 2582ms
[00:37:18]                   │ debg TestSubjects.missingOrFail(mlAnalyticsCreateJobFlyoutStartButton)
[00:37:18]                   │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"]') with timeout=2500
[00:37:20]                   │ debg --- retry.tryForTime error: The element [data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"] was still present when it should have disappeared.
[00:37:20]                   │      Wait timed out after 2590ms
[00:37:21]                   │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/machine learning data frame analytics classification creation bank marketing starts the analytics job.png"
[00:37:21]                   │ info Current URL is: http://localhost:6131/app/ml#/data_frame_analytics?_g=(refreshInterval:(pause:!f,value:30000))
[00:37:22]                   │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/machine learning data frame analytics classification creation bank marketing starts the analytics job.html
[00:37:22]                   └- ✖ fail: "machine learning data frame analytics classification creation bank marketing starts the analytics job"
[00:37:22]                   │

Stack Trace

Error: retry.tryForTime timeout: TimeoutError: The element [data-test-subj="mlAnalyticsCreateJobFlyoutStartButton"] was still present when it should have disappeared.
Wait timed out after 2590ms
    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Watcher UI -- painless triple quoted """ scripts fails to be valid (JSON)
4 participants