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

[Ingest Node Pipelines] Show flyout after editing or creating a pipeline #64409

Conversation

jloleysens
Copy link
Contributor

Summary

Adds functionality to open the flyout displaying the pipeline that was just edited or created.

How to test

  1. Open ingest node pipelines
  2. Create or clone a pipeline
  3. The flyout should be open

Notes

Added a query param ?pipeline=pipeline_name to signal which pipeline should be open in the flyout.

open-flyout

@jloleysens jloleysens added v8.0.0 Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more release_note:skip Skip the PR/issue when compiling release notes v7.8.0 Feature:Ingest Node Pipelines Ingest node pipelines management labels Apr 24, 2020
@jloleysens jloleysens requested a review from a team as a code owner April 24, 2020 08:54
@elasticmachine
Copy link
Contributor

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

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.

Thanks @jloleysens for adding this functionality! Code LGTM. Tested locally.

One suggestion: If the pipeline in the query doesn't exist, it might be nice to still open the flyout, but render an error message. I believe we follow this behavior in some of our other apps.

…bana into ingest-node-pipeline/open-flyout-create-edit

* 'feature/ingest-node-pipelines' of github.com:elastic/kibana: (116 commits)
  [Ingest Node Pipelines] More lenient treatment of on-failure value (elastic#64411)
  Report Deletion via UI- functional test (elastic#64031)
  Bump handlebars dependency from 4.5.3 to 4.7.6 (elastic#64402)
  [Uptime] Update TLS settings (elastic#64111)
  [alerting] removes usage of any throughout Alerting Services code (elastic#64161)
  [CANVAS] Moves notify to a canvas service (elastic#63268)
  [Canvas] Misc NP Stuff (elastic#63703)
  update apm index pattern (elastic#64232)
  Task/hostlist pagination (elastic#63722)
  [NP] Vega migration (elastic#63849)
  Move ensureDefaultIndexPattern into data plugin (elastic#63100)
  [Fleet] Fix agent status count to not include unenrolled agents (elastic#64106)
  Migrate graph_workspace saved object registration to Kibana platform (elastic#64157)
  Index pattern management UI -> TypeScript and New Platform Ready (edit_index_pattern) (elastic#64184)
  [ML] EuiDataGrid ml/transform components. (elastic#63447)
  [ML] Moving to kibana capabilities (elastic#64057)
  Move input_control_vis into NP (elastic#63333)
  remove reference to local application service in graph (elastic#64288)
  KQL removes leading zero and breaks query (elastic#62748)
  [FieldFormats] Cleanup: rename IFieldFormatType -> FieldFormatInstanceType (elastic#64193)
  ...
Copied from CCR
@jloleysens
Copy link
Contributor Author

@alisonelizabeth I added the not found flyout (added some complexity). Would you mind taking another look? I copied the flyout from CCR.

@jloleysens
Copy link
Contributor Author

(feel free to merge if you are happy!)

@alisonelizabeth
Copy link
Contributor

alisonelizabeth commented Apr 27, 2020

Thanks, @jloleysens! LGTM.

I pushed two minor changes to your branch - hope that's ok! I will go ahead and merge once CI is green.

I changed the not_found_flyout to use EuiCallOut and added a title.

Screen Shot 2020-04-27 at 10 29 07 AM

I also fixed a small bug. The query wasn't added when clicking on a pipeline from the table. So, if you refreshed the page, the flyout would no longer be present. Or, if you went through the creation flow, then clicked on a different pipeline, refreshed the page, the wrong details would be displayed.

@alisonelizabeth
Copy link
Contributor

@jloleysens quick update: It looks like eui might have introduced some TS changes to the table component causing the type check to fail (I don't think it's related to my specific changes). I didn't get a chance to fix. Also, I realized we probably also want to remove the query string if the user closes the flyout. Do you think you could take a look when you get back?

@jloleysens
Copy link
Contributor Author

@alisonelizabeth

TS changes to the table component causing the type check

Thanks for the update on this! I think we should be able to address on the feature branch.

I've added the functionality to clear the path when closing the flyout. Would you mind taking another look?

@jloleysens
Copy link
Contributor Author

I've added the functionality to clear the path when closing the flyout

Good catch BTW.

history.push(encodeURI(`${BASE_PATH}/create/${encodeURIComponent(name)}`));
};

const goHome = () => {
setShowFlyout(false);
history.push(encodeURI(BASE_PATH));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I saw that you added encodeURI to the above calls to history.push so I added here too, however I am not sure that they're necessary (if i'm not mistaken). the base path should hopefully be URI safe, as a nit I would say we can remove them.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, good point. I think the base path should be safe as well.

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 changes LGTM. Thanks! I did not test again.

history.push(encodeURI(`${BASE_PATH}/create/${encodeURIComponent(name)}`));
};

const goHome = () => {
setShowFlyout(false);
history.push(encodeURI(BASE_PATH));
Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah, good point. I think the base path should be safe as well.

Already using encodingURIComponent for unsafe string.
@jloleysens jloleysens merged commit 6dbdf06 into elastic:feature/ingest-node-pipelines Apr 28, 2020
@jloleysens jloleysens deleted the ingest-node-pipeline/open-flyout-create-edit branch April 28, 2020 13:36
@kibanamachine
Copy link
Contributor

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/machine_learning/anomaly_detection/single_metric_job·ts.machine learning anomaly detection single metric job creation displays details for the created job in the job list

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-1588081036150344758] added 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-1588081036150344758] added 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-1588081036150344758] added 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-1588081036150344758] added 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-1588081036150344758] 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-1588081036150344758] added user [ml_viewer]
[00:00:00]             │ debg created user ml_viewer
[00:00:00]             │ debg creating user ml_unauthorized
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] added user [ml_unauthorized]
[00:00:01]             │ debg created user ml_unauthorized
[00:03:20]           └-: anomaly detection
[00:03:20]             └-> "before all" hook
[00:03:20]             └-: single metric
[00:03:20]               └-> "before all" hook
[00:03:20]               └-> "before all" hook
[00:03:20]                 │ info [ml/farequote] Loading "mappings.json"
[00:03:20]                 │ info [ml/farequote] Loading "data.json.gz"
[00:03:20]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] applying create index request using v1 templates []
[00:03:20]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [ft_farequote] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:03:20]                 │ info [ml/farequote] Created index "ft_farequote"
[00:03:20]                 │ debg [ml/farequote] "ft_farequote" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:03:30]                 │ info progress: 69001
[00:03:32]                 │ info [ml/farequote] Indexed 86274 docs into "ft_farequote"
[00:03:32]                 │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:03:32]                 │ debg  > Not found
[00:03:32]                 │ debg Creating index pattern with title 'ft_farequote' and time field '@timestamp'
[00:03:32]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.kibana_1/YcHTx3kVQ9WB-_6F7qJNSQ] update_mapping [_doc]
[00:03:33]                 │ debg  > Created with id '80dbdab0-895c-11ea-a540-458a7f5ddc26'
[00:03:33]                 │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:03:34]                 │ debg Creating calendar with id 'wizard-test-calendar_1588083883794'...
[00:03:34]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] applying create index request using v1 templates [.ml-meta]
[00:03:34]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-meta] creating index, cause [auto(bulk api)], templates [.ml-meta], shards [1]/[1], mappings [_doc]
[00:03:34]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] updating number_of_replicas to [0] for indices [.ml-meta]
[00:03:34]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] applying create index request using v1 templates []
[00:03:34]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:03:34]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:03:34]                 │ info [o.e.x.m.MlInitializationService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] Created ML annotations index and aliases
[00:03:34]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-meta/-5_IaqogTGOR99Wju7Ey4g] update_mapping [_doc]
[00:03:34]                 │ debg Waiting up to 30000ms for 'wizard-test-calendar_1588083883794' to be created...
[00:03:34]                 │ debg SecurityPage.forceLogout
[00:03:34]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:03:34]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:03:35]                 │ debg Redirecting to /logout to force the logout
[00:03:35]                 │ debg Waiting on the login form to appear
[00:03:35]                 │ debg Waiting up to 100000ms for login form...
[00:03:35]                 │ debg browser[INFO] http://localhost:6131/logout?_t=1588084100285 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:03:35]                 │
[00:03:35]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:35]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:03:39]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:03:40]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-28T14:28:25Z
[00:03:40]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:03:40]                 │
[00:03:40]                 │      "
[00:03:40]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:03:43]                 │ debg browser[INFO] http://localhost:6131/login?_t=1588084100285 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:03:43]                 │
[00:03:43]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:43]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:03:44]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-28T14:28:29Z
[00:03:44]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:03:44]                 │
[00:03:44]                 │      "
[00:03:44]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:03:45]                 │ debg navigating to login url: http://localhost:6131/login
[00:03:45]                 │ debg navigate to: http://localhost:6131/login
[00:03:45]                 │ debg browser[INFO] http://localhost:6131/login?_t=1588084110334 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:03:45]                 │
[00:03:45]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:45]                 │ debg ... sleep(700) start
[00:03:46]                 │ debg ... sleep(700) end
[00:03:46]                 │ debg returned from get, calling refresh
[00:03:46]                 │ debg browser[INFO] http://localhost:6131/login?_t=1588084110334 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:03:46]                 │
[00:03:46]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:46]                 │ debg currentUrl = http://localhost:6131/login
[00:03:46]                 │          appUrl = http://localhost:6131/login
[00:03:46]                 │ debg TestSubjects.find(kibanaChrome)
[00:03:46]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:03:49]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-28T14:28:34Z
[00:03:49]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:03:49]                 │
[00:03:49]                 │      "
[00:03:49]                 │ debg ... sleep(501) start
[00:03:50]                 │ debg ... sleep(501) end
[00:03:50]                 │ debg in navigateTo url = http://localhost:6131/login
[00:03:50]                 │ debg TestSubjects.exists(statusPageContainer)
[00:03:50]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:03:52]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:03:53]                 │ debg TestSubjects.setValue(loginUsername, ml_poweruser)
[00:03:53]                 │ debg TestSubjects.click(loginUsername)
[00:03:53]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:03:53]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:03:53]                 │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:03:53]                 │ debg TestSubjects.click(loginPassword)
[00:03:53]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:03:53]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:03:54]                 │ debg TestSubjects.click(loginSubmit)
[00:03:54]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:03:54]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:03:54]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:03:59]                 │ debg browser[INFO] http://localhost:6131/app/kibana 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:03:59]                 │
[00:03:59]                 │ debg browser[INFO] http://localhost:6131/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:03:59]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-28T14:28:43Z
[00:03:59]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:03:59]                 │
[00:03:59]                 │      "
[00:03:59]                 │ debg Finished login process currentUrl = http://localhost:6131/app/kibana#/home
[00:03:59]                 │ debg Waiting up to 20000ms for logout button visible...
[00:03:59]                 │ debg TestSubjects.exists(userMenuButton)
[00:03:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:03:59]                 │ debg TestSubjects.exists(userMenu)
[00:03:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:04:02]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:04:02]                 │ debg TestSubjects.click(userMenuButton)
[00:04:02]                 │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:04:02]                 │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:04:03]                 │ debg Waiting up to 20000ms for user menu opened...
[00:04:03]                 │ debg TestSubjects.exists(userMenu)
[00:04:03]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:04:03]                 │ debg TestSubjects.exists(userMenu > logoutLink)
[00:04:03]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:04:03]               └-> job creation loads the job management page
[00:04:03]                 └-> "before each" hook: global before each
[00:04:03]                 │ debg navigating to ml url: http://localhost:6131/app/ml
[00:04:03]                 │ debg navigate to: http://localhost:6131/app/ml
[00:04:03]                 │ debg browser[INFO] http://localhost:6131/app/ml?_t=1588084128327 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:04:03]                 │
[00:04:03]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:03]                 │ debg ... sleep(700) start
[00:04:04]                 │ debg ... sleep(700) end
[00:04:04]                 │ debg returned from get, calling refresh
[00:04:04]                 │ debg browser[INFO] http://localhost:6131/app/ml?_t=1588084128327 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:04:04]                 │
[00:04:04]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:04]                 │ debg currentUrl = http://localhost:6131/app/ml
[00:04:04]                 │          appUrl = http://localhost:6131/app/ml
[00:04:04]                 │ debg TestSubjects.find(kibanaChrome)
[00:04:04]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:04:08]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-28T14:28:52Z
[00:04:08]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:04:08]                 │
[00:04:08]                 │      "
[00:04:08]                 │ debg ... sleep(501) start
[00:04:08]                 │ debg ... sleep(501) end
[00:04:08]                 │ debg in navigateTo url = http://localhost:6131/app/ml#/overview
[00:04:08]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[00:04:09]                 │ debg ... sleep(501) start
[00:04:09]                 │ debg ... sleep(501) end
[00:04:09]                 │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=%28refreshInterval%3A%28pause%3A%21t%2Cvalue%3A0%29%29
[00:04:09]                 │ debg --- retry.try failed again with the same message...
[00:04:10]                 │ debg ... sleep(501) start
[00:04:10]                 │ debg ... sleep(501) end
[00:04:10]                 │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=%28refreshInterval%3A%28pause%3A%21t%2Cvalue%3A0%29%29
[00:04:10]                 │ debg TestSubjects.exists(statusPageContainer)
[00:04:10]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:04:13]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:04:13]                 │ debg TestSubjects.exists(mlPageOverview)
[00:04:13]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageOverview"]') with timeout=2000
[00:04:13]                 │ debg TestSubjects.click(~mlMainTab & ~anomalyDetection)
[00:04:13]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:04:13]                 │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:04:14]                 │ debg TestSubjects.exists(~mlMainTab & ~anomalyDetection & ~selected)
[00:04:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"][data-test-subj~="selected"]') with timeout=120000
[00:04:14]                 │ debg TestSubjects.exists(mlPageJobManagement)
[00:04:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobManagement"]') with timeout=120000
[00:04:14]                 │ debg TestSubjects.findAll(~mlSubTab)
[00:04:14]                 │ debg Find.allByCssSelector('[data-test-subj~="mlSubTab"]') with timeout=3
[00:04:14]                 │ debg TestSubjects.exists(~mlSubTab&~jobManagement)
[00:04:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"]') with timeout=1000
[00:04:14]                 │ debg TestSubjects.exists(~mlSubTab&~anomalyExplorer)
[00:04:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="anomalyExplorer"]') with timeout=1000
[00:04:14]                 │ debg TestSubjects.exists(~mlSubTab&~singleMetricViewer)
[00:04:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="singleMetricViewer"]') with timeout=1000
[00:04:14]                 │ debg TestSubjects.exists(~mlSubTab&~settings)
[00:04:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="settings"]') with timeout=1000
[00:04:14]                 │ debg TestSubjects.click(~mlSubTab & ~jobManagement)
[00:04:14]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"]') with timeout=10000
[00:04:14]                 │ debg Find.findByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"]') with timeout=10000
[00:04:15]                 │ debg TestSubjects.exists(~mlSubTab & ~jobManagement & ~selected)
[00:04:15]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"][data-test-subj~="selected"]') with timeout=120000
[00:04:15]                 │ debg TestSubjects.exists(mlPageJobManagement)
[00:04:15]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobManagement"]') with timeout=120000
[00:04:15]                 └- ✓ pass  (11.9s) "machine learning anomaly detection single metric job creation loads the job management page"
[00:04:15]               └-> job creation loads the new job source selection page
[00:04:15]                 └-> "before each" hook: global before each
[00:04:15]                 │ debg TestSubjects.clickWhenNotDisabled(mlCreateNewJobButton)
[00:04:15]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlCreateNewJobButton"]') with timeout=10000
[00:04:15]                 │ debg Find.findByCssSelector('[data-test-subj="mlCreateNewJobButton"]') with timeout=10000
[00:04:15]                 │ debg TestSubjects.exists(mlPageSourceSelection)
[00:04:15]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageSourceSelection"]') with timeout=120000
[00:04:15]                 └- ✓ pass  (610ms) "machine learning anomaly detection single metric job creation loads the new job source selection page"
[00:04:15]               └-> job creation loads the job type selection page
[00:04:15]                 └-> "before each" hook: global before each
[00:04:15]                 │ debg TestSubjects.setValue(savedObjectFinderSearchInput, ft_farequote)
[00:04:15]                 │ debg TestSubjects.click(savedObjectFinderSearchInput)
[00:04:15]                 │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:04:15]                 │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:04:15]                 │ debg TestSubjects.exists(savedObjectTitleft_farequote)
[00:04:15]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="savedObjectTitleft_farequote"]') with timeout=120000
[00:04:16]                 │ debg TestSubjects.clickWhenNotDisabled(savedObjectTitleft_farequote)
[00:04:16]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="savedObjectTitleft_farequote"]') with timeout=10000
[00:04:16]                 │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitleft_farequote"]') with timeout=10000
[00:04:16]                 │ debg TestSubjects.exists(mlPageJobTypeSelection)
[00:04:16]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobTypeSelection"]') with timeout=10000
[00:04:18]                 └- ✓ pass  (2.7s) "machine learning anomaly detection single metric job creation loads the job type selection page"
[00:04:18]               └-> job creation loads the single metric job wizard page
[00:04:18]                 └-> "before each" hook: global before each
[00:04:18]                 │ debg TestSubjects.clickWhenNotDisabled(mlJobTypeLinkSingleMetricJob)
[00:04:18]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlJobTypeLinkSingleMetricJob"]') with timeout=10000
[00:04:18]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobTypeLinkSingleMetricJob"]') with timeout=10000
[00:04:18]                 │ debg TestSubjects.exists(mlPageJobWizard single_metric)
[00:04:18]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobWizard single_metric"]') with timeout=120000
[00:04:19]                 └- ✓ pass  (879ms) "machine learning anomaly detection single metric job creation loads the single metric job wizard page"
[00:04:19]               └-> job creation displays the time range step
[00:04:19]                 └-> "before each" hook: global before each
[00:04:19]                 │ debg TestSubjects.exists(mlJobWizardStepTitleTimeRange)
[00:04:19]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardStepTitleTimeRange"]') with timeout=5000
[00:04:19]                 └- ✓ pass  (32ms) "machine learning anomaly detection single metric job creation displays the time range step"
[00:04:19]               └-> job creation sets the timerange
[00:04:19]                 └-> "before each" hook: global before each
[00:04:19]                 │ debg TestSubjects.clickWhenNotDisabled(mlButtonUseFullData)
[00:04:19]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlButtonUseFullData"]') with timeout=10000
[00:04:19]                 │ debg Find.findByCssSelector('[data-test-subj="mlButtonUseFullData"]') with timeout=10000
[00:04:19]                 │ debg TestSubjects.find(mlJobWizardDateRange)
[00:04:19]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardDateRange"]') with timeout=10000
[00:04:19]                 │ debg --- retry.tryForTime error: expected { startDate: 'Apr 28, 2020 @ 14:14:04.247',
[00:04:19]                 │        endDate: 'Feb 11, 2016 @ 23:59:54.000' } to sort of equal { startDate: 'Feb 7, 2016 @ 00:00:00.000',
[00:04:19]                 │        endDate: 'Feb 11, 2016 @ 23:59:54.000' }
[00:04:20]                 │ debg TestSubjects.find(mlJobWizardDateRange)
[00:04:20]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardDateRange"]') with timeout=10000
[00:04:20]                 └- ✓ pass  (1.2s) "machine learning anomaly detection single metric job creation sets the timerange"
[00:04:20]               └-> job creation displays the event rate chart
[00:04:20]                 └-> "before each" hook: global before each
[00:04:20]                 │ debg TestSubjects.exists(~mlEventRateChart)
[00:04:20]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlEventRateChart"]') with timeout=120000
[00:04:20]                 │ debg TestSubjects.exists(mlEventRateChart withData)
[00:04:20]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlEventRateChart withData"]') with timeout=120000
[00:04:20]                 └- ✓ pass  (60ms) "machine learning anomaly detection single metric job creation displays the event rate chart"
[00:04:20]               └-> job creation displays the pick fields step
[00:04:20]                 └-> "before each" hook: global before each
[00:04:20]                 │ debg TestSubjects.exists(mlJobWizardNavButtonNext)
[00:04:20]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=120000
[00:04:20]                 │ debg TestSubjects.clickWhenNotDisabled(mlJobWizardNavButtonNext)
[00:04:20]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:04:20]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:04:20]                 │ debg TestSubjects.exists(mlJobWizardStepTitlePickFields)
[00:04:20]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardStepTitlePickFields"]') with timeout=5000
[00:04:20]                 └- ✓ pass  (412ms) "machine learning anomaly detection single metric job creation displays the pick fields step"
[00:04:20]               └-> job creation selects field and aggregation
[00:04:20]                 └-> "before each" hook: global before each
[00:04:20]                 │ debg TestSubjects.exists(mlJobWizardAggSelection > comboBoxInput)
[00:04:20]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAggSelection"] [data-test-subj="comboBoxInput"]') with timeout=120000
[00:04:21]                 │ debg comboBox.set, comboBoxSelector: mlJobWizardAggSelection > comboBoxInput
[00:04:21]                 │ debg TestSubjects.find(mlJobWizardAggSelection > comboBoxInput)
[00:04:21]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardAggSelection"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:04:21]                 │ debg comboBox.setElement, value: Mean(responsetime)
[00:04:21]                 │ debg comboBox.isOptionSelected, value: Mean(responsetime)
[00:04:23]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:04:23]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:04:23]                 │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="Mean(responsetime)"]') with timeout=2500
[00:04:23]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:04:23]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:04:26]                 │ debg --- retry.tryForTime error: [data-test-subj~="comboBoxOptionsList"] is not displayed
[00:04:26]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobWizardAggSelection > comboBoxInput
[00:04:26]                 │ debg TestSubjects.find(mlJobWizardAggSelection > comboBoxInput)
[00:04:26]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardAggSelection"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:04:27]                 └- ✓ pass  (6.0s) "machine learning anomaly detection single metric job creation selects field and aggregation"
[00:04:27]               └-> job creation inputs the bucket span
[00:04:27]                 └-> "before each" hook: global before each
[00:04:27]                 │ debg TestSubjects.exists(mlJobWizardInputBucketSpan)
[00:04:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardInputBucketSpan"]') with timeout=120000
[00:04:27]                 │ debg TestSubjects.setValueWithChecks(mlJobWizardInputBucketSpan, 30m)
[00:04:27]                 │ debg TestSubjects.click(mlJobWizardInputBucketSpan)
[00:04:27]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobWizardInputBucketSpan"]') with timeout=10000
[00:04:27]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardInputBucketSpan"]') with timeout=10000
[00:04:28]                 │ debg TestSubjects.getAttribute(mlJobWizardInputBucketSpan, value)
[00:04:28]                 │ debg TestSubjects.find(mlJobWizardInputBucketSpan)
[00:04:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardInputBucketSpan"]') with timeout=10000
[00:04:28]                 └- ✓ pass  (1.3s) "machine learning anomaly detection single metric job creation inputs the bucket span"
[00:04:28]               └-> job creation displays the job details step
[00:04:28]                 └-> "before each" hook: global before each
[00:04:28]                 │ debg TestSubjects.exists(mlJobWizardNavButtonNext)
[00:04:28]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=120000
[00:04:28]                 │ debg TestSubjects.clickWhenNotDisabled(mlJobWizardNavButtonNext)
[00:04:28]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:04:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:04:28]                 │ debg TestSubjects.exists(mlJobWizardStepTitleJobDetails)
[00:04:28]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardStepTitleJobDetails"]') with timeout=5000
[00:04:28]                 └- ✓ pass  (676ms) "machine learning anomaly detection single metric job creation displays the job details step"
[00:04:28]               └-> job creation inputs the job id
[00:04:28]                 └-> "before each" hook: global before each
[00:04:28]                 │ debg TestSubjects.exists(mlJobWizardInputJobId)
[00:04:28]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardInputJobId"]') with timeout=120000
[00:04:29]                 │ debg TestSubjects.setValueWithChecks(mlJobWizardInputJobId, fq_single_1_1588083883794)
[00:04:29]                 │ debg TestSubjects.click(mlJobWizardInputJobId)
[00:04:29]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobWizardInputJobId"]') with timeout=10000
[00:04:29]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardInputJobId"]') with timeout=10000
[00:04:30]                 │ debg TestSubjects.getAttribute(mlJobWizardInputJobId, value)
[00:04:30]                 │ debg TestSubjects.find(mlJobWizardInputJobId)
[00:04:30]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardInputJobId"]') with timeout=10000
[00:04:31]                 └- ✓ pass  (2.0s) "machine learning anomaly detection single metric job creation inputs the job id"
[00:04:31]               └-> job creation inputs the job description
[00:04:31]                 └-> "before each" hook: global before each
[00:04:31]                 │ debg TestSubjects.exists(mlJobWizardInputJobDescription)
[00:04:31]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardInputJobDescription"]') with timeout=120000
[00:04:31]                 │ debg TestSubjects.setValueWithChecks(mlJobWizardInputJobDescription, Create single metric job based on the farequote dataset with 30m bucketspan and mean(responsetime))
[00:04:31]                 │ debg TestSubjects.click(mlJobWizardInputJobDescription)
[00:04:31]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobWizardInputJobDescription"]') with timeout=10000
[00:04:31]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardInputJobDescription"]') with timeout=10000
[00:04:37]                 │ debg TestSubjects.getVisibleText(mlJobWizardInputJobDescription)
[00:04:37]                 │ debg TestSubjects.find(mlJobWizardInputJobDescription)
[00:04:37]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardInputJobDescription"]') with timeout=10000
[00:04:37]                 └- ✓ pass  (6.8s) "machine learning anomaly detection single metric job creation inputs the job description"
[00:04:37]               └-> job creation inputs job groups
[00:04:37]                 └-> "before each" hook: global before each
[00:04:37]                 │ debg TestSubjects.exists(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:04:37]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=120000
[00:04:37]                 │ debg comboBox.setCustom, comboBoxSelector: mlJobWizardComboBoxJobGroups > comboBoxInput, value: automated
[00:04:37]                 │ debg TestSubjects.find(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:04:37]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:04:40]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:04:40]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:04:40]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobWizardComboBoxJobGroups > comboBoxInput
[00:04:40]                 │ debg TestSubjects.find(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:04:40]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:04:40]                 │ debg comboBox.setCustom, comboBoxSelector: mlJobWizardComboBoxJobGroups > comboBoxInput, value: farequote
[00:04:40]                 │ debg TestSubjects.find(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:04:40]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:04:42]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:04:42]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:04:42]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobWizardComboBoxJobGroups > comboBoxInput
[00:04:42]                 │ debg TestSubjects.find(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:04:42]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:04:42]                 │ debg comboBox.setCustom, comboBoxSelector: mlJobWizardComboBoxJobGroups > comboBoxInput, value: single-metric
[00:04:42]                 │ debg TestSubjects.find(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:04:42]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:04:45]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:04:45]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:04:45]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobWizardComboBoxJobGroups > comboBoxInput
[00:04:45]                 │ debg TestSubjects.find(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:04:45]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:04:45]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobWizardComboBoxJobGroups > comboBoxInput
[00:04:45]                 │ debg TestSubjects.find(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:04:45]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:04:45]                 └- ✓ pass  (7.6s) "machine learning anomaly detection single metric job creation inputs job groups"
[00:04:45]               └-> job creation opens the additional settings section
[00:04:45]                 └-> "before each" hook: global before each
[00:04:45]                 │ debg TestSubjects.exists(mlJobWizardAdditionalSettingsSection)
[00:04:45]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdditionalSettingsSection"]') with timeout=2500
[00:04:45]                 │ debg --- retry.tryForTime error: [data-test-subj="mlJobWizardAdditionalSettingsSection"] is not displayed
[00:04:45]                 │ debg --- retry.tryForTime failed again with the same message...
[00:04:46]                 │ debg --- retry.tryForTime failed again with the same message...
[00:04:47]                 │ debg --- retry.tryForTime failed again with the same message...
[00:04:47]                 │ debg --- retry.tryForTime failed again with the same message...
[00:04:48]                 │ debg TestSubjects.click(mlJobWizardToggleAdditionalSettingsSection)
[00:04:48]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobWizardToggleAdditionalSettingsSection"]') with timeout=10000
[00:04:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardToggleAdditionalSettingsSection"]') with timeout=10000
[00:04:48]                 │ debg TestSubjects.exists(mlJobWizardAdditionalSettingsSection)
[00:04:48]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdditionalSettingsSection"]') with timeout=1000
[00:04:48]                 └- ✓ pass  (2.8s) "machine learning anomaly detection single metric job creation opens the additional settings section"
[00:04:48]               └-> job creation adds a new custom url
[00:04:48]                 └-> "before each" hook: global before each
[00:04:48]                 │ debg TestSubjects.exists(mlJobWizardAdditionalSettingsSection)
[00:04:48]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdditionalSettingsSection"]') with timeout=2500
[00:04:48]                 │ debg TestSubjects.findAll(mlJobEditCustomUrlsList > *)
[00:04:48]                 │ debg Find.allByCssSelector('[data-test-subj="mlJobEditCustomUrlsList"] [data-test-subj="*"]') with timeout=10000
[00:04:58]                 │ debg TestSubjects.exists(mlJobNewCustomUrlFormModal)
[00:04:58]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobNewCustomUrlFormModal"]') with timeout=2500
[00:05:00]                 │ debg --- retry.tryForTime error: [data-test-subj="mlJobNewCustomUrlFormModal"] is not displayed
[00:05:01]                 │ debg TestSubjects.click(mlJobOpenCustomUrlFormButton)
[00:05:01]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=10000
[00:05:01]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=10000
[00:05:01]                 │ debg TestSubjects.exists(mlJobNewCustomUrlFormModal)
[00:05:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobNewCustomUrlFormModal"]') with timeout=1000
[00:05:01]                 │ debg TestSubjects.setValue(mlJobCustomUrlLabelInput, check-kibana-dashboard)
[00:05:01]                 │ debg TestSubjects.click(mlJobCustomUrlLabelInput)
[00:05:01]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:05:01]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:05:02]                 │ debg TestSubjects.getAttribute(mlJobCustomUrlLabelInput, value)
[00:05:02]                 │ debg TestSubjects.find(mlJobCustomUrlLabelInput)
[00:05:02]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:05:02]                 │ debg TestSubjects.click(mlJobAddCustomUrl)
[00:05:02]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:05:02]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:05:02]                 │ debg TestSubjects.missingOrFail(mlJobNewCustomUrlFormModal)
[00:05:02]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlJobNewCustomUrlFormModal"]') with timeout=10000
[00:05:02]                 │ debg TestSubjects.exists(mlJobEditCustomUrlItem_0)
[00:05:02]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditCustomUrlItem_0"]') with timeout=120000
[00:05:02]                 │ debg TestSubjects.getAttribute(mlJobEditCustomUrlLabelInput_0, value)
[00:05:02]                 │ debg TestSubjects.find(mlJobEditCustomUrlLabelInput_0)
[00:05:02]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobEditCustomUrlLabelInput_0"]') with timeout=10000
[00:05:02]                 └- ✓ pass  (14.7s) "machine learning anomaly detection single metric job creation adds a new custom url"
[00:05:02]               └-> job creation assigns calendars
[00:05:02]                 └-> "before each" hook: global before each
[00:05:02]                 │ debg TestSubjects.exists(mlJobWizardAdditionalSettingsSection)
[00:05:02]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdditionalSettingsSection"]') with timeout=2500
[00:05:02]                 │ debg comboBox.setCustom, comboBoxSelector: mlJobWizardComboBoxCalendars > comboBoxInput, value: wizard-test-calendar_1588083883794
[00:05:02]                 │ debg TestSubjects.find(mlJobWizardComboBoxCalendars > comboBoxInput)
[00:05:02]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxCalendars"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:05:05]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:05:05]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:05:05]                 │ debg TestSubjects.exists(mlJobWizardAdditionalSettingsSection)
[00:05:05]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdditionalSettingsSection"]') with timeout=2500
[00:05:05]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobWizardComboBoxCalendars > comboBoxInput
[00:05:05]                 │ debg TestSubjects.find(mlJobWizardComboBoxCalendars > comboBoxInput)
[00:05:05]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxCalendars"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:05:05]                 └- ✓ pass  (2.9s) "machine learning anomaly detection single metric job creation assigns calendars"
[00:05:05]               └-> job creation opens the advanced section
[00:05:05]                 └-> "before each" hook: global before each
[00:05:05]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:05]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:05]                 │ debg --- retry.tryForTime error: [data-test-subj="mlJobWizardAdvancedSection"] is not displayed
[00:05:06]                 │ debg --- retry.tryForTime failed again with the same message...
[00:05:06]                 │ debg --- retry.tryForTime failed again with the same message...
[00:05:07]                 │ debg --- retry.tryForTime failed again with the same message...
[00:05:08]                 │ debg --- retry.tryForTime failed again with the same message...
[00:05:08]                 │ debg TestSubjects.click(mlJobWizardToggleAdvancedSection)
[00:05:08]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobWizardToggleAdvancedSection"]') with timeout=10000
[00:05:08]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardToggleAdvancedSection"]') with timeout=10000
[00:05:08]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:08]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=1000
[00:05:08]                 └- ✓ pass  (2.8s) "machine learning anomaly detection single metric job creation opens the advanced section"
[00:05:08]               └-> job creation displays the model plot switch
[00:05:08]                 └-> "before each" hook: global before each
[00:05:08]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:08]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:08]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection > mlJobWizardSwitchModelPlot)
[00:05:08]                 │ debg Find.existsByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardSwitchModelPlot"]') with timeout=120000
[00:05:08]                 └- ✓ pass  (48ms) "machine learning anomaly detection single metric job creation displays the model plot switch"
[00:05:08]               └-> job creation enables the dedicated index switch
[00:05:08]                 └-> "before each" hook: global before each
[00:05:08]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:08]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:08]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection > mlJobWizardSwitchUseDedicatedIndex)
[00:05:08]                 │ debg Find.existsByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardSwitchUseDedicatedIndex"]') with timeout=120000
[00:05:08]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:08]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:08]                 │ debg TestSubjects.getAttribute(mlJobWizardSwitchUseDedicatedIndex, aria-checked)
[00:05:08]                 │ debg TestSubjects.find(mlJobWizardSwitchUseDedicatedIndex)
[00:05:08]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardSwitchUseDedicatedIndex"]') with timeout=10000
[00:05:08]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:08]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:08]                 │ debg TestSubjects.clickWhenNotDisabled(mlJobWizardAdvancedSection > mlJobWizardSwitchUseDedicatedIndex)
[00:05:08]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardSwitchUseDedicatedIndex"]') with timeout=10000
[00:05:08]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardSwitchUseDedicatedIndex"]') with timeout=10000
[00:05:09]                 │ debg TestSubjects.getAttribute(mlJobWizardSwitchUseDedicatedIndex, aria-checked)
[00:05:09]                 │ debg TestSubjects.find(mlJobWizardSwitchUseDedicatedIndex)
[00:05:09]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardSwitchUseDedicatedIndex"]') with timeout=10000
[00:05:09]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:09]                 └- ✓ pass  (545ms) "machine learning anomaly detection single metric job creation enables the dedicated index switch"
[00:05:09]               └-> job creation inputs the model memory limit
[00:05:09]                 └-> "before each" hook: global before each
[00:05:09]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:09]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection > mlJobWizardInputModelMemoryLimit)
[00:05:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardInputModelMemoryLimit"]') with timeout=120000
[00:05:09]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:09]                 │ debg TestSubjects.setValueWithChecks(mlJobWizardAdvancedSection > mlJobWizardInputModelMemoryLimit, 15mb)
[00:05:09]                 │ debg TestSubjects.click(mlJobWizardAdvancedSection > mlJobWizardInputModelMemoryLimit)
[00:05:09]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardInputModelMemoryLimit"]') with timeout=10000
[00:05:09]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardInputModelMemoryLimit"]') with timeout=10000
[00:05:09]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:09]                 │ debg TestSubjects.getAttribute(mlJobWizardAdvancedSection > mlJobWizardInputModelMemoryLimit, value)
[00:05:09]                 │ debg TestSubjects.find(mlJobWizardAdvancedSection > mlJobWizardInputModelMemoryLimit)
[00:05:09]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardInputModelMemoryLimit"]') with timeout=10000
[00:05:09]                 └- ✓ pass  (610ms) "machine learning anomaly detection single metric job creation inputs the model memory limit"
[00:05:09]               └-> job creation displays the validation step
[00:05:09]                 └-> "before each" hook: global before each
[00:05:09]                 │ debg TestSubjects.exists(mlJobWizardNavButtonNext)
[00:05:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=120000
[00:05:09]                 │ debg TestSubjects.clickWhenNotDisabled(mlJobWizardNavButtonNext)
[00:05:09]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:05:09]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:05:10]                 │ debg TestSubjects.exists(mlJobWizardStepTitleValidation)
[00:05:10]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardStepTitleValidation"]') with timeout=5000
[00:05:10]                 └- ✓ pass  (689ms) "machine learning anomaly detection single metric job creation displays the validation step"
[00:05:10]               └-> job creation displays the summary step
[00:05:10]                 └-> "before each" hook: global before each
[00:05:10]                 │ debg TestSubjects.exists(mlJobWizardNavButtonNext)
[00:05:10]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=120000
[00:05:10]                 │ debg TestSubjects.clickWhenNotDisabled(mlJobWizardNavButtonNext)
[00:05:10]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:05:10]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:05:11]                 │ debg TestSubjects.exists(mlJobWizardStepTitleSummary)
[00:05:11]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardStepTitleSummary"]') with timeout=5000
[00:05:11]                 └- ✓ pass  (738ms) "machine learning anomaly detection single metric job creation displays the summary step"
[00:05:11]               └-> job creation creates the job and finishes processing
[00:05:11]                 └-> "before each" hook: global before each
[00:05:11]                 │ debg TestSubjects.exists(mlJobWizardButtonCreateJob)
[00:05:11]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardButtonCreateJob"]') with timeout=120000
[00:05:11]                 │ debg TestSubjects.clickWhenNotDisabled(mlJobWizardButtonCreateJob)
[00:05:11]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlJobWizardButtonCreateJob"]') with timeout=10000
[00:05:11]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardButtonCreateJob"]') with timeout=10000
[00:05:11]                 │ debg TestSubjects.exists(mlJobWizardButtonRunInRealTime)
[00:05:11]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardButtonRunInRealTime"]') with timeout=120000
[00:05:11]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] applying create index request using v1 templates [.ml-anomalies-]
[00:05:11]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-anomalies-custom-fq_single_1_1588083883794] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1], mappings [_doc]
[00:05:11]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] updating number_of_replicas to [0] for indices [.ml-anomalies-custom-fq_single_1_1588083883794]
[00:05:11]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] applying create index request using v1 templates [.ml-config]
[00:05:11]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-config] creating index, cause [auto(bulk api)], templates [.ml-config], shards [1]/[1], mappings [_doc]
[00:05:11]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] updating number_of_replicas to [0] for indices [.ml-config]
[00:05:12]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] applying create index request using v1 templates [.ml-notifications-000001]
[00:05:12]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1], mappings [_doc]
[00:05:12]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:05:12]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] Opening job [fq_single_1_1588083883794]
[00:05:12]                 │ info [o.e.x.c.m.u.MlIndexAndAlias] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:05:12]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] applying create index request using v1 templates [.ml-state]
[00:05:12]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1], mappings [_doc]
[00:05:12]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:05:12]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:05:12]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] moving index [.ml-state-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [ml-size-based-ilm-policy]
[00:05:12]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [ml-size-based-ilm-policy]
[00:05:12]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083883794] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:05:13]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083883794] [autodetect/40592] [CResourceMonitor.cc@71] Setting model memory limit to 15 MB
[00:05:13]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] Successfully set job state to [opened] for job [fq_single_1_1588083883794]
[00:05:13]                 │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083883794] Datafeed started (from: 2016-02-07T00:00:00.000Z to: 2016-02-11T23:59:54.001Z) with frequency [540000ms]
[00:05:13]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-anomalies-custom-fq_single_1_1588083883794/qVfq82HtRje5GT30GXOjGQ] update_mapping [_doc]
[00:05:14]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/ml/1.plugin.js 0:32231 "Response for job query:" Object
[00:05:14]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/ml/1.plugin.js 0:41928 "checkSaveResponse(): save successful"
[00:05:14]                 │ debg --- retry.tryForTime error: [data-test-subj="mlJobWizardButtonRunInRealTime"] is not displayed
[00:05:15]                 │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083883794] Lookback has finished
[00:05:15]                 │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [no_realtime] attempt to stop datafeed [datafeed-fq_single_1_1588083883794] for job [fq_single_1_1588083883794]
[00:05:15]                 │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [no_realtime] try lock [20s] to stop datafeed [datafeed-fq_single_1_1588083883794] for job [fq_single_1_1588083883794]...
[00:05:15]                 │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [no_realtime] stopping datafeed [datafeed-fq_single_1_1588083883794] for job [fq_single_1_1588083883794], acquired [true]...
[00:05:15]                 │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [no_realtime] datafeed [datafeed-fq_single_1_1588083883794] for job [fq_single_1_1588083883794] has been stopped
[00:05:15]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] Closing job [fq_single_1_1588083883794], because [close job (api)]
[00:05:15]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083883794] [autodetect/40592] [CCmdSkeleton.cc@45] Handled 2399 records
[00:05:15]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083883794] [autodetect/40592] [CAnomalyJob.cc@1499] Pruning all models
[00:05:15]                 │ info [o.e.x.m.p.AbstractNativeProcess] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083883794] State output finished
[00:05:15]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-anomalies-custom-fq_single_1_1588083883794/qVfq82HtRje5GT30GXOjGQ] update_mapping [_doc]
[00:05:15]                 │ info [o.e.x.m.j.p.a.o.AutodetectResultProcessor] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083883794] 239 buckets parsed from autodetect output
[00:05:16]                 │ info [o.e.x.m.j.p.a.AutodetectCommunicator] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083883794] job closed
[00:05:16]                 └- ✓ pass  (5.3s) "machine learning anomaly detection single metric job creation creates the job and finishes processing"
[00:05:16]               └-> job creation displays the created job in the job list
[00:05:16]                 └-> "before each" hook: global before each
[00:05:16]                 │ debg navigating to ml url: http://localhost:6131/app/ml
[00:05:16]                 │ debg navigate to: http://localhost:6131/app/ml
[00:05:16]                 │ debg browser[INFO] http://localhost:6131/app/ml?_t=1588084201774 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:05:16]                 │
[00:05:16]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:16]                 │ debg ... sleep(700) start
[00:05:17]                 │ debg ... sleep(700) end
[00:05:17]                 │ debg returned from get, calling refresh
[00:05:18]                 │ debg browser[INFO] http://localhost:6131/app/ml?_t=1588084201774 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:05:18]                 │
[00:05:18]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:18]                 │ debg currentUrl = http://localhost:6131/app/ml
[00:05:18]                 │          appUrl = http://localhost:6131/app/ml
[00:05:18]                 │ debg TestSubjects.find(kibanaChrome)
[00:05:18]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:05:25]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-28T14:30:10Z
[00:05:25]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:05:25]                 │
[00:05:25]                 │      "
[00:05:25]                 │ debg ... sleep(501) start
[00:05:26]                 │ debg ... sleep(501) end
[00:05:26]                 │ debg in navigateTo url = http://localhost:6131/app/ml#/overview
[00:05:26]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[00:05:27]                 │ debg ... sleep(501) start
[00:05:27]                 │ debg ... sleep(501) end
[00:05:27]                 │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=%28refreshInterval%3A%28pause%3A%21t%2Cvalue%3A0%29%29
[00:05:27]                 │ debg --- retry.try failed again with the same message...
[00:05:28]                 │ debg ... sleep(501) start
[00:05:28]                 │ debg ... sleep(501) end
[00:05:28]                 │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=%28refreshInterval%3A%28pause%3A%21t%2Cvalue%3A0%29%29
[00:05:28]                 │ debg TestSubjects.exists(statusPageContainer)
[00:05:28]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:05:31]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:05:31]                 │ debg TestSubjects.exists(mlPageOverview)
[00:05:31]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageOverview"]') with timeout=2000
[00:05:31]                 │ debg TestSubjects.click(~mlMainTab & ~anomalyDetection)
[00:05:31]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:05:31]                 │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:05:32]                 │ debg TestSubjects.exists(~mlMainTab & ~anomalyDetection & ~selected)
[00:05:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"][data-test-subj~="selected"]') with timeout=120000
[00:05:32]                 │ debg TestSubjects.exists(mlPageJobManagement)
[00:05:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobManagement"]') with timeout=120000
[00:05:32]                 │ debg TestSubjects.findAll(~mlSubTab)
[00:05:32]                 │ debg Find.allByCssSelector('[data-test-subj~="mlSubTab"]') with timeout=3
[00:05:32]                 │ debg TestSubjects.exists(~mlSubTab&~jobManagement)
[00:05:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"]') with timeout=1000
[00:05:32]                 │ debg TestSubjects.exists(~mlSubTab&~anomalyExplorer)
[00:05:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="anomalyExplorer"]') with timeout=1000
[00:05:32]                 │ debg TestSubjects.exists(~mlSubTab&~singleMetricViewer)
[00:05:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="singleMetricViewer"]') with timeout=1000
[00:05:32]                 │ debg TestSubjects.exists(~mlSubTab&~settings)
[00:05:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="settings"]') with timeout=1000
[00:05:32]                 │ debg TestSubjects.click(~mlSubTab & ~jobManagement)
[00:05:32]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"]') with timeout=10000
[00:05:32]                 │ debg Find.findByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"]') with timeout=10000
[00:05:32]                 │ debg TestSubjects.exists(~mlSubTab & ~jobManagement & ~selected)
[00:05:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"][data-test-subj~="selected"]') with timeout=120000
[00:05:32]                 │ debg TestSubjects.exists(mlPageJobManagement)
[00:05:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobManagement"]') with timeout=120000
[00:05:32]                 │ debg TestSubjects.exists(~mlJobListTable)
[00:05:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=60000
[00:05:32]                 │ debg TestSubjects.exists(mlJobListTable loaded)
[00:05:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobListTable loaded"]') with timeout=30000
[00:05:32]                 │ debg TestSubjects.exists(~mlJobListTable)
[00:05:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=60000
[00:05:32]                 │ debg TestSubjects.exists(mlJobListTable loaded)
[00:05:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobListTable loaded"]') with timeout=30000
[00:05:32]                 │ debg TestSubjects.find(mlJobListSearchBar)
[00:05:32]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobListSearchBar"]') with timeout=10000
[00:05:33]                 │ debg TestSubjects.find(~mlJobListTable)
[00:05:33]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=10000
[00:05:33]                 └- ✓ pass  (17.1s) "machine learning anomaly detection single metric job creation displays the created job in the job list"
[00:05:33]               └-> job creation displays details for the created job in the job list
[00:05:33]                 └-> "before each" hook: global before each
[00:05:33]                 │ debg TestSubjects.click(mlRefreshJobListButton)
[00:05:33]                 │ debg Find.clickByCssSelector('[data-test-subj="mlRefreshJobListButton"]') with timeout=10000
[00:05:33]                 │ debg Find.findByCssSelector('[data-test-subj="mlRefreshJobListButton"]') with timeout=10000
[00:05:33]                 │ debg TestSubjects.exists(~mlJobListTable)
[00:05:33]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=60000
[00:05:33]                 │ debg TestSubjects.exists(mlJobListTable loaded)
[00:05:33]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobListTable loaded"]') with timeout=30000
[00:05:33]                 │ debg TestSubjects.find(~mlJobListTable)
[00:05:33]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=10000
[00:05:33]                 │ debg TestSubjects.exists(~mlJobListTable > ~details-fq_single_1_1588083883794)
[00:05:33]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083883794"]') with timeout=2500
[00:05:36]                 │ debg --- retry.tryForTime error: [data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083883794"] is not displayed
[00:05:36]                 │ debg TestSubjects.click(~mlJobListTable > ~row-fq_single_1_1588083883794 > mlJobListRowDetailsToggle)
[00:05:36]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_single_1_1588083883794"] [data-test-subj="mlJobListRowDetailsToggle"]') with timeout=10000
[00:05:36]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_single_1_1588083883794"] [data-test-subj="mlJobListRowDetailsToggle"]') with timeout=10000
[00:05:37]                 │ debg TestSubjects.exists(~mlJobListTable > ~details-fq_single_1_1588083883794)
[00:05:37]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083883794"]') with timeout=1000
[00:05:37]                 │ debg TestSubjects.click(~mlJobListTable > ~details-fq_single_1_1588083883794 > mlJobListTab-counts)
[00:05:37]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083883794"] [data-test-subj="mlJobListTab-counts"]') with timeout=10000
[00:05:37]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083883794"] [data-test-subj="mlJobListTab-counts"]') with timeout=10000
[00:05:37]                 │ debg TestSubjects.find(~mlJobListTable > ~details-fq_single_1_1588083883794 > mlJobDetails-counts > mlJobRowDetailsSection-counts)
[00:05:37]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083883794"] [data-test-subj="mlJobDetails-counts"] [data-test-subj="mlJobRowDetailsSection-counts"]') with timeout=10000
[00:05:37]                 │ debg TestSubjects.find(~mlJobListTable > ~details-fq_single_1_1588083883794 > mlJobDetails-counts > mlJobRowDetailsSection-modelSizeStats)
[00:05:37]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083883794"] [data-test-subj="mlJobDetails-counts"] [data-test-subj="mlJobRowDetailsSection-modelSizeStats"]') with timeout=10000
[00:05:37]                 │ debg TestSubjects.exists(~mlJobListTable > ~details-fq_single_1_1588083883794)
[00:05:37]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083883794"]') with timeout=2500
[00:05:37]                 │ debg TestSubjects.click(~mlJobListTable > ~row-fq_single_1_1588083883794 > mlJobListRowDetailsToggle)
[00:05:37]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_single_1_1588083883794"] [data-test-subj="mlJobListRowDetailsToggle"]') with timeout=10000
[00:05:37]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_single_1_1588083883794"] [data-test-subj="mlJobListRowDetailsToggle"]') with timeout=10000
[00:05:37]                 │ debg TestSubjects.missingOrFail(~mlJobListTable > ~details-fq_single_1_1588083883794)
[00:05:37]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083883794"]') with timeout=1000
[00:05:38]                 │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/machine learning anomaly detection single metric job creation displays details for the created job in the job list.png"
[00:05:38]                 │ info Current URL is: http://localhost:6131/app/ml#/jobs?_g=(refreshInterval:(pause:!f,value:30000))
[00:05:38]                 │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/machine learning anomaly detection single metric job creation displays details for the created job in the job list.html
[00:05:38]                 └- ✖ fail: "machine learning anomaly detection single metric job creation displays details for the created job in the job list"
[00:05:38]                 │

Stack Trace

{ Error: expected { job_id: 'fq_single_1_1588083883794',
  result_type: 'model_size_stats',
  model_bytes_exceeded: '0.0 B',
  total_by_field_count: '3',
  total_over_field_count: '0',
  total_partition_field_count: '2',
  bucket_allocation_failures_count: '0',
  memory_status: 'ok',
  failed_category_count: '0',
  timestamp: '2016-02-11 23:00:00' } to sort of equal { job_id: 'fq_single_1_1588083883794',
  result_type: 'model_size_stats',
  model_bytes_exceeded: '0.0 B',
  total_by_field_count: '3',
  total_over_field_count: '0',
  total_partition_field_count: '2',
  bucket_allocation_failures_count: '0',
  memory_status: 'ok',
  timestamp: '2016-02-11 23:00:00' }
    at Assertion.assert (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:244:8)
    at MlJobTable.assertJobRowDetailsCounts (test/functional/services/machine_learning/job_table.ts:227:33)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  actual:
   '{\n  "bucket_allocation_failures_count": "0"\n  "failed_category_count": "0"\n  "job_id": "fq_single_1_1588083883794"\n  "memory_status": "ok"\n  "model_bytes_exceeded": "0.0 B"\n  "result_type": "model_size_stats"\n  "timestamp": "2016-02-11 23:00:00"\n  "total_by_field_count": "3"\n  "total_over_field_count": "0"\n  "total_partition_field_count": "2"\n}',
  expected:
   '{\n  "bucket_allocation_failures_count": "0"\n  "job_id": "fq_single_1_1588083883794"\n  "memory_status": "ok"\n  "model_bytes_exceeded": "0.0 B"\n  "result_type": "model_size_stats"\n  "timestamp": "2016-02-11 23:00:00"\n  "total_by_field_count": "3"\n  "total_over_field_count": "0"\n  "total_partition_field_count": "2"\n}',
  showDiff: true }

Kibana Pipeline / kibana-xpack-agent / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/machine_learning/anomaly_detection/single_metric_job·ts.machine learning anomaly detection single metric job creation displays details for the created job in the job list

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-1588081036150344758] added 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-1588081036150344758] added 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-1588081036150344758] added 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-1588081036150344758] added 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-1588081036150344758] added user [ml_poweruser]
[00:00:00]             │ debg created user ml_poweruser
[00:00:00]             │ debg creating user ml_viewer
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] added user [ml_viewer]
[00:00:01]             │ debg created user ml_viewer
[00:00:01]             │ debg creating user ml_unauthorized
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] added user [ml_unauthorized]
[00:00:01]             │ debg created user ml_unauthorized
[00:03:47]           └-: anomaly detection
[00:03:47]             └-> "before all" hook
[00:03:47]             └-: single metric
[00:03:47]               └-> "before all" hook
[00:03:47]               └-> "before all" hook
[00:03:47]                 │ info [ml/farequote] Loading "mappings.json"
[00:03:47]                 │ info [ml/farequote] Loading "data.json.gz"
[00:03:47]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] applying create index request using v1 templates []
[00:03:47]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [ft_farequote] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:03:47]                 │ info [ml/farequote] Created index "ft_farequote"
[00:03:47]                 │ debg [ml/farequote] "ft_farequote" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:03:57]                 │ info progress: 73200
[00:03:59]                 │ info [ml/farequote] Indexed 86274 docs into "ft_farequote"
[00:03:59]                 │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:03:59]                 │ debg  > Not found
[00:03:59]                 │ debg Creating index pattern with title 'ft_farequote' and time field '@timestamp'
[00:03:59]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.kibana_1/ekaa6rTRShCheAoGTCukQQ] update_mapping [_doc]
[00:04:00]                 │ debg  > Created with id '5893c550-895b-11ea-89cb-67b8ab66bac4'
[00:04:00]                 │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:04:01]                 │ debg Creating calendar with id 'wizard-test-calendar_1588083360658'...
[00:04:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] applying create index request using v1 templates [.ml-meta]
[00:04:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-meta] creating index, cause [auto(bulk api)], templates [.ml-meta], shards [1]/[1], mappings [_doc]
[00:04:01]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] updating number_of_replicas to [0] for indices [.ml-meta]
[00:04:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] applying create index request using v1 templates []
[00:04:01]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1], mappings [_doc]
[00:04:01]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:04:01]                 │ info [o.e.x.m.MlInitializationService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] Created ML annotations index and aliases
[00:04:01]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-meta/MXfceDM_TT2O8kBcemWz3g] update_mapping [_doc]
[00:04:01]                 │ debg Waiting up to 30000ms for 'wizard-test-calendar_1588083360658' to be created...
[00:04:01]                 │ debg SecurityPage.forceLogout
[00:04:01]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:04:01]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:04:02]                 │ debg Redirecting to /logout to force the logout
[00:04:02]                 │ debg Waiting on the login form to appear
[00:04:02]                 │ debg Waiting up to 100000ms for login form...
[00:04:02]                 │ debg browser[INFO] http://localhost:6131/logout?_t=1588083603912 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:04:02]                 │
[00:04:02]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:02]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:04:05]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:04:07]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-28T14:20:08Z
[00:04:07]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:04:07]                 │
[00:04:07]                 │      "
[00:04:07]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:04:10]                 │ debg browser[INFO] http://localhost:6131/login?_t=1588083603912 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:04:10]                 │
[00:04:10]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:10]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:04:11]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:04:12]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-28T14:20:13Z
[00:04:12]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:04:12]                 │
[00:04:12]                 │      "
[00:04:12]                 │ debg navigating to login url: http://localhost:6131/login
[00:04:12]                 │ debg navigate to: http://localhost:6131/login
[00:04:12]                 │ debg browser[INFO] http://localhost:6131/login?_t=1588083614212 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:04:12]                 │
[00:04:12]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:12]                 │ debg ... sleep(700) start
[00:04:13]                 │ debg ... sleep(700) end
[00:04:13]                 │ debg returned from get, calling refresh
[00:04:13]                 │ debg browser[INFO] http://localhost:6131/login?_t=1588083614212 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:04:13]                 │
[00:04:13]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:13]                 │ debg currentUrl = http://localhost:6131/login
[00:04:13]                 │          appUrl = http://localhost:6131/login
[00:04:13]                 │ debg TestSubjects.find(kibanaChrome)
[00:04:13]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:04:17]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-28T14:20:18Z
[00:04:17]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:04:17]                 │
[00:04:17]                 │      "
[00:04:17]                 │ debg ... sleep(501) start
[00:04:17]                 │ debg ... sleep(501) end
[00:04:17]                 │ debg in navigateTo url = http://localhost:6131/login
[00:04:17]                 │ debg TestSubjects.exists(statusPageContainer)
[00:04:17]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:04:20]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:04:20]                 │ debg TestSubjects.setValue(loginUsername, ml_poweruser)
[00:04:20]                 │ debg TestSubjects.click(loginUsername)
[00:04:20]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:04:20]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:04:21]                 │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:04:21]                 │ debg TestSubjects.click(loginPassword)
[00:04:21]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:04:21]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:04:21]                 │ debg TestSubjects.click(loginSubmit)
[00:04:21]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:04:21]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:04:21]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] nav:not(.ng-hide) ') with timeout=20000
[00:04:26]                 │ debg browser[INFO] http://localhost:6131/app/kibana 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:04:26]                 │
[00:04:26]                 │ debg browser[INFO] http://localhost:6131/bundles/app/kibana/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:26]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-28T14:20:26Z
[00:04:26]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:04:26]                 │
[00:04:26]                 │      "
[00:04:26]                 │ debg Finished login process currentUrl = http://localhost:6131/app/kibana#/home
[00:04:26]                 │ debg Waiting up to 20000ms for logout button visible...
[00:04:26]                 │ debg TestSubjects.exists(userMenuButton)
[00:04:26]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:04:27]                 │ debg TestSubjects.exists(userMenu)
[00:04:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:04:29]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:04:30]                 │ debg TestSubjects.click(userMenuButton)
[00:04:30]                 │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:04:30]                 │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:04:30]                 │ debg Waiting up to 20000ms for user menu opened...
[00:04:30]                 │ debg TestSubjects.exists(userMenu)
[00:04:30]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:04:30]                 │ debg TestSubjects.exists(userMenu > logoutLink)
[00:04:30]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:04:30]               └-> job creation loads the job management page
[00:04:30]                 └-> "before each" hook: global before each
[00:04:30]                 │ debg navigating to ml url: http://localhost:6131/app/ml
[00:04:30]                 │ debg navigate to: http://localhost:6131/app/ml
[00:04:30]                 │ debg browser[INFO] http://localhost:6131/app/ml?_t=1588083631874 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:04:30]                 │
[00:04:30]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:30]                 │ debg ... sleep(700) start
[00:04:31]                 │ debg ... sleep(700) end
[00:04:31]                 │ debg returned from get, calling refresh
[00:04:31]                 │ debg browser[INFO] http://localhost:6131/app/ml?_t=1588083631874 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:04:31]                 │
[00:04:31]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:04:31]                 │ debg currentUrl = http://localhost:6131/app/ml
[00:04:31]                 │          appUrl = http://localhost:6131/app/ml
[00:04:31]                 │ debg TestSubjects.find(kibanaChrome)
[00:04:31]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:04:35]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-28T14:20:36Z
[00:04:35]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:04:35]                 │
[00:04:35]                 │      "
[00:04:35]                 │ debg ... sleep(501) start
[00:04:35]                 │ debg ... sleep(501) end
[00:04:36]                 │ debg in navigateTo url = http://localhost:6131/app/ml#/overview
[00:04:36]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[00:04:36]                 │ debg ... sleep(501) start
[00:04:37]                 │ debg ... sleep(501) end
[00:04:37]                 │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=%28refreshInterval%3A%28pause%3A%21t%2Cvalue%3A0%29%29
[00:04:37]                 │ debg --- retry.try failed again with the same message...
[00:04:37]                 │ debg ... sleep(501) start
[00:04:38]                 │ debg ... sleep(501) end
[00:04:38]                 │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=%28refreshInterval%3A%28pause%3A%21t%2Cvalue%3A0%29%29
[00:04:38]                 │ debg TestSubjects.exists(statusPageContainer)
[00:04:38]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:04:40]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:04:41]                 │ debg TestSubjects.exists(mlPageOverview)
[00:04:41]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageOverview"]') with timeout=2000
[00:04:41]                 │ debg TestSubjects.click(~mlMainTab & ~anomalyDetection)
[00:04:41]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:04:41]                 │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:04:41]                 │ debg TestSubjects.exists(~mlMainTab & ~anomalyDetection & ~selected)
[00:04:41]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"][data-test-subj~="selected"]') with timeout=120000
[00:04:41]                 │ debg TestSubjects.exists(mlPageJobManagement)
[00:04:41]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobManagement"]') with timeout=120000
[00:04:41]                 │ debg TestSubjects.findAll(~mlSubTab)
[00:04:41]                 │ debg Find.allByCssSelector('[data-test-subj~="mlSubTab"]') with timeout=3
[00:04:42]                 │ debg TestSubjects.exists(~mlSubTab&~jobManagement)
[00:04:42]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"]') with timeout=1000
[00:04:42]                 │ debg TestSubjects.exists(~mlSubTab&~anomalyExplorer)
[00:04:42]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="anomalyExplorer"]') with timeout=1000
[00:04:42]                 │ debg TestSubjects.exists(~mlSubTab&~singleMetricViewer)
[00:04:42]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="singleMetricViewer"]') with timeout=1000
[00:04:42]                 │ debg TestSubjects.exists(~mlSubTab&~settings)
[00:04:42]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="settings"]') with timeout=1000
[00:04:42]                 │ debg TestSubjects.click(~mlSubTab & ~jobManagement)
[00:04:42]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"]') with timeout=10000
[00:04:42]                 │ debg Find.findByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"]') with timeout=10000
[00:04:42]                 │ debg TestSubjects.exists(~mlSubTab & ~jobManagement & ~selected)
[00:04:42]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"][data-test-subj~="selected"]') with timeout=120000
[00:04:42]                 │ debg TestSubjects.exists(mlPageJobManagement)
[00:04:42]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobManagement"]') with timeout=120000
[00:04:42]                 └- ✓ pass  (12.1s) "machine learning anomaly detection single metric job creation loads the job management page"
[00:04:42]               └-> job creation loads the new job source selection page
[00:04:42]                 └-> "before each" hook: global before each
[00:04:42]                 │ debg TestSubjects.clickWhenNotDisabled(mlCreateNewJobButton)
[00:04:42]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlCreateNewJobButton"]') with timeout=10000
[00:04:42]                 │ debg Find.findByCssSelector('[data-test-subj="mlCreateNewJobButton"]') with timeout=10000
[00:04:42]                 │ debg TestSubjects.exists(mlPageSourceSelection)
[00:04:42]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageSourceSelection"]') with timeout=120000
[00:04:43]                 └- ✓ pass  (644ms) "machine learning anomaly detection single metric job creation loads the new job source selection page"
[00:04:43]               └-> job creation loads the job type selection page
[00:04:43]                 └-> "before each" hook: global before each
[00:04:43]                 │ debg TestSubjects.setValue(savedObjectFinderSearchInput, ft_farequote)
[00:04:43]                 │ debg TestSubjects.click(savedObjectFinderSearchInput)
[00:04:43]                 │ debg Find.clickByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:04:43]                 │ debg Find.findByCssSelector('[data-test-subj="savedObjectFinderSearchInput"]') with timeout=10000
[00:04:43]                 │ debg TestSubjects.exists(savedObjectTitleft_farequote)
[00:04:43]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="savedObjectTitleft_farequote"]') with timeout=120000
[00:04:43]                 │ debg TestSubjects.clickWhenNotDisabled(savedObjectTitleft_farequote)
[00:04:43]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="savedObjectTitleft_farequote"]') with timeout=10000
[00:04:43]                 │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitleft_farequote"]') with timeout=10000
[00:04:44]                 │ debg TestSubjects.exists(mlPageJobTypeSelection)
[00:04:44]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobTypeSelection"]') with timeout=10000
[00:04:45]                 └- ✓ pass  (2.4s) "machine learning anomaly detection single metric job creation loads the job type selection page"
[00:04:45]               └-> job creation loads the single metric job wizard page
[00:04:45]                 └-> "before each" hook: global before each
[00:04:45]                 │ debg TestSubjects.clickWhenNotDisabled(mlJobTypeLinkSingleMetricJob)
[00:04:45]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlJobTypeLinkSingleMetricJob"]') with timeout=10000
[00:04:45]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobTypeLinkSingleMetricJob"]') with timeout=10000
[00:04:45]                 │ debg TestSubjects.exists(mlPageJobWizard single_metric)
[00:04:45]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobWizard single_metric"]') with timeout=120000
[00:04:46]                 └- ✓ pass  (923ms) "machine learning anomaly detection single metric job creation loads the single metric job wizard page"
[00:04:46]               └-> job creation displays the time range step
[00:04:46]                 └-> "before each" hook: global before each
[00:04:46]                 │ debg TestSubjects.exists(mlJobWizardStepTitleTimeRange)
[00:04:46]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardStepTitleTimeRange"]') with timeout=5000
[00:04:46]                 └- ✓ pass  (37ms) "machine learning anomaly detection single metric job creation displays the time range step"
[00:04:46]               └-> job creation sets the timerange
[00:04:46]                 └-> "before each" hook: global before each
[00:04:46]                 │ debg TestSubjects.clickWhenNotDisabled(mlButtonUseFullData)
[00:04:46]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlButtonUseFullData"]') with timeout=10000
[00:04:46]                 │ debg Find.findByCssSelector('[data-test-subj="mlButtonUseFullData"]') with timeout=10000
[00:04:46]                 │ debg TestSubjects.find(mlJobWizardDateRange)
[00:04:46]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardDateRange"]') with timeout=10000
[00:04:46]                 │ debg --- retry.tryForTime error: expected { startDate: 'Apr 28, 2020 @ 14:05:47.857',
[00:04:46]                 │        endDate: 'Apr 28, 2020 @ 14:20:47.857' } to sort of equal { startDate: 'Feb 7, 2016 @ 00:00:00.000',
[00:04:46]                 │        endDate: 'Feb 11, 2016 @ 23:59:54.000' }
[00:04:47]                 │ debg TestSubjects.find(mlJobWizardDateRange)
[00:04:47]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardDateRange"]') with timeout=10000
[00:04:47]                 └- ✓ pass  (1.1s) "machine learning anomaly detection single metric job creation sets the timerange"
[00:04:47]               └-> job creation displays the event rate chart
[00:04:47]                 └-> "before each" hook: global before each
[00:04:47]                 │ debg TestSubjects.exists(~mlEventRateChart)
[00:04:47]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlEventRateChart"]') with timeout=120000
[00:04:47]                 │ debg TestSubjects.exists(mlEventRateChart withData)
[00:04:47]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlEventRateChart withData"]') with timeout=120000
[00:04:47]                 └- ✓ pass  (61ms) "machine learning anomaly detection single metric job creation displays the event rate chart"
[00:04:47]               └-> job creation displays the pick fields step
[00:04:47]                 └-> "before each" hook: global before each
[00:04:47]                 │ debg TestSubjects.exists(mlJobWizardNavButtonNext)
[00:04:47]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=120000
[00:04:47]                 │ debg TestSubjects.clickWhenNotDisabled(mlJobWizardNavButtonNext)
[00:04:47]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:04:47]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:04:47]                 │ debg TestSubjects.exists(mlJobWizardStepTitlePickFields)
[00:04:47]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardStepTitlePickFields"]') with timeout=5000
[00:04:48]                 └- ✓ pass  (399ms) "machine learning anomaly detection single metric job creation displays the pick fields step"
[00:04:48]               └-> job creation selects field and aggregation
[00:04:48]                 └-> "before each" hook: global before each
[00:04:48]                 │ debg TestSubjects.exists(mlJobWizardAggSelection > comboBoxInput)
[00:04:48]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAggSelection"] [data-test-subj="comboBoxInput"]') with timeout=120000
[00:04:48]                 │ debg comboBox.set, comboBoxSelector: mlJobWizardAggSelection > comboBoxInput
[00:04:48]                 │ debg TestSubjects.find(mlJobWizardAggSelection > comboBoxInput)
[00:04:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardAggSelection"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:04:48]                 │ debg comboBox.setElement, value: Mean(responsetime)
[00:04:48]                 │ debg comboBox.isOptionSelected, value: Mean(responsetime)
[00:04:50]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:04:50]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:04:50]                 │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="Mean(responsetime)"]') with timeout=2500
[00:04:50]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:04:50]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:04:53]                 │ debg --- retry.tryForTime error: [data-test-subj~="comboBoxOptionsList"] is not displayed
[00:04:53]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobWizardAggSelection > comboBoxInput
[00:04:53]                 │ debg TestSubjects.find(mlJobWizardAggSelection > comboBoxInput)
[00:04:53]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardAggSelection"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:04:53]                 └- ✓ pass  (6.0s) "machine learning anomaly detection single metric job creation selects field and aggregation"
[00:04:53]               └-> job creation inputs the bucket span
[00:04:53]                 └-> "before each" hook: global before each
[00:04:53]                 │ debg TestSubjects.exists(mlJobWizardInputBucketSpan)
[00:04:53]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardInputBucketSpan"]') with timeout=120000
[00:04:54]                 │ debg TestSubjects.setValueWithChecks(mlJobWizardInputBucketSpan, 30m)
[00:04:54]                 │ debg TestSubjects.click(mlJobWizardInputBucketSpan)
[00:04:54]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobWizardInputBucketSpan"]') with timeout=10000
[00:04:54]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardInputBucketSpan"]') with timeout=10000
[00:04:55]                 │ debg TestSubjects.getAttribute(mlJobWizardInputBucketSpan, value)
[00:04:55]                 │ debg TestSubjects.find(mlJobWizardInputBucketSpan)
[00:04:55]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardInputBucketSpan"]') with timeout=10000
[00:04:55]                 └- ✓ pass  (1.2s) "machine learning anomaly detection single metric job creation inputs the bucket span"
[00:04:55]               └-> job creation displays the job details step
[00:04:55]                 └-> "before each" hook: global before each
[00:04:55]                 │ debg TestSubjects.exists(mlJobWizardNavButtonNext)
[00:04:55]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=120000
[00:04:55]                 │ debg TestSubjects.clickWhenNotDisabled(mlJobWizardNavButtonNext)
[00:04:55]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:04:55]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:04:55]                 │ debg TestSubjects.exists(mlJobWizardStepTitleJobDetails)
[00:04:55]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardStepTitleJobDetails"]') with timeout=5000
[00:04:55]                 └- ✓ pass  (775ms) "machine learning anomaly detection single metric job creation displays the job details step"
[00:04:55]               └-> job creation inputs the job id
[00:04:55]                 └-> "before each" hook: global before each
[00:04:55]                 │ debg TestSubjects.exists(mlJobWizardInputJobId)
[00:04:55]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardInputJobId"]') with timeout=120000
[00:04:56]                 │ debg TestSubjects.setValueWithChecks(mlJobWizardInputJobId, fq_single_1_1588083360658)
[00:04:56]                 │ debg TestSubjects.click(mlJobWizardInputJobId)
[00:04:56]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobWizardInputJobId"]') with timeout=10000
[00:04:56]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardInputJobId"]') with timeout=10000
[00:04:57]                 │ debg TestSubjects.getAttribute(mlJobWizardInputJobId, value)
[00:04:57]                 │ debg TestSubjects.find(mlJobWizardInputJobId)
[00:04:57]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardInputJobId"]') with timeout=10000
[00:04:57]                 └- ✓ pass  (1.8s) "machine learning anomaly detection single metric job creation inputs the job id"
[00:04:57]               └-> job creation inputs the job description
[00:04:57]                 └-> "before each" hook: global before each
[00:04:57]                 │ debg TestSubjects.exists(mlJobWizardInputJobDescription)
[00:04:57]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardInputJobDescription"]') with timeout=120000
[00:04:57]                 │ debg TestSubjects.setValueWithChecks(mlJobWizardInputJobDescription, Create single metric job based on the farequote dataset with 30m bucketspan and mean(responsetime))
[00:04:57]                 │ debg TestSubjects.click(mlJobWizardInputJobDescription)
[00:04:57]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobWizardInputJobDescription"]') with timeout=10000
[00:04:57]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardInputJobDescription"]') with timeout=10000
[00:05:04]                 │ debg TestSubjects.getVisibleText(mlJobWizardInputJobDescription)
[00:05:04]                 │ debg TestSubjects.find(mlJobWizardInputJobDescription)
[00:05:04]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardInputJobDescription"]') with timeout=10000
[00:05:04]                 └- ✓ pass  (6.6s) "machine learning anomaly detection single metric job creation inputs the job description"
[00:05:04]               └-> job creation inputs job groups
[00:05:04]                 └-> "before each" hook: global before each
[00:05:04]                 │ debg TestSubjects.exists(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:05:04]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=120000
[00:05:04]                 │ debg comboBox.setCustom, comboBoxSelector: mlJobWizardComboBoxJobGroups > comboBoxInput, value: automated
[00:05:04]                 │ debg TestSubjects.find(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:05:04]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:05:06]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:05:06]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:05:06]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobWizardComboBoxJobGroups > comboBoxInput
[00:05:06]                 │ debg TestSubjects.find(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:05:06]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:05:06]                 │ debg comboBox.setCustom, comboBoxSelector: mlJobWizardComboBoxJobGroups > comboBoxInput, value: farequote
[00:05:06]                 │ debg TestSubjects.find(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:05:06]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:05:09]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:05:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:05:09]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobWizardComboBoxJobGroups > comboBoxInput
[00:05:09]                 │ debg TestSubjects.find(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:05:09]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:05:09]                 │ debg comboBox.setCustom, comboBoxSelector: mlJobWizardComboBoxJobGroups > comboBoxInput, value: single-metric
[00:05:09]                 │ debg TestSubjects.find(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:05:09]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:05:11]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:05:11]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:05:11]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobWizardComboBoxJobGroups > comboBoxInput
[00:05:11]                 │ debg TestSubjects.find(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:05:11]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:05:11]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobWizardComboBoxJobGroups > comboBoxInput
[00:05:11]                 │ debg TestSubjects.find(mlJobWizardComboBoxJobGroups > comboBoxInput)
[00:05:11]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxJobGroups"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:05:11]                 └- ✓ pass  (7.4s) "machine learning anomaly detection single metric job creation inputs job groups"
[00:05:11]               └-> job creation opens the additional settings section
[00:05:11]                 └-> "before each" hook: global before each
[00:05:11]                 │ debg TestSubjects.exists(mlJobWizardAdditionalSettingsSection)
[00:05:11]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdditionalSettingsSection"]') with timeout=2500
[00:05:11]                 │ debg --- retry.tryForTime error: [data-test-subj="mlJobWizardAdditionalSettingsSection"] is not displayed
[00:05:12]                 │ debg --- retry.tryForTime failed again with the same message...
[00:05:12]                 │ debg --- retry.tryForTime failed again with the same message...
[00:05:13]                 │ debg --- retry.tryForTime failed again with the same message...
[00:05:13]                 │ debg --- retry.tryForTime failed again with the same message...
[00:05:14]                 │ debg TestSubjects.click(mlJobWizardToggleAdditionalSettingsSection)
[00:05:14]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobWizardToggleAdditionalSettingsSection"]') with timeout=10000
[00:05:14]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardToggleAdditionalSettingsSection"]') with timeout=10000
[00:05:14]                 │ debg TestSubjects.exists(mlJobWizardAdditionalSettingsSection)
[00:05:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdditionalSettingsSection"]') with timeout=1000
[00:05:14]                 └- ✓ pass  (2.7s) "machine learning anomaly detection single metric job creation opens the additional settings section"
[00:05:14]               └-> job creation adds a new custom url
[00:05:14]                 └-> "before each" hook: global before each
[00:05:14]                 │ debg TestSubjects.exists(mlJobWizardAdditionalSettingsSection)
[00:05:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdditionalSettingsSection"]') with timeout=2500
[00:05:14]                 │ debg TestSubjects.findAll(mlJobEditCustomUrlsList > *)
[00:05:14]                 │ debg Find.allByCssSelector('[data-test-subj="mlJobEditCustomUrlsList"] [data-test-subj="*"]') with timeout=10000
[00:05:24]                 │ debg TestSubjects.exists(mlJobNewCustomUrlFormModal)
[00:05:24]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobNewCustomUrlFormModal"]') with timeout=2500
[00:05:27]                 │ debg --- retry.tryForTime error: [data-test-subj="mlJobNewCustomUrlFormModal"] is not displayed
[00:05:27]                 │ debg TestSubjects.click(mlJobOpenCustomUrlFormButton)
[00:05:27]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=10000
[00:05:27]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=10000
[00:05:27]                 │ debg TestSubjects.exists(mlJobNewCustomUrlFormModal)
[00:05:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobNewCustomUrlFormModal"]') with timeout=1000
[00:05:27]                 │ debg TestSubjects.setValue(mlJobCustomUrlLabelInput, check-kibana-dashboard)
[00:05:27]                 │ debg TestSubjects.click(mlJobCustomUrlLabelInput)
[00:05:27]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:05:27]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:05:28]                 │ debg TestSubjects.getAttribute(mlJobCustomUrlLabelInput, value)
[00:05:28]                 │ debg TestSubjects.find(mlJobCustomUrlLabelInput)
[00:05:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:05:28]                 │ debg TestSubjects.click(mlJobAddCustomUrl)
[00:05:28]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:05:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:05:28]                 │ debg TestSubjects.missingOrFail(mlJobNewCustomUrlFormModal)
[00:05:28]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlJobNewCustomUrlFormModal"]') with timeout=10000
[00:05:29]                 │ debg TestSubjects.exists(mlJobEditCustomUrlItem_0)
[00:05:29]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditCustomUrlItem_0"]') with timeout=120000
[00:05:29]                 │ debg TestSubjects.getAttribute(mlJobEditCustomUrlLabelInput_0, value)
[00:05:29]                 │ debg TestSubjects.find(mlJobEditCustomUrlLabelInput_0)
[00:05:29]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobEditCustomUrlLabelInput_0"]') with timeout=10000
[00:05:29]                 └- ✓ pass  (14.6s) "machine learning anomaly detection single metric job creation adds a new custom url"
[00:05:29]               └-> job creation assigns calendars
[00:05:29]                 └-> "before each" hook: global before each
[00:05:29]                 │ debg TestSubjects.exists(mlJobWizardAdditionalSettingsSection)
[00:05:29]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdditionalSettingsSection"]') with timeout=2500
[00:05:29]                 │ debg comboBox.setCustom, comboBoxSelector: mlJobWizardComboBoxCalendars > comboBoxInput, value: wizard-test-calendar_1588083360658
[00:05:29]                 │ debg TestSubjects.find(mlJobWizardComboBoxCalendars > comboBoxInput)
[00:05:29]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxCalendars"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:05:31]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:05:31]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:05:31]                 │ debg TestSubjects.exists(mlJobWizardAdditionalSettingsSection)
[00:05:31]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdditionalSettingsSection"]') with timeout=2500
[00:05:32]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobWizardComboBoxCalendars > comboBoxInput
[00:05:32]                 │ debg TestSubjects.find(mlJobWizardComboBoxCalendars > comboBoxInput)
[00:05:32]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardComboBoxCalendars"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:05:32]                 └- ✓ pass  (2.9s) "machine learning anomaly detection single metric job creation assigns calendars"
[00:05:32]               └-> job creation opens the advanced section
[00:05:32]                 └-> "before each" hook: global before each
[00:05:32]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:32]                 │ debg --- retry.tryForTime error: [data-test-subj="mlJobWizardAdvancedSection"] is not displayed
[00:05:32]                 │ debg --- retry.tryForTime failed again with the same message...
[00:05:33]                 │ debg --- retry.tryForTime failed again with the same message...
[00:05:33]                 │ debg --- retry.tryForTime failed again with the same message...
[00:05:34]                 │ debg --- retry.tryForTime failed again with the same message...
[00:05:34]                 │ debg TestSubjects.click(mlJobWizardToggleAdvancedSection)
[00:05:34]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobWizardToggleAdvancedSection"]') with timeout=10000
[00:05:34]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardToggleAdvancedSection"]') with timeout=10000
[00:05:34]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=1000
[00:05:34]                 └- ✓ pass  (2.8s) "machine learning anomaly detection single metric job creation opens the advanced section"
[00:05:34]               └-> job creation displays the model plot switch
[00:05:34]                 └-> "before each" hook: global before each
[00:05:34]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:34]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection > mlJobWizardSwitchModelPlot)
[00:05:34]                 │ debg Find.existsByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardSwitchModelPlot"]') with timeout=120000
[00:05:34]                 └- ✓ pass  (44ms) "machine learning anomaly detection single metric job creation displays the model plot switch"
[00:05:34]               └-> job creation enables the dedicated index switch
[00:05:34]                 └-> "before each" hook: global before each
[00:05:34]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:34]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection > mlJobWizardSwitchUseDedicatedIndex)
[00:05:34]                 │ debg Find.existsByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardSwitchUseDedicatedIndex"]') with timeout=120000
[00:05:34]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:34]                 │ debg TestSubjects.getAttribute(mlJobWizardSwitchUseDedicatedIndex, aria-checked)
[00:05:34]                 │ debg TestSubjects.find(mlJobWizardSwitchUseDedicatedIndex)
[00:05:34]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardSwitchUseDedicatedIndex"]') with timeout=10000
[00:05:34]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:34]                 │ debg TestSubjects.clickWhenNotDisabled(mlJobWizardAdvancedSection > mlJobWizardSwitchUseDedicatedIndex)
[00:05:34]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardSwitchUseDedicatedIndex"]') with timeout=10000
[00:05:34]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardSwitchUseDedicatedIndex"]') with timeout=10000
[00:05:35]                 │ debg TestSubjects.getAttribute(mlJobWizardSwitchUseDedicatedIndex, aria-checked)
[00:05:35]                 │ debg TestSubjects.find(mlJobWizardSwitchUseDedicatedIndex)
[00:05:35]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardSwitchUseDedicatedIndex"]') with timeout=10000
[00:05:35]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:35]                 └- ✓ pass  (524ms) "machine learning anomaly detection single metric job creation enables the dedicated index switch"
[00:05:35]               └-> job creation inputs the model memory limit
[00:05:35]                 └-> "before each" hook: global before each
[00:05:35]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:35]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection > mlJobWizardInputModelMemoryLimit)
[00:05:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardInputModelMemoryLimit"]') with timeout=120000
[00:05:35]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:35]                 │ debg TestSubjects.setValueWithChecks(mlJobWizardAdvancedSection > mlJobWizardInputModelMemoryLimit, 15mb)
[00:05:35]                 │ debg TestSubjects.click(mlJobWizardAdvancedSection > mlJobWizardInputModelMemoryLimit)
[00:05:35]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardInputModelMemoryLimit"]') with timeout=10000
[00:05:35]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardInputModelMemoryLimit"]') with timeout=10000
[00:05:35]                 │ debg TestSubjects.exists(mlJobWizardAdvancedSection)
[00:05:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"]') with timeout=2500
[00:05:35]                 │ debg TestSubjects.getAttribute(mlJobWizardAdvancedSection > mlJobWizardInputModelMemoryLimit, value)
[00:05:35]                 │ debg TestSubjects.find(mlJobWizardAdvancedSection > mlJobWizardInputModelMemoryLimit)
[00:05:35]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardAdvancedSection"] [data-test-subj="mlJobWizardInputModelMemoryLimit"]') with timeout=10000
[00:05:35]                 └- ✓ pass  (612ms) "machine learning anomaly detection single metric job creation inputs the model memory limit"
[00:05:35]               └-> job creation displays the validation step
[00:05:35]                 └-> "before each" hook: global before each
[00:05:35]                 │ debg TestSubjects.exists(mlJobWizardNavButtonNext)
[00:05:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=120000
[00:05:36]                 │ debg TestSubjects.clickWhenNotDisabled(mlJobWizardNavButtonNext)
[00:05:36]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:05:36]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:05:36]                 │ debg TestSubjects.exists(mlJobWizardStepTitleValidation)
[00:05:36]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardStepTitleValidation"]') with timeout=5000
[00:05:36]                 └- ✓ pass  (659ms) "machine learning anomaly detection single metric job creation displays the validation step"
[00:05:36]               └-> job creation displays the summary step
[00:05:36]                 └-> "before each" hook: global before each
[00:05:36]                 │ debg TestSubjects.exists(mlJobWizardNavButtonNext)
[00:05:36]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=120000
[00:05:36]                 │ debg TestSubjects.clickWhenNotDisabled(mlJobWizardNavButtonNext)
[00:05:36]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:05:36]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardNavButtonNext"]') with timeout=10000
[00:05:37]                 │ debg TestSubjects.exists(mlJobWizardStepTitleSummary)
[00:05:37]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardStepTitleSummary"]') with timeout=5000
[00:05:37]                 └- ✓ pass  (789ms) "machine learning anomaly detection single metric job creation displays the summary step"
[00:05:37]               └-> job creation creates the job and finishes processing
[00:05:37]                 └-> "before each" hook: global before each
[00:05:37]                 │ debg TestSubjects.exists(mlJobWizardButtonCreateJob)
[00:05:37]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardButtonCreateJob"]') with timeout=120000
[00:05:37]                 │ debg TestSubjects.clickWhenNotDisabled(mlJobWizardButtonCreateJob)
[00:05:37]                 │ debg Find.clickByCssSelectorWhenNotDisabled('[data-test-subj="mlJobWizardButtonCreateJob"]') with timeout=10000
[00:05:37]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobWizardButtonCreateJob"]') with timeout=10000
[00:05:37]                 │ debg TestSubjects.exists(mlJobWizardButtonRunInRealTime)
[00:05:37]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobWizardButtonRunInRealTime"]') with timeout=120000
[00:05:37]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] applying create index request using v1 templates [.ml-anomalies-]
[00:05:37]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-anomalies-custom-fq_single_1_1588083360658] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1], mappings [_doc]
[00:05:37]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] updating number_of_replicas to [0] for indices [.ml-anomalies-custom-fq_single_1_1588083360658]
[00:05:38]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] applying create index request using v1 templates [.ml-config]
[00:05:38]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-config] creating index, cause [auto(bulk api)], templates [.ml-config], shards [1]/[1], mappings [_doc]
[00:05:38]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] updating number_of_replicas to [0] for indices [.ml-config]
[00:05:38]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] applying create index request using v1 templates [.ml-notifications-000001]
[00:05:38]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1], mappings [_doc]
[00:05:38]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:05:38]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] Opening job [fq_single_1_1588083360658]
[00:05:38]                 │ info [o.e.x.c.m.u.MlIndexAndAlias] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:05:38]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] applying create index request using v1 templates [.ml-state]
[00:05:38]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1], mappings [_doc]
[00:05:38]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:05:38]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:05:38]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] moving index [.ml-state-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] in policy [ml-size-based-ilm-policy]
[00:05:39]                 │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"wait-for-indexing-complete"}] to [{"phase":"hot","action":"unfollow","name":"wait-for-follow-shard-tasks"}] in policy [ml-size-based-ilm-policy]
[00:05:39]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083360658] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:05:39]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083360658] [autodetect/29905] [CResourceMonitor.cc@71] Setting model memory limit to 15 MB
[00:05:39]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] Successfully set job state to [opened] for job [fq_single_1_1588083360658]
[00:05:39]                 │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083360658] Datafeed started (from: 2016-02-07T00:00:00.000Z to: 2016-02-11T23:59:54.001Z) with frequency [540000ms]
[00:05:40]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-anomalies-custom-fq_single_1_1588083360658/jJIkeWnbS6GC-3825V0P7g] update_mapping [_doc]
[00:05:40]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/ml/1.plugin.js 0:32231 "Response for job query:" Object
[00:05:40]                 │ debg browser[INFO] http://localhost:6131/bundles/plugin/ml/1.plugin.js 0:41928 "checkSaveResponse(): save successful"
[00:05:40]                 │ debg --- retry.tryForTime error: [data-test-subj="mlJobWizardButtonRunInRealTime"] is not displayed
[00:05:42]                 │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083360658] Lookback has finished
[00:05:42]                 │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [no_realtime] attempt to stop datafeed [datafeed-fq_single_1_1588083360658] for job [fq_single_1_1588083360658]
[00:05:42]                 │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [no_realtime] try lock [20s] to stop datafeed [datafeed-fq_single_1_1588083360658] for job [fq_single_1_1588083360658]...
[00:05:42]                 │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [no_realtime] stopping datafeed [datafeed-fq_single_1_1588083360658] for job [fq_single_1_1588083360658], acquired [true]...
[00:05:42]                 │ info [o.e.x.m.d.DatafeedManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [no_realtime] datafeed [datafeed-fq_single_1_1588083360658] for job [fq_single_1_1588083360658] has been stopped
[00:05:42]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] Closing job [fq_single_1_1588083360658], because [close job (api)]
[00:05:42]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083360658] [autodetect/29905] [CCmdSkeleton.cc@45] Handled 2399 records
[00:05:42]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083360658] [autodetect/29905] [CAnomalyJob.cc@1499] Pruning all models
[00:05:42]                 │ info [o.e.x.m.p.AbstractNativeProcess] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083360658] State output finished
[00:05:42]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [.ml-anomalies-custom-fq_single_1_1588083360658/jJIkeWnbS6GC-3825V0P7g] update_mapping [_doc]
[00:05:42]                 │ info [o.e.x.m.j.p.a.o.AutodetectResultProcessor] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083360658] 239 buckets parsed from autodetect output
[00:05:43]                 │ info [o.e.x.m.j.p.a.AutodetectCommunicator] [kibana-ci-immutable-oraclelinux-tests-xl-1588081036150344758] [fq_single_1_1588083360658] job closed
[00:05:43]                 │ debg --- retry.tryForTime failed again with the same message...
[00:05:43]                 └- ✓ pass  (6.5s) "machine learning anomaly detection single metric job creation creates the job and finishes processing"
[00:05:43]               └-> job creation displays the created job in the job list
[00:05:43]                 └-> "before each" hook: global before each
[00:05:43]                 │ debg navigating to ml url: http://localhost:6131/app/ml
[00:05:43]                 │ debg navigate to: http://localhost:6131/app/ml
[00:05:44]                 │ debg browser[INFO] http://localhost:6131/app/ml?_t=1588083705581 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:05:44]                 │
[00:05:44]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:44]                 │ debg ... sleep(700) start
[00:05:45]                 │ debg ... sleep(700) end
[00:05:45]                 │ debg returned from get, calling refresh
[00:05:46]                 │ debg browser[INFO] http://localhost:6131/app/ml?_t=1588083705581 341 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:05:46]                 │
[00:05:46]                 │ debg browser[INFO] http://localhost:6131/bundles/app/core/bootstrap.js 10:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:05:46]                 │ debg currentUrl = http://localhost:6131/app/ml
[00:05:46]                 │          appUrl = http://localhost:6131/app/ml
[00:05:46]                 │ debg TestSubjects.find(kibanaChrome)
[00:05:46]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:05:53]                 │ debg browser[INFO] http://localhost:6131/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js 380:106115 "INFO: 2020-04-28T14:21:54Z
[00:05:53]                 │        Adding connection to http://localhost:6131/elasticsearch
[00:05:53]                 │
[00:05:53]                 │      "
[00:05:53]                 │ debg ... sleep(501) start
[00:05:53]                 │ debg ... sleep(501) end
[00:05:53]                 │ debg in navigateTo url = http://localhost:6131/app/ml#/overview
[00:05:53]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[00:05:54]                 │ debg ... sleep(501) start
[00:05:54]                 │ debg ... sleep(501) end
[00:05:54]                 │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=%28refreshInterval%3A%28pause%3A%21t%2Cvalue%3A0%29%29
[00:05:54]                 │ debg --- retry.try failed again with the same message...
[00:05:55]                 │ debg ... sleep(501) start
[00:05:55]                 │ debg ... sleep(501) end
[00:05:55]                 │ debg in navigateTo url = http://localhost:6131/app/ml#/overview?_g=%28refreshInterval%3A%28pause%3A%21t%2Cvalue%3A0%29%29
[00:05:55]                 │ debg TestSubjects.exists(statusPageContainer)
[00:05:55]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:05:58]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:05:58]                 │ debg TestSubjects.exists(mlPageOverview)
[00:05:58]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageOverview"]') with timeout=2000
[00:05:58]                 │ debg TestSubjects.click(~mlMainTab & ~anomalyDetection)
[00:05:58]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:05:58]                 │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:05:59]                 │ debg TestSubjects.exists(~mlMainTab & ~anomalyDetection & ~selected)
[00:05:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"][data-test-subj~="selected"]') with timeout=120000
[00:05:59]                 │ debg TestSubjects.exists(mlPageJobManagement)
[00:05:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobManagement"]') with timeout=120000
[00:05:59]                 │ debg TestSubjects.findAll(~mlSubTab)
[00:05:59]                 │ debg Find.allByCssSelector('[data-test-subj~="mlSubTab"]') with timeout=3
[00:05:59]                 │ debg TestSubjects.exists(~mlSubTab&~jobManagement)
[00:05:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"]') with timeout=1000
[00:05:59]                 │ debg TestSubjects.exists(~mlSubTab&~anomalyExplorer)
[00:05:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="anomalyExplorer"]') with timeout=1000
[00:05:59]                 │ debg TestSubjects.exists(~mlSubTab&~singleMetricViewer)
[00:05:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="singleMetricViewer"]') with timeout=1000
[00:05:59]                 │ debg TestSubjects.exists(~mlSubTab&~settings)
[00:05:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="settings"]') with timeout=1000
[00:05:59]                 │ debg TestSubjects.click(~mlSubTab & ~jobManagement)
[00:05:59]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"]') with timeout=10000
[00:05:59]                 │ debg Find.findByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"]') with timeout=10000
[00:05:59]                 │ debg TestSubjects.exists(~mlSubTab & ~jobManagement & ~selected)
[00:05:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlSubTab"][data-test-subj~="jobManagement"][data-test-subj~="selected"]') with timeout=120000
[00:05:59]                 │ debg TestSubjects.exists(mlPageJobManagement)
[00:05:59]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobManagement"]') with timeout=120000
[00:06:00]                 │ debg TestSubjects.exists(~mlJobListTable)
[00:06:00]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=60000
[00:06:00]                 │ debg TestSubjects.exists(mlJobListTable loaded)
[00:06:00]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobListTable loaded"]') with timeout=30000
[00:06:00]                 │ debg TestSubjects.exists(~mlJobListTable)
[00:06:00]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=60000
[00:06:00]                 │ debg TestSubjects.exists(mlJobListTable loaded)
[00:06:00]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobListTable loaded"]') with timeout=30000
[00:06:00]                 │ debg TestSubjects.find(mlJobListSearchBar)
[00:06:00]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobListSearchBar"]') with timeout=10000
[00:06:00]                 │ proc [kibana]   log   [14:22:01.955] [warning][plugins][taskManager][taskManager] Cancelling task vis_telemetry "oss_telemetry-vis_telemetry" as it expired at 2020-04-28T14:21:01.700Z after running for 06m 00s (with timeout set at 5m).
[00:06:00]                 │ proc [kibana]   log   [14:22:01.956] [warning][plugins][taskManager][taskManager] Cancelling task lens_telemetry "Lens-lens_telemetry" as it expired at 2020-04-28T14:17:01.700Z after running for 06m 00s (with timeout set at 1m).
[00:06:00]                 │ debg TestSubjects.find(~mlJobListTable)
[00:06:00]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=10000
[00:06:00]                 └- ✓ pass  (17.0s) "machine learning anomaly detection single metric job creation displays the created job in the job list"
[00:06:00]               └-> job creation displays details for the created job in the job list
[00:06:00]                 └-> "before each" hook: global before each
[00:06:00]                 │ debg TestSubjects.click(mlRefreshJobListButton)
[00:06:00]                 │ debg Find.clickByCssSelector('[data-test-subj="mlRefreshJobListButton"]') with timeout=10000
[00:06:00]                 │ debg Find.findByCssSelector('[data-test-subj="mlRefreshJobListButton"]') with timeout=10000
[00:06:01]                 │ debg TestSubjects.exists(~mlJobListTable)
[00:06:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=60000
[00:06:01]                 │ debg TestSubjects.exists(mlJobListTable loaded)
[00:06:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobListTable loaded"]') with timeout=30000
[00:06:01]                 │ debg TestSubjects.find(~mlJobListTable)
[00:06:01]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"]') with timeout=10000
[00:06:01]                 │ debg TestSubjects.exists(~mlJobListTable > ~details-fq_single_1_1588083360658)
[00:06:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083360658"]') with timeout=2500
[00:06:03]                 │ debg --- retry.tryForTime error: [data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083360658"] is not displayed
[00:06:04]                 │ debg TestSubjects.click(~mlJobListTable > ~row-fq_single_1_1588083360658 > mlJobListRowDetailsToggle)
[00:06:04]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_single_1_1588083360658"] [data-test-subj="mlJobListRowDetailsToggle"]') with timeout=10000
[00:06:04]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_single_1_1588083360658"] [data-test-subj="mlJobListRowDetailsToggle"]') with timeout=10000
[00:06:04]                 │ debg TestSubjects.exists(~mlJobListTable > ~details-fq_single_1_1588083360658)
[00:06:04]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083360658"]') with timeout=1000
[00:06:04]                 │ debg TestSubjects.click(~mlJobListTable > ~details-fq_single_1_1588083360658 > mlJobListTab-counts)
[00:06:04]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083360658"] [data-test-subj="mlJobListTab-counts"]') with timeout=10000
[00:06:04]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083360658"] [data-test-subj="mlJobListTab-counts"]') with timeout=10000
[00:06:04]                 │ debg TestSubjects.find(~mlJobListTable > ~details-fq_single_1_1588083360658 > mlJobDetails-counts > mlJobRowDetailsSection-counts)
[00:06:04]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083360658"] [data-test-subj="mlJobDetails-counts"] [data-test-subj="mlJobRowDetailsSection-counts"]') with timeout=10000
[00:06:04]                 │ debg TestSubjects.find(~mlJobListTable > ~details-fq_single_1_1588083360658 > mlJobDetails-counts > mlJobRowDetailsSection-modelSizeStats)
[00:06:04]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083360658"] [data-test-subj="mlJobDetails-counts"] [data-test-subj="mlJobRowDetailsSection-modelSizeStats"]') with timeout=10000
[00:06:04]                 │ debg TestSubjects.exists(~mlJobListTable > ~details-fq_single_1_1588083360658)
[00:06:04]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083360658"]') with timeout=2500
[00:06:04]                 │ debg TestSubjects.click(~mlJobListTable > ~row-fq_single_1_1588083360658 > mlJobListRowDetailsToggle)
[00:06:04]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_single_1_1588083360658"] [data-test-subj="mlJobListRowDetailsToggle"]') with timeout=10000
[00:06:04]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_single_1_1588083360658"] [data-test-subj="mlJobListRowDetailsToggle"]') with timeout=10000
[00:06:04]                 │ debg TestSubjects.missingOrFail(~mlJobListTable > ~details-fq_single_1_1588083360658)
[00:06:04]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="details-fq_single_1_1588083360658"]') with timeout=1000
[00:06:05]                 │ info Taking screenshot "/dev/shm/workspace/kibana/x-pack/test/functional/screenshots/failure/machine learning anomaly detection single metric job creation displays details for the created job in the job list.png"
[00:06:05]                 │ info Current URL is: http://localhost:6131/app/ml#/jobs?_g=(refreshInterval:(pause:!f,value:30000))
[00:06:05]                 │ info Saving page source to: /dev/shm/workspace/kibana/x-pack/test/functional/failure_debug/html/machine learning anomaly detection single metric job creation displays details for the created job in the job list.html
[00:06:05]                 └- ✖ fail: "machine learning anomaly detection single metric job creation displays details for the created job in the job list"
[00:06:05]                 │

Stack Trace

{ Error: expected { job_id: 'fq_single_1_1588083360658',
  result_type: 'model_size_stats',
  model_bytes_exceeded: '0.0 B',
  total_by_field_count: '3',
  total_over_field_count: '0',
  total_partition_field_count: '2',
  bucket_allocation_failures_count: '0',
  memory_status: 'ok',
  failed_category_count: '0',
  timestamp: '2016-02-11 23:00:00' } to sort of equal { job_id: 'fq_single_1_1588083360658',
  result_type: 'model_size_stats',
  model_bytes_exceeded: '0.0 B',
  total_by_field_count: '3',
  total_over_field_count: '0',
  total_partition_field_count: '2',
  bucket_allocation_failures_count: '0',
  memory_status: 'ok',
  timestamp: '2016-02-11 23:00:00' }
    at Assertion.assert (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/kibana/packages/kbn-expect/expect.js:244:8)
    at MlJobTable.assertJobRowDetailsCounts (test/functional/services/machine_learning/job_table.ts:227:33)
    at process._tickCallback (internal/process/next_tick.js:68:7)
  actual:
   '{\n  "bucket_allocation_failures_count": "0"\n  "failed_category_count": "0"\n  "job_id": "fq_single_1_1588083360658"\n  "memory_status": "ok"\n  "model_bytes_exceeded": "0.0 B"\n  "result_type": "model_size_stats"\n  "timestamp": "2016-02-11 23:00:00"\n  "total_by_field_count": "3"\n  "total_over_field_count": "0"\n  "total_partition_field_count": "2"\n}',
  expected:
   '{\n  "bucket_allocation_failures_count": "0"\n  "job_id": "fq_single_1_1588083360658"\n  "memory_status": "ok"\n  "model_bytes_exceeded": "0.0 B"\n  "result_type": "model_size_stats"\n  "timestamp": "2016-02-11 23:00:00"\n  "total_by_field_count": "3"\n  "total_over_field_count": "0"\n  "total_partition_field_count": "2"\n}',
  showDiff: true }

History

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

jloleysens added a commit that referenced this pull request Jun 16, 2020
* initial plugin setup

* add smoke test

* fix license check

* refactor plugin setup

* Server-side create/update ingest pipelines (#62744)

* List pipelines (#62785)

* First iteration of ingest table

* Add action placeholders

* Refactor list and address PR feedback

Refactored the list into smaller pieces and assemble in main.tsx

Also addressed feedback on copy, removed unused notifications dep

* WiP on flyout

Showing name in title

* Add reload button

* Finish first version of flyout

* Slight update to copy

* `delete` -> `edit`

* Address PR feedback

Copy and a11y updates

* Add on failure JSON to flyout if it is available

* Add details json block file and remove ununsed import

Co-authored-by: Elastic Machine <[email protected]>

* [Ingest pipelines] Create pipeline UI (#63017)

* First vertical slice of pipeline editor component

* Made a space for common parameters

* [Ingest pipelines] Edit pipeline page (#63522)

* First iteration of CRUD functionality working

* WiP on moving the pipeline editor to pipeline processor editor

* Finish refactor to work with passing state out

* Refactor and fix tests

* [Ingest pipelines] Polish details panel and empty list (#63926)

* Address some early feedback and use FormDataProvider

FormDataProvider gives a more declarative way to listen to form
state updates.

Also refactored the state reader mechanism.

* [Ingest pipelines] Delete pipeline (#63635)

* [Ingest Node Pipelines] Clone Pipeline (#64049)

* First iteration of clone functionality

Wired up for both the list table and the details flyout in the
list section.

* satisfy eslint

* Turn on sorting for the list table

* Clean up const declarations

* Address PR feedback

Sentence-casify and update some other copy.

* Mark edit and delete as primary actions in list table

* Handle URI encoded chars in pipeline name when cloning

* Update to using the more flexible controlled component pattern

To make this component and mappings editor more consistent, both
will expose a more traditional controlled component interface to
consumers.

In the current implementation this requires that consumers use
`useCallback` for `onUpdate` handlers to avoid an infinite
rendering cycle and to avoid staleness bugs in their `onUpdate`
handlers they need to think about what might make the handler
stale.

This approach comes with the benefits and flexibility of
controlled components at the cost of slightly more complex
consumption of the components.

In future, we can explore adding the uncontrolled component
interface too so that consumers have the option to more simply
render and pull data out only when needed

* Handle sub-form validity

The pipelines processor editor not emits overall validity to
consumers

* Fix Jest test

* Refactor some names

prepareDataOut -> serialize
prepareDataIn -> deserialize
EditorProcessor -> ProcessorInternal

* Mark as private

* Major WiP

Started working on the drag-and-drop-tree and updated some
typings stuff

* [Ingest node pipelines] Privileges (#63850)

* Create privileges check for ingest pipelines app

Also moved the public side logic for checking and rendering
privilege related messages to es_ui_shared/public following the
new __packages_do_not_import__ convention.

* Add ,

* Fix import paths

* Address PR feedback

Fix i18n strings (remove reference to snapshot and restore) and
fix copy referencing snapshot and restore - all copy-pasta errors.

Also remove unused field from missing privileges object.

* Fix issue from resolving merge conflicts

* Add missing app privilege

* Use non-deprecated privilige name

* First iteration of drag and drop tree on feature parity

* First steps toward add on failure handler

Updated reducer logic to create the next copy value using immer.

* First iteration of nested tree with add on failure working

* Refactor and some UI layout updates

- Remove the "id" field on processors for now
- Implement the nested remove and update functionality again

* Remove immer (not call stack safe)

Refac to remove immer and reimplemented the immutable set and
get functions.

* [Ingest Node Pipelines] More lenient treatment of on-failure value (#64411)

* Move file to components folder

* [Ingest pipelines] Simulate pipeline (#64223)

* Updated tree rendering

- turn off dropzones for children
- fixed up some padding and margins
- fixed integration with pipeline_form.tsx

The current implementation still has a lot of jank stemming from
the UX with DnD. Unfortunately the nesting has opened a number
of issues here.

* [Ingest Node Pipelines] Show flyout after editing or creating a pipeline (#64409)

* Show flyout after editing or creating a pipeline

* JSX comment

* Show not found flyout

Copied from CCR

* update not found flyout and fix behavior when viewing details from table

* Reset pipeline name in URI when closing flyout

* Remove encodeURI

Already using encodingURIComponent for unsafe string.

Co-authored-by: Alison Goryachev <[email protected]>

* Clarification of terms

- addProcessor -> addTopLevelProcessor (same in editor modes)
- Expanded comment on ProcessorSelector

* Implement move between lists functionality

Added tests to the reducer for moving in and out of a recusrsive
structure.

* fix TS

* Prevent nesting a parent inside of its own child

* Add comment

* [Ingest pipelines] Cleanup (#64794)

* address review feedback

* remove unused import

* Big refactor to tree rendering structure

DnD tree now converts the nested tree to a flat one and only
consists of _1_ droppable area with a flat array of draggables
that can be combined.

Using the existing logic in the reducer combined with translating
the flat structure changes to a format the nested reducer can
understand looks like a really promising avenue.

There still seems to be a bug with a longer list where items do
not interact properly.

* Remove unused component

* A number of NB changes

- Fixed a subtle serialisation bug with on_failure in options
- Fixed a performance bug by using useRef in pipeline form
- Memoized the drag and drop tree
- Removed use of "isValid" from form lib... I think this should
be removed entirely.

* fix bad conflict resolution

* Implemented a slightly better destination resolution algo.

Also added tests.

* Fix subtle staleness bug, whitelist keys for setValue

* NB styling fix!!

Due to a parent's setting of overflow: hidden the drag and drop
tree had a dead zone that would equal the page overflow limit,
unsetting on the component itself (overflow: auto) relaxes this
limitation.

* Fix stale delete bug too

* Update naming of editor modes and update comments

* Use field types combo box

* Add delete confirmation modal

* Refactor delete modal component file name

* Better visual integration with existing form

* Update layout and styling of form

- added some padding around the new processors editor field
- Updated use of flex box in the pipeline form fields

* Move pipeline processor copy into pipeline processor component

The test button is also now inside of the pipeline processor
editor. Eventually all of this functionality should be moved
into the pipeline processor editor.

* First step of refactor to moving between trees

* First iteration of x-tree drag and drop

* Remove unused import

* Fix jest test types

* Fix up minor i18n issues and fix up layout of on failure

* Remove unnecessary prop

* Update spacing above add processor button to make it more center

* Fix destination resolution algo

* Update dragging resolver unit tests and add a lot more comments

* Use one sorting algo (removed use of euiReorder for now)

* Add placeholder tests and update comments

* Quite a big refactor

- Remove DraggableLocation entirely, only use ProcessorSelector
this simplifies mapping back to reducer instructions quite a lot
- Add tests for special case dragging behaviour

* Fix off by one bug in tests and implementation 🤦🏼‍♂

- Also move processor reducer to it's own folder

* Update behaviour for dragging up across trees and add tests

* Fix combine instruction

* Fix test and i18n issues

* Remove background color

* Fix selector after selector refactor

* A major performance

- Do not re-render the entire tree when editing settings

* Fix component smoke test

* Fix reading value from processor state using processor selector

* [Ingest pipelines] Custom processor form (#66022)

* Re add background color and refactor name of processor item

* Fix file naming and refactor 🚜 dnd tree rendering

- deserialze and serialize were backwards, fixed
- the dnd tree was rendering a flat tree which needed to be
mapped back to the nested tree for updates. This is still the
case but we do use recursive rendering. This enables tree nodes
to better hold local state like whether they are collapsed or not.

* Fix getting of initial on failure processors value

* Update padding styles for containers

* A lot of styling updates to get closer to look of mockup

* A WiP version of th click-tree an alternative to dnd

As a response to really long pipelines we may pivot away from
dnd.

* Remove dnd tree

* clean up reamining dnd tree references

* Clean up and refactor of tree component

To simplify the logic of the tree component processor id's
were added. Also had to update the jest spec to support this

* Added the ability to duplicate a processor

* Fix types in test

* Added duplicate functionality to ui

* Memoize tree components

* address es lint issues

* remove unused import

* Fix editing of custom json

* Address form performance issues

* Add all known missing processors

* Add ability to cancel move

* Fix staleness in test and view request flyouts

* fix type issue

* Remove unused translations and skip funcitonal test for now

* add todo comment

* Fix type issues

* remove poc styles

* disable other move buttons if we have a selected processor

* Refactor drop zone pin to button and add some styling

* Refactor processor editor item

* Update styling and use icon for cancel move action too

* fix nasty integration bug

* some minor optimizations

* prevent parent from being placed in own on failure handler

* Re-add cancel button

* Re-introduce failure processors toggle

* Fix typo

* Add Handler types for processor editor item

* Fix staleness bug for type, refactor classname and fix duplicate
bug not immutably copying values

* Experimenting with padels (revert this to undo if no further
changes have been made)

* Add description and unique ids

* Share links via component-wide context rather than props

* Virtualized list and back to outline dropzones

* Refactor id getter to a service and make it an incrementing number

* Temporary fix for double rendering issue.

This means the pipeline processors component is not controllable
but fixes the double rendering even when processors have not
changed. This is a problem coming from the ingest pipelines
plugin form system outside of this component

* add todo comment

* remove euicode element

* properly handle duplicate flow

* attempt to fix i18n

* split private_tree into it's own component and add comments

* refactor 🚜. rename Tree to ProcessorsTree and move things around

* do not delete the top level arrays for processors and onfailures

* fix typescript error

* Move duplicate, addOnFailure and delete actions into ctx menu

* remove unused import

* add support for pressing esc key to cancel move

* Add outside click listener

* always prompt before deleting a processor

* refactor remove distinction between adding top level and on fail

* add processor button to tree

* Hide the add on failure context menu item for processors with
failure handlers

* Reinstated x-tree moving and highlight and disable for buttons
on move and on edit

* removing ids step 1: remove idGenerator

* remove ids step 2: added inline text input

Also refactored a lot of the tree actions away. Now using
context and the processors editor tree item component for
dispatching actions. The tree item has access to the dispatch
and to the selector which makes it a well positioned component.

Also saves on some props drilling.

* Slight improvement to styling of text input (border)

* Re-implement missing failure toggle test

* address type todo

* Address many type issues and fix yarn.lock

* re-enable create pipeline functional test

* prevent multiple flyouts from opening

* change flyout title when editing an on-failure processor

* absolutely position the failure handlers label

when we render a dropzone on the label, then we move the label
up without affecting overall component height

* fix description behaviour not removing tag if empty

* some minor clean up

* add onflyoutopen cb to tests

* refactor processors editor item to multiple files

also refactored i18n into it's own file. would be good to come
up with a pttaern for doing this more broadly.

* fix add on-failure handler in context menu after refactor

* tag -> new description field

Co-authored-by: Alison Goryachev <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Alison Goryachev <[email protected]>
jloleysens added a commit to jloleysens/kibana that referenced this pull request Jun 16, 2020
* initial plugin setup

* add smoke test

* fix license check

* refactor plugin setup

* Server-side create/update ingest pipelines (elastic#62744)

* List pipelines (elastic#62785)

* First iteration of ingest table

* Add action placeholders

* Refactor list and address PR feedback

Refactored the list into smaller pieces and assemble in main.tsx

Also addressed feedback on copy, removed unused notifications dep

* WiP on flyout

Showing name in title

* Add reload button

* Finish first version of flyout

* Slight update to copy

* `delete` -> `edit`

* Address PR feedback

Copy and a11y updates

* Add on failure JSON to flyout if it is available

* Add details json block file and remove ununsed import

Co-authored-by: Elastic Machine <[email protected]>

* [Ingest pipelines] Create pipeline UI (elastic#63017)

* First vertical slice of pipeline editor component

* Made a space for common parameters

* [Ingest pipelines] Edit pipeline page (elastic#63522)

* First iteration of CRUD functionality working

* WiP on moving the pipeline editor to pipeline processor editor

* Finish refactor to work with passing state out

* Refactor and fix tests

* [Ingest pipelines] Polish details panel and empty list (elastic#63926)

* Address some early feedback and use FormDataProvider

FormDataProvider gives a more declarative way to listen to form
state updates.

Also refactored the state reader mechanism.

* [Ingest pipelines] Delete pipeline (elastic#63635)

* [Ingest Node Pipelines] Clone Pipeline (elastic#64049)

* First iteration of clone functionality

Wired up for both the list table and the details flyout in the
list section.

* satisfy eslint

* Turn on sorting for the list table

* Clean up const declarations

* Address PR feedback

Sentence-casify and update some other copy.

* Mark edit and delete as primary actions in list table

* Handle URI encoded chars in pipeline name when cloning

* Update to using the more flexible controlled component pattern

To make this component and mappings editor more consistent, both
will expose a more traditional controlled component interface to
consumers.

In the current implementation this requires that consumers use
`useCallback` for `onUpdate` handlers to avoid an infinite
rendering cycle and to avoid staleness bugs in their `onUpdate`
handlers they need to think about what might make the handler
stale.

This approach comes with the benefits and flexibility of
controlled components at the cost of slightly more complex
consumption of the components.

In future, we can explore adding the uncontrolled component
interface too so that consumers have the option to more simply
render and pull data out only when needed

* Handle sub-form validity

The pipelines processor editor not emits overall validity to
consumers

* Fix Jest test

* Refactor some names

prepareDataOut -> serialize
prepareDataIn -> deserialize
EditorProcessor -> ProcessorInternal

* Mark as private

* Major WiP

Started working on the drag-and-drop-tree and updated some
typings stuff

* [Ingest node pipelines] Privileges (elastic#63850)

* Create privileges check for ingest pipelines app

Also moved the public side logic for checking and rendering
privilege related messages to es_ui_shared/public following the
new __packages_do_not_import__ convention.

* Add ,

* Fix import paths

* Address PR feedback

Fix i18n strings (remove reference to snapshot and restore) and
fix copy referencing snapshot and restore - all copy-pasta errors.

Also remove unused field from missing privileges object.

* Fix issue from resolving merge conflicts

* Add missing app privilege

* Use non-deprecated privilige name

* First iteration of drag and drop tree on feature parity

* First steps toward add on failure handler

Updated reducer logic to create the next copy value using immer.

* First iteration of nested tree with add on failure working

* Refactor and some UI layout updates

- Remove the "id" field on processors for now
- Implement the nested remove and update functionality again

* Remove immer (not call stack safe)

Refac to remove immer and reimplemented the immutable set and
get functions.

* [Ingest Node Pipelines] More lenient treatment of on-failure value (elastic#64411)

* Move file to components folder

* [Ingest pipelines] Simulate pipeline (elastic#64223)

* Updated tree rendering

- turn off dropzones for children
- fixed up some padding and margins
- fixed integration with pipeline_form.tsx

The current implementation still has a lot of jank stemming from
the UX with DnD. Unfortunately the nesting has opened a number
of issues here.

* [Ingest Node Pipelines] Show flyout after editing or creating a pipeline (elastic#64409)

* Show flyout after editing or creating a pipeline

* JSX comment

* Show not found flyout

Copied from CCR

* update not found flyout and fix behavior when viewing details from table

* Reset pipeline name in URI when closing flyout

* Remove encodeURI

Already using encodingURIComponent for unsafe string.

Co-authored-by: Alison Goryachev <[email protected]>

* Clarification of terms

- addProcessor -> addTopLevelProcessor (same in editor modes)
- Expanded comment on ProcessorSelector

* Implement move between lists functionality

Added tests to the reducer for moving in and out of a recusrsive
structure.

* fix TS

* Prevent nesting a parent inside of its own child

* Add comment

* [Ingest pipelines] Cleanup (elastic#64794)

* address review feedback

* remove unused import

* Big refactor to tree rendering structure

DnD tree now converts the nested tree to a flat one and only
consists of _1_ droppable area with a flat array of draggables
that can be combined.

Using the existing logic in the reducer combined with translating
the flat structure changes to a format the nested reducer can
understand looks like a really promising avenue.

There still seems to be a bug with a longer list where items do
not interact properly.

* Remove unused component

* A number of NB changes

- Fixed a subtle serialisation bug with on_failure in options
- Fixed a performance bug by using useRef in pipeline form
- Memoized the drag and drop tree
- Removed use of "isValid" from form lib... I think this should
be removed entirely.

* fix bad conflict resolution

* Implemented a slightly better destination resolution algo.

Also added tests.

* Fix subtle staleness bug, whitelist keys for setValue

* NB styling fix!!

Due to a parent's setting of overflow: hidden the drag and drop
tree had a dead zone that would equal the page overflow limit,
unsetting on the component itself (overflow: auto) relaxes this
limitation.

* Fix stale delete bug too

* Update naming of editor modes and update comments

* Use field types combo box

* Add delete confirmation modal

* Refactor delete modal component file name

* Better visual integration with existing form

* Update layout and styling of form

- added some padding around the new processors editor field
- Updated use of flex box in the pipeline form fields

* Move pipeline processor copy into pipeline processor component

The test button is also now inside of the pipeline processor
editor. Eventually all of this functionality should be moved
into the pipeline processor editor.

* First step of refactor to moving between trees

* First iteration of x-tree drag and drop

* Remove unused import

* Fix jest test types

* Fix up minor i18n issues and fix up layout of on failure

* Remove unnecessary prop

* Update spacing above add processor button to make it more center

* Fix destination resolution algo

* Update dragging resolver unit tests and add a lot more comments

* Use one sorting algo (removed use of euiReorder for now)

* Add placeholder tests and update comments

* Quite a big refactor

- Remove DraggableLocation entirely, only use ProcessorSelector
this simplifies mapping back to reducer instructions quite a lot
- Add tests for special case dragging behaviour

* Fix off by one bug in tests and implementation 🤦🏼‍♂

- Also move processor reducer to it's own folder

* Update behaviour for dragging up across trees and add tests

* Fix combine instruction

* Fix test and i18n issues

* Remove background color

* Fix selector after selector refactor

* A major performance

- Do not re-render the entire tree when editing settings

* Fix component smoke test

* Fix reading value from processor state using processor selector

* [Ingest pipelines] Custom processor form (elastic#66022)

* Re add background color and refactor name of processor item

* Fix file naming and refactor 🚜 dnd tree rendering

- deserialze and serialize were backwards, fixed
- the dnd tree was rendering a flat tree which needed to be
mapped back to the nested tree for updates. This is still the
case but we do use recursive rendering. This enables tree nodes
to better hold local state like whether they are collapsed or not.

* Fix getting of initial on failure processors value

* Update padding styles for containers

* A lot of styling updates to get closer to look of mockup

* A WiP version of th click-tree an alternative to dnd

As a response to really long pipelines we may pivot away from
dnd.

* Remove dnd tree

* clean up reamining dnd tree references

* Clean up and refactor of tree component

To simplify the logic of the tree component processor id's
were added. Also had to update the jest spec to support this

* Added the ability to duplicate a processor

* Fix types in test

* Added duplicate functionality to ui

* Memoize tree components

* address es lint issues

* remove unused import

* Fix editing of custom json

* Address form performance issues

* Add all known missing processors

* Add ability to cancel move

* Fix staleness in test and view request flyouts

* fix type issue

* Remove unused translations and skip funcitonal test for now

* add todo comment

* Fix type issues

* remove poc styles

* disable other move buttons if we have a selected processor

* Refactor drop zone pin to button and add some styling

* Refactor processor editor item

* Update styling and use icon for cancel move action too

* fix nasty integration bug

* some minor optimizations

* prevent parent from being placed in own on failure handler

* Re-add cancel button

* Re-introduce failure processors toggle

* Fix typo

* Add Handler types for processor editor item

* Fix staleness bug for type, refactor classname and fix duplicate
bug not immutably copying values

* Experimenting with padels (revert this to undo if no further
changes have been made)

* Add description and unique ids

* Share links via component-wide context rather than props

* Virtualized list and back to outline dropzones

* Refactor id getter to a service and make it an incrementing number

* Temporary fix for double rendering issue.

This means the pipeline processors component is not controllable
but fixes the double rendering even when processors have not
changed. This is a problem coming from the ingest pipelines
plugin form system outside of this component

* add todo comment

* remove euicode element

* properly handle duplicate flow

* attempt to fix i18n

* split private_tree into it's own component and add comments

* refactor 🚜. rename Tree to ProcessorsTree and move things around

* do not delete the top level arrays for processors and onfailures

* fix typescript error

* Move duplicate, addOnFailure and delete actions into ctx menu

* remove unused import

* add support for pressing esc key to cancel move

* Add outside click listener

* always prompt before deleting a processor

* refactor remove distinction between adding top level and on fail

* add processor button to tree

* Hide the add on failure context menu item for processors with
failure handlers

* Reinstated x-tree moving and highlight and disable for buttons
on move and on edit

* removing ids step 1: remove idGenerator

* remove ids step 2: added inline text input

Also refactored a lot of the tree actions away. Now using
context and the processors editor tree item component for
dispatching actions. The tree item has access to the dispatch
and to the selector which makes it a well positioned component.

Also saves on some props drilling.

* Slight improvement to styling of text input (border)

* Re-implement missing failure toggle test

* address type todo

* Address many type issues and fix yarn.lock

* re-enable create pipeline functional test

* prevent multiple flyouts from opening

* change flyout title when editing an on-failure processor

* absolutely position the failure handlers label

when we render a dropzone on the label, then we move the label
up without affecting overall component height

* fix description behaviour not removing tag if empty

* some minor clean up

* add onflyoutopen cb to tests

* refactor processors editor item to multiple files

also refactored i18n into it's own file. would be good to come
up with a pttaern for doing this more broadly.

* fix add on-failure handler in context menu after refactor

* tag -> new description field

Co-authored-by: Alison Goryachev <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Alison Goryachev <[email protected]>
jloleysens added a commit that referenced this pull request Jun 16, 2020
* initial plugin setup

* add smoke test

* fix license check

* refactor plugin setup

* Server-side create/update ingest pipelines (#62744)

* List pipelines (#62785)

* First iteration of ingest table

* Add action placeholders

* Refactor list and address PR feedback

Refactored the list into smaller pieces and assemble in main.tsx

Also addressed feedback on copy, removed unused notifications dep

* WiP on flyout

Showing name in title

* Add reload button

* Finish first version of flyout

* Slight update to copy

* `delete` -> `edit`

* Address PR feedback

Copy and a11y updates

* Add on failure JSON to flyout if it is available

* Add details json block file and remove ununsed import

Co-authored-by: Elastic Machine <[email protected]>

* [Ingest pipelines] Create pipeline UI (#63017)

* First vertical slice of pipeline editor component

* Made a space for common parameters

* [Ingest pipelines] Edit pipeline page (#63522)

* First iteration of CRUD functionality working

* WiP on moving the pipeline editor to pipeline processor editor

* Finish refactor to work with passing state out

* Refactor and fix tests

* [Ingest pipelines] Polish details panel and empty list (#63926)

* Address some early feedback and use FormDataProvider

FormDataProvider gives a more declarative way to listen to form
state updates.

Also refactored the state reader mechanism.

* [Ingest pipelines] Delete pipeline (#63635)

* [Ingest Node Pipelines] Clone Pipeline (#64049)

* First iteration of clone functionality

Wired up for both the list table and the details flyout in the
list section.

* satisfy eslint

* Turn on sorting for the list table

* Clean up const declarations

* Address PR feedback

Sentence-casify and update some other copy.

* Mark edit and delete as primary actions in list table

* Handle URI encoded chars in pipeline name when cloning

* Update to using the more flexible controlled component pattern

To make this component and mappings editor more consistent, both
will expose a more traditional controlled component interface to
consumers.

In the current implementation this requires that consumers use
`useCallback` for `onUpdate` handlers to avoid an infinite
rendering cycle and to avoid staleness bugs in their `onUpdate`
handlers they need to think about what might make the handler
stale.

This approach comes with the benefits and flexibility of
controlled components at the cost of slightly more complex
consumption of the components.

In future, we can explore adding the uncontrolled component
interface too so that consumers have the option to more simply
render and pull data out only when needed

* Handle sub-form validity

The pipelines processor editor not emits overall validity to
consumers

* Fix Jest test

* Refactor some names

prepareDataOut -> serialize
prepareDataIn -> deserialize
EditorProcessor -> ProcessorInternal

* Mark as private

* Major WiP

Started working on the drag-and-drop-tree and updated some
typings stuff

* [Ingest node pipelines] Privileges (#63850)

* Create privileges check for ingest pipelines app

Also moved the public side logic for checking and rendering
privilege related messages to es_ui_shared/public following the
new __packages_do_not_import__ convention.

* Add ,

* Fix import paths

* Address PR feedback

Fix i18n strings (remove reference to snapshot and restore) and
fix copy referencing snapshot and restore - all copy-pasta errors.

Also remove unused field from missing privileges object.

* Fix issue from resolving merge conflicts

* Add missing app privilege

* Use non-deprecated privilige name

* First iteration of drag and drop tree on feature parity

* First steps toward add on failure handler

Updated reducer logic to create the next copy value using immer.

* First iteration of nested tree with add on failure working

* Refactor and some UI layout updates

- Remove the "id" field on processors for now
- Implement the nested remove and update functionality again

* Remove immer (not call stack safe)

Refac to remove immer and reimplemented the immutable set and
get functions.

* [Ingest Node Pipelines] More lenient treatment of on-failure value (#64411)

* Move file to components folder

* [Ingest pipelines] Simulate pipeline (#64223)

* Updated tree rendering

- turn off dropzones for children
- fixed up some padding and margins
- fixed integration with pipeline_form.tsx

The current implementation still has a lot of jank stemming from
the UX with DnD. Unfortunately the nesting has opened a number
of issues here.

* [Ingest Node Pipelines] Show flyout after editing or creating a pipeline (#64409)

* Show flyout after editing or creating a pipeline

* JSX comment

* Show not found flyout

Copied from CCR

* update not found flyout and fix behavior when viewing details from table

* Reset pipeline name in URI when closing flyout

* Remove encodeURI

Already using encodingURIComponent for unsafe string.

Co-authored-by: Alison Goryachev <[email protected]>

* Clarification of terms

- addProcessor -> addTopLevelProcessor (same in editor modes)
- Expanded comment on ProcessorSelector

* Implement move between lists functionality

Added tests to the reducer for moving in and out of a recusrsive
structure.

* fix TS

* Prevent nesting a parent inside of its own child

* Add comment

* [Ingest pipelines] Cleanup (#64794)

* address review feedback

* remove unused import

* Big refactor to tree rendering structure

DnD tree now converts the nested tree to a flat one and only
consists of _1_ droppable area with a flat array of draggables
that can be combined.

Using the existing logic in the reducer combined with translating
the flat structure changes to a format the nested reducer can
understand looks like a really promising avenue.

There still seems to be a bug with a longer list where items do
not interact properly.

* Remove unused component

* A number of NB changes

- Fixed a subtle serialisation bug with on_failure in options
- Fixed a performance bug by using useRef in pipeline form
- Memoized the drag and drop tree
- Removed use of "isValid" from form lib... I think this should
be removed entirely.

* fix bad conflict resolution

* Implemented a slightly better destination resolution algo.

Also added tests.

* Fix subtle staleness bug, whitelist keys for setValue

* NB styling fix!!

Due to a parent's setting of overflow: hidden the drag and drop
tree had a dead zone that would equal the page overflow limit,
unsetting on the component itself (overflow: auto) relaxes this
limitation.

* Fix stale delete bug too

* Update naming of editor modes and update comments

* Use field types combo box

* Add delete confirmation modal

* Refactor delete modal component file name

* Better visual integration with existing form

* Update layout and styling of form

- added some padding around the new processors editor field
- Updated use of flex box in the pipeline form fields

* Move pipeline processor copy into pipeline processor component

The test button is also now inside of the pipeline processor
editor. Eventually all of this functionality should be moved
into the pipeline processor editor.

* First step of refactor to moving between trees

* First iteration of x-tree drag and drop

* Remove unused import

* Fix jest test types

* Fix up minor i18n issues and fix up layout of on failure

* Remove unnecessary prop

* Update spacing above add processor button to make it more center

* Fix destination resolution algo

* Update dragging resolver unit tests and add a lot more comments

* Use one sorting algo (removed use of euiReorder for now)

* Add placeholder tests and update comments

* Quite a big refactor

- Remove DraggableLocation entirely, only use ProcessorSelector
this simplifies mapping back to reducer instructions quite a lot
- Add tests for special case dragging behaviour

* Fix off by one bug in tests and implementation 🤦🏼‍♂

- Also move processor reducer to it's own folder

* Update behaviour for dragging up across trees and add tests

* Fix combine instruction

* Fix test and i18n issues

* Remove background color

* Fix selector after selector refactor

* A major performance

- Do not re-render the entire tree when editing settings

* Fix component smoke test

* Fix reading value from processor state using processor selector

* [Ingest pipelines] Custom processor form (#66022)

* Re add background color and refactor name of processor item

* Fix file naming and refactor 🚜 dnd tree rendering

- deserialze and serialize were backwards, fixed
- the dnd tree was rendering a flat tree which needed to be
mapped back to the nested tree for updates. This is still the
case but we do use recursive rendering. This enables tree nodes
to better hold local state like whether they are collapsed or not.

* Fix getting of initial on failure processors value

* Update padding styles for containers

* A lot of styling updates to get closer to look of mockup

* A WiP version of th click-tree an alternative to dnd

As a response to really long pipelines we may pivot away from
dnd.

* Remove dnd tree

* clean up reamining dnd tree references

* Clean up and refactor of tree component

To simplify the logic of the tree component processor id's
were added. Also had to update the jest spec to support this

* Added the ability to duplicate a processor

* Fix types in test

* Added duplicate functionality to ui

* Memoize tree components

* address es lint issues

* remove unused import

* Fix editing of custom json

* Address form performance issues

* Add all known missing processors

* Add ability to cancel move

* Fix staleness in test and view request flyouts

* fix type issue

* Remove unused translations and skip funcitonal test for now

* add todo comment

* Fix type issues

* remove poc styles

* disable other move buttons if we have a selected processor

* Refactor drop zone pin to button and add some styling

* Refactor processor editor item

* Update styling and use icon for cancel move action too

* fix nasty integration bug

* some minor optimizations

* prevent parent from being placed in own on failure handler

* Re-add cancel button

* Re-introduce failure processors toggle

* Fix typo

* Add Handler types for processor editor item

* Fix staleness bug for type, refactor classname and fix duplicate
bug not immutably copying values

* Experimenting with padels (revert this to undo if no further
changes have been made)

* Add description and unique ids

* Share links via component-wide context rather than props

* Virtualized list and back to outline dropzones

* Refactor id getter to a service and make it an incrementing number

* Temporary fix for double rendering issue.

This means the pipeline processors component is not controllable
but fixes the double rendering even when processors have not
changed. This is a problem coming from the ingest pipelines
plugin form system outside of this component

* add todo comment

* remove euicode element

* properly handle duplicate flow

* attempt to fix i18n

* split private_tree into it's own component and add comments

* refactor 🚜. rename Tree to ProcessorsTree and move things around

* do not delete the top level arrays for processors and onfailures

* fix typescript error

* Move duplicate, addOnFailure and delete actions into ctx menu

* remove unused import

* add support for pressing esc key to cancel move

* Add outside click listener

* always prompt before deleting a processor

* refactor remove distinction between adding top level and on fail

* add processor button to tree

* Hide the add on failure context menu item for processors with
failure handlers

* Reinstated x-tree moving and highlight and disable for buttons
on move and on edit

* removing ids step 1: remove idGenerator

* remove ids step 2: added inline text input

Also refactored a lot of the tree actions away. Now using
context and the processors editor tree item component for
dispatching actions. The tree item has access to the dispatch
and to the selector which makes it a well positioned component.

Also saves on some props drilling.

* Slight improvement to styling of text input (border)

* Re-implement missing failure toggle test

* address type todo

* Address many type issues and fix yarn.lock

* re-enable create pipeline functional test

* prevent multiple flyouts from opening

* change flyout title when editing an on-failure processor

* absolutely position the failure handlers label

when we render a dropzone on the label, then we move the label
up without affecting overall component height

* fix description behaviour not removing tag if empty

* some minor clean up

* add onflyoutopen cb to tests

* refactor processors editor item to multiple files

also refactored i18n into it's own file. would be good to come
up with a pttaern for doing this more broadly.

* fix add on-failure handler in context menu after refactor

* tag -> new description field

Co-authored-by: Alison Goryachev <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Alison Goryachev <[email protected]>

Co-authored-by: Alison Goryachev <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Alison Goryachev <[email protected]>
mistic added a commit to mistic/kibana that referenced this pull request Jun 24, 2020
chore(NA): merge changes on renovate config file

chore(NA): move everything under alias lodash4

chore(NA): missing lodash to lodash4 alias

chore(NA): migrate packages to lodash4

chore(NA): update renovate cfg file

chore(NA): skip failing test

chore(NA): first remove of alias lodash4

chore(NA): remove lodash4 alias

chore(NA): remove skip from test

[ES UI] Error handling (#68809)

[Console] Scrub the lead and trailing brackets from ipv6 host names (#68991)

* scrub the lead and trailing brackets from ipv6 host names

* Update comment

* refactor: scrub -> sanitize

Co-authored-by: Elastic Machine <[email protected]>

fix spec color highlighting not working on vega vis (#68995)

Co-authored-by: Elastic Machine <[email protected]>

[SECURITY] rename server plugin to siem (#69044)

* rename server plugin to siem to avoid privilege issue

* review from alerting

* missing change with rename

* fix tests

* missing api integration test

* fix api integration spaces

Type safe browser.executeAsync (#69018)

* make browserAsync type safe

* adopt tests

* prefer unknown over any

* simplify signature

fixes 'Configures a new connector' flaky test (#69011)

Co-authored-by: Elastic Machine <[email protected]>

Embed dashboard by value example & some embeddable clean up (#67783)

Added example for using dashboard container by value
1.1 Refactored embeddable explorer e2e test to use new example, removed not needed kbn_tp_embeddable_explorer plugin.
For embeddable explorer examples went away from using getFactoryById() to improve type checks
There is new component a replacement for EmbeddableFactoryRenderer with slightly more flexible api: EmbeddableRenderer.
3.1 We can improve it going forward to support more use case

[Endpoint] Adding alerts route (#68183)

* Adding alerts route

* Adding related alerts generator changes, tests, and script updates

* Fixing missed parameter

* Aligning the AlertEvent and ResolverEvent definition

* Fixing type errors

* Fixing import error

Co-authored-by: Elastic Machine <[email protected]>

[Monitoring] Ensure we use existing Elasticsearch config (#68389)

* Ensure we use existing Elasticsearch config

* Use separate type for this to ensure custom properties work

* PR suggestions

* PR feedback

* PR feedback

* Fix type issues

* PR feedback

[APM] Changes to duration formatting (#69039)

* [APM] Changes to duration formatting

* Change the threshold for showing microseconds to 1 millisecond instead of 10. This means you now get "900 µs/1.3 ms/20.0 ms" instead of "900 µs/1300 µs/20 ms."
* Change milliseconds formatted with `asDuration` to be `asDecimal` instead of `asInteger`. That means you get "0.0 ms/2.5 ms/3.0 ms" instead of "0 ms/2 ms/3 ms."
* Tables were all using their own module-scoped functions that called `asDuration` to format things as decimal milliseconds. Extract this to an `asMillisecondDuration` function exported from the duration helpers and use it in all the tables.
* Change `getResponseTimeseries` in chart selectors to use `asDuration` to make all chart timeseries units consistent.
* Don't export `convertTo` from the duration helpers as it's now not used anywhere. Always use a more specific exported function for more consistency.
* Change ">=" to "≥" in the ML flyout text.

* Update e2e snapshot

Co-authored-by: Elastic Machine <[email protected]>

[SECURITY SOLUTION] Task/endpoint details to fleet (#68710)

[SECURITYSOLUTION][INGEST] Fixes endpoint link, adds link from endpoint details to fleet

Co-authored-by: Elastic Machine <[email protected]>

Set wrap to the errorLink so it doesn't go outside of box (#67797)

* set wrap to the errorLink so it doesnt go outside of box

* updating

* set wrap to the errorLink so it doesnt go outside of box

* updating

* Show full message on hover

Co-authored-by: Nathan L Smith <[email protected]>

[Metrics UI] Add preview feature for metric threshold alerts (#67684)

Co-authored-by: Elastic Machine <[email protected]>

[skip-ci] Rename @elastic/pulse to @elastic/kibana-telemetry (#69181)

try to fix integration test by making template more specific (#69138)

Co-authored-by: Elastic Machine <[email protected]>

[Alerting] Update Index Threshold to use columns in EuiExpression (#69051)

Add enroll agent action to config action menu (#68840)

Co-authored-by: Elastic Machine <[email protected]>

Don't use filter to get default config & output (#69088)

* Don't use filter to get default config & output

the KQL parsing takes up a lot of CPU time. Avoid it with a search string

Also add a `refresh: false` as suggested by @bkobel

* Does restoring await fix CI?

* Remove 'refresh: false' from agent enroll

Does this this fix the failing test? It does keep the PR more focused

Co-authored-by: Elastic Machine <[email protected]>

[SIEM][Detections] In progress alert state (#68569)

[Endpoint] Remove dependency on ingest for the index patterns (#69058)

* Remove dependency on ingest for the index patterns

* Fixing the tests

* Fixing test

* Use variable instead of class

Updates the Release Notes content in CONTRIBUTING (#69032)

* Updates the Release Notes content in CONTRIBUTING

* Release Notes guidelines

* Fixes bulleted list indentation

Fix plugin lifecycle log to only include server plugins (#68686)

Co-authored-by: Elastic Machine <[email protected]>

[Ingest Manager] Add ability to copy an agent config (#68737)

* Add copy agent config endpoint, schema types, and request hook

* Add copy config to context menu and modal

* Change data sources to be copied via bulk instead of singles in parallel

* Add copy endpoint to openapi spec file

* Add api integration tests

Co-authored-by: Elastic Machine <[email protected]>

[ML] Allow editing of model_snapshot_retention_days (#69003)

* [ML] Allow editing of model_snapshot_retention_days

* removing commented code

* flooring number input

* adding daily_model_snapshot_retention_after_days

* updating default values

Co-authored-by: Elastic Machine <[email protected]>

Remove obsolete custom types from super date picker handlers. (#69038)

Co-authored-by: Elastic Machine <[email protected]>

Using correct index patterns (#69208)

[Endpoint] [ES Archiver] Allowing create option to be passed through the cli for es archiver (#69191)

* Allowing create option to be passed through the cli

* Using kebab casing

[Security] siem to securitySolution SO migration (#68776)

chore(NA): include hidden files when creating package with plugin helpers (#68247)

Co-authored-by: Elastic Machine <[email protected]>

[Reporting/Server] register plugin routes synchronously (#68976)

* register routes synchronously

* back out some refactoring

* comment fix

* fix tests

* register route handler context provider

* Add function level comments in core methods

* fix tests

* revert editor help

* route context is the ReportingStart contract

* Fix reporting job route tests

* Fix generation tests

Co-authored-by: Joel Griffith <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>

[release-notes] add script to generate release notes from PRs (#68816)

Co-authored-by: spalger <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>

Sort filter fields by items that start with typed characters. (#68585)

[kbn/optimizer] share all plugin bundles (#68986)

Co-authored-by: spalger <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>

[CI] GitHub check details link to test reports and errorlevel (#69157)

[Alerting] Adds API for executing actions immediately (#68897)

This PR adds an API to the AlertsClient which allows users to execute actions immediately, rather than via TaskManager.

This also moves the TaskManager based execution to a new api on ActionsClient along side the immediate execution.

stabilize flaky embeddables/adding_children take 2 (#68873)

* wait for loading indicator to be deleted

* improve with retry

* Update test/examples/embeddables/adding_children.ts

Co-authored-by: Spencer <[email protected]>

Co-authored-by: Spencer <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>

Update vega version (#68639)

* update vega version

* a11y skip test

* a11y skip test attempt 2

* adding back all a11y tests

* fix failed karma test

* remove extra  0BSD license

* coalesce yarn.lock versions a little

* update kbn/pm dist

* fix CI

* fix Vega View for ML

Co-authored-by: Michail Yasonik <[email protected]>
Co-authored-by: spalger <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>

[APM] Fix confusing request/minute viz (#69143)

[Ingest pipelines] Fix create pipeline button copy (#69118)

[ILM] Update doc link (#68923)

[ML] Model snapshot management (#68182)

* [ML] Model snapshot management

* more updates

* adding calendar range

* updating layout

* multiple calendars

* moving calendar creator

* fixing chart issues

* fixing chart issues

* improving calendar rendering

* adding capabilities checks

* code clean up

* fixing end time argument type

* fix translations

* code clean up

* comments based on review

* changes based on review

* fixing include

* adding useMemo to theme function

[Maps] Security layer wizards (#68290)

* [Maps] security layer wizard

* index pattern select

* use IndexPattern

* destination layer

* source layer

* cache security index patterns

* line layer

* use top hits

* tslint

* unit test

* fix loading speed and i18n

* handle case where ui setting siem:defaultIndex does not exist

* tslint

* review feedback

* extract lazy load bundle from map embeddables

* expose createSecurityLayers via plugin start

* tslint

* export MapsPluginStart

* fix path move

* review feedback

* fix import

Co-authored-by: Elastic Machine <[email protected]>

[Ingest Node Pipelines] Pipeline Processors Editor (#66021)

* initial plugin setup

* add smoke test

* fix license check

* refactor plugin setup

* Server-side create/update ingest pipelines (#62744)

* List pipelines (#62785)

* First iteration of ingest table

* Add action placeholders

* Refactor list and address PR feedback

Refactored the list into smaller pieces and assemble in main.tsx

Also addressed feedback on copy, removed unused notifications dep

* WiP on flyout

Showing name in title

* Add reload button

* Finish first version of flyout

* Slight update to copy

* `delete` -> `edit`

* Address PR feedback

Copy and a11y updates

* Add on failure JSON to flyout if it is available

* Add details json block file and remove ununsed import

Co-authored-by: Elastic Machine <[email protected]>

* [Ingest pipelines] Create pipeline UI (#63017)

* First vertical slice of pipeline editor component

* Made a space for common parameters

* [Ingest pipelines] Edit pipeline page (#63522)

* First iteration of CRUD functionality working

* WiP on moving the pipeline editor to pipeline processor editor

* Finish refactor to work with passing state out

* Refactor and fix tests

* [Ingest pipelines] Polish details panel and empty list (#63926)

* Address some early feedback and use FormDataProvider

FormDataProvider gives a more declarative way to listen to form
state updates.

Also refactored the state reader mechanism.

* [Ingest pipelines] Delete pipeline (#63635)

* [Ingest Node Pipelines] Clone Pipeline (#64049)

* First iteration of clone functionality

Wired up for both the list table and the details flyout in the
list section.

* satisfy eslint

* Turn on sorting for the list table

* Clean up const declarations

* Address PR feedback

Sentence-casify and update some other copy.

* Mark edit and delete as primary actions in list table

* Handle URI encoded chars in pipeline name when cloning

* Update to using the more flexible controlled component pattern

To make this component and mappings editor more consistent, both
will expose a more traditional controlled component interface to
consumers.

In the current implementation this requires that consumers use
`useCallback` for `onUpdate` handlers to avoid an infinite
rendering cycle and to avoid staleness bugs in their `onUpdate`
handlers they need to think about what might make the handler
stale.

This approach comes with the benefits and flexibility of
controlled components at the cost of slightly more complex
consumption of the components.

In future, we can explore adding the uncontrolled component
interface too so that consumers have the option to more simply
render and pull data out only when needed

* Handle sub-form validity

The pipelines processor editor not emits overall validity to
consumers

* Fix Jest test

* Refactor some names

prepareDataOut -> serialize
prepareDataIn -> deserialize
EditorProcessor -> ProcessorInternal

* Mark as private

* Major WiP

Started working on the drag-and-drop-tree and updated some
typings stuff

* [Ingest node pipelines] Privileges (#63850)

* Create privileges check for ingest pipelines app

Also moved the public side logic for checking and rendering
privilege related messages to es_ui_shared/public following the
new __packages_do_not_import__ convention.

* Add ,

* Fix import paths

* Address PR feedback

Fix i18n strings (remove reference to snapshot and restore) and
fix copy referencing snapshot and restore - all copy-pasta errors.

Also remove unused field from missing privileges object.

* Fix issue from resolving merge conflicts

* Add missing app privilege

* Use non-deprecated privilige name

* First iteration of drag and drop tree on feature parity

* First steps toward add on failure handler

Updated reducer logic to create the next copy value using immer.

* First iteration of nested tree with add on failure working

* Refactor and some UI layout updates

- Remove the "id" field on processors for now
- Implement the nested remove and update functionality again

* Remove immer (not call stack safe)

Refac to remove immer and reimplemented the immutable set and
get functions.

* [Ingest Node Pipelines] More lenient treatment of on-failure value (#64411)

* Move file to components folder

* [Ingest pipelines] Simulate pipeline (#64223)

* Updated tree rendering

- turn off dropzones for children
- fixed up some padding and margins
- fixed integration with pipeline_form.tsx

The current implementation still has a lot of jank stemming from
the UX with DnD. Unfortunately the nesting has opened a number
of issues here.

* [Ingest Node Pipelines] Show flyout after editing or creating a pipeline (#64409)

* Show flyout after editing or creating a pipeline

* JSX comment

* Show not found flyout

Copied from CCR

* update not found flyout and fix behavior when viewing details from table

* Reset pipeline name in URI when closing flyout

* Remove encodeURI

Already using encodingURIComponent for unsafe string.

Co-authored-by: Alison Goryachev <[email protected]>

* Clarification of terms

- addProcessor -> addTopLevelProcessor (same in editor modes)
- Expanded comment on ProcessorSelector

* Implement move between lists functionality

Added tests to the reducer for moving in and out of a recusrsive
structure.

* fix TS

* Prevent nesting a parent inside of its own child

* Add comment

* [Ingest pipelines] Cleanup (#64794)

* address review feedback

* remove unused import

* Big refactor to tree rendering structure

DnD tree now converts the nested tree to a flat one and only
consists of _1_ droppable area with a flat array of draggables
that can be combined.

Using the existing logic in the reducer combined with translating
the flat structure changes to a format the nested reducer can
understand looks like a really promising avenue.

There still seems to be a bug with a longer list where items do
not interact properly.

* Remove unused component

* A number of NB changes

- Fixed a subtle serialisation bug with on_failure in options
- Fixed a performance bug by using useRef in pipeline form
- Memoized the drag and drop tree
- Removed use of "isValid" from form lib... I think this should
be removed entirely.

* fix bad conflict resolution

* Implemented a slightly better destination resolution algo.

Also added tests.

* Fix subtle staleness bug, whitelist keys for setValue

* NB styling fix!!

Due to a parent's setting of overflow: hidden the drag and drop
tree had a dead zone that would equal the page overflow limit,
unsetting on the component itself (overflow: auto) relaxes this
limitation.

* Fix stale delete bug too

* Update naming of editor modes and update comments

* Use field types combo box

* Add delete confirmation modal

* Refactor delete modal component file name

* Better visual integration with existing form

* Update layout and styling of form

- added some padding around the new processors editor field
- Updated use of flex box in the pipeline form fields

* Move pipeline processor copy into pipeline processor component

The test button is also now inside of the pipeline processor
editor. Eventually all of this functionality should be moved
into the pipeline processor editor.

* First step of refactor to moving between trees

* First iteration of x-tree drag and drop

* Remove unused import

* Fix jest test types

* Fix up minor i18n issues and fix up layout of on failure

* Remove unnecessary prop

* Update spacing above add processor button to make it more center

* Fix destination resolution algo

* Update dragging resolver unit tests and add a lot more comments

* Use one sorting algo (removed use of euiReorder for now)

* Add placeholder tests and update comments

* Quite a big refactor

- Remove DraggableLocation entirely, only use ProcessorSelector
this simplifies mapping back to reducer instructions quite a lot
- Add tests for special case dragging behaviour

* Fix off by one bug in tests and implementation 🤦🏼‍♂

- Also move processor reducer to it's own folder

* Update behaviour for dragging up across trees and add tests

* Fix combine instruction

* Fix test and i18n issues

* Remove background color

* Fix selector after selector refactor

* A major performance

- Do not re-render the entire tree when editing settings

* Fix component smoke test

* Fix reading value from processor state using processor selector

* [Ingest pipelines] Custom processor form (#66022)

* Re add background color and refactor name of processor item

* Fix file naming and refactor 🚜 dnd tree rendering

- deserialze and serialize were backwards, fixed
- the dnd tree was rendering a flat tree which needed to be
mapped back to the nested tree for updates. This is still the
case but we do use recursive rendering. This enables tree nodes
to better hold local state like whether they are collapsed or not.

* Fix getting of initial on failure processors value

* Update padding styles for containers

* A lot of styling updates to get closer to look of mockup

* A WiP version of th click-tree an alternative to dnd

As a response to really long pipelines we may pivot away from
dnd.

* Remove dnd tree

* clean up reamining dnd tree references

* Clean up and refactor of tree component

To simplify the logic of the tree component processor id's
were added. Also had to update the jest spec to support this

* Added the ability to duplicate a processor

* Fix types in test

* Added duplicate functionality to ui

* Memoize tree components

* address es lint issues

* remove unused import

* Fix editing of custom json

* Address form performance issues

* Add all known missing processors

* Add ability to cancel move

* Fix staleness in test and view request flyouts

* fix type issue

* Remove unused translations and skip funcitonal test for now

* add todo comment

* Fix type issues

* remove poc styles

* disable other move buttons if we have a selected processor

* Refactor drop zone pin to button and add some styling

* Refactor processor editor item

* Update styling and use icon for cancel move action too

* fix nasty integration bug

* some minor optimizations

* prevent parent from being placed in own on failure handler

* Re-add cancel button

* Re-introduce failure processors toggle

* Fix typo

* Add Handler types for processor editor item

* Fix staleness bug for type, refactor classname and fix duplicate
bug not immutably copying values

* Experimenting with padels (revert this to undo if no further
changes have been made)

* Add description and unique ids

* Share links via component-wide context rather than props

* Virtualized list and back to outline dropzones

* Refactor id getter to a service and make it an incrementing number

* Temporary fix for double rendering issue.

This means the pipeline processors component is not controllable
but fixes the double rendering even when processors have not
changed. This is a problem coming from the ingest pipelines
plugin form system outside of this component

* add todo comment

* remove euicode element

* properly handle duplicate flow

* attempt to fix i18n

* split private_tree into it's own component and add comments

* refactor 🚜. rename Tree to ProcessorsTree and move things around

* do not delete the top level arrays for processors and onfailures

* fix typescript error

* Move duplicate, addOnFailure and delete actions into ctx menu

* remove unused import

* add support for pressing esc key to cancel move

* Add outside click listener

* always prompt before deleting a processor

* refactor remove distinction between adding top level and on fail

* add processor button to tree

* Hide the add on failure context menu item for processors with
failure handlers

* Reinstated x-tree moving and highlight and disable for buttons
on move and on edit

* removing ids step 1: remove idGenerator

* remove ids step 2: added inline text input

Also refactored a lot of the tree actions away. Now using
context and the processors editor tree item component for
dispatching actions. The tree item has access to the dispatch
and to the selector which makes it a well positioned component.

Also saves on some props drilling.

* Slight improvement to styling of text input (border)

* Re-implement missing failure toggle test

* address type todo

* Address many type issues and fix yarn.lock

* re-enable create pipeline functional test

* prevent multiple flyouts from opening

* change flyout title when editing an on-failure processor

* absolutely position the failure handlers label

when we render a dropzone on the label, then we move the label
up without affecting overall component height

* fix description behaviour not removing tag if empty

* some minor clean up

* add onflyoutopen cb to tests

* refactor processors editor item to multiple files

also refactored i18n into it's own file. would be good to come
up with a pttaern for doing this more broadly.

* fix add on-failure handler in context menu after refactor

* tag -> new description field

Co-authored-by: Alison Goryachev <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Alison Goryachev <[email protected]>

[ML] DF Analytics Results: do not hide query bar and table on query syntax error (#69196)

* do not hide query bar and table if query syntax error

* check for query error in analytics exploration

[Ingest Manager] Use search param vs KQL for events count (#69209)

* Replace filter with search in events count

Co-authored-by: Elastic Machine <[email protected]>

[Ingest Manager] Use search param vs KQL to find default agent (#69211)

* Remove another instance of filter for is_default

Co-authored-by: Elastic Machine <[email protected]>

[SIEM][Detection Engine] Fixes a stale view/query within the signals table when re-opening/closing signals

Fixes a one liner bug where we were not using waitFor and could have stale views of data from the timeline. This removes that by adding a `waitFor` when setting the signals to be closed, open, in-progress, etc...

This also adds a new `waitFor` for the end to end tests and fixes other tests to use that rather than doing a wait for 5 seconds. This should keep the end to end backend tests fast.

Before this you could sometimes try to re-open 3 signals like below and it would not change the signals to being open but rather re-query the stale view and show the same signals as being closed when they are not closed:
![crop_bug](https://user-images.githubusercontent.com/1151048/84713572-8b5e7f00-af28-11ea-80b6-2ad67f16b7df.gif)

Now with this PR, those signals will show as being re-opened and the closed signals will update correctly within the same UI on the same tab.

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios

[Observability] Update landing page copy and content (#69247)

* removing try it section

* removing try it section

feat: instrument navigation changes using RUM agent (#67633)

* feat: instrument navigation changes using RUM agent

* chore: rebase and change application contract

* chore: fix type tests

* docs: update public.md doc

* chore: remove internal application export

[Uptime] Monitor availability reporting (#67790)

Co-authored-by: Elastic Machine <[email protected]>

[DOCS] Adds classification to data frame analytics overview (#69068)

Bump react-redux (#69182)

[kbn/es] only make one attempt in tests to avoid timeout (#69197)

Co-authored-by: spalger <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>

Resolve security cloud test failures (#68935)

Co-authored-by: Joe Portner <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>

SIEM] Moves validation up to the common section

Moves validation up to the common section so it can be used by others in common for API boundary validation.

[QA] Code coverage: fix flaky tests (#69272)

* skip test

* [page_objects/common_page] update closing toast

use navigateToUrl instead of window location (#69167)

[kbn/optimizer] fix windows compatibility (#69304)

Co-authored-by: spalger <[email protected]>

[Search service] Refactor the way server-side search strategies are registered (#68452)

* [search] Refactor the way search strategies are registered/retrieved on the server

* Fix types and tests and update docs

* Fix failing test

* Fix build of example plugin

* Fix functional test

* Make server strategies sync

Co-authored-by: Liza K <[email protected]>

[ci/getCheckoutInfo] retry fetching upstream changes to calculate mergeBase (#69320)

Co-authored-by: spalger <[email protected]>

[QA] [Code Coverage] Doc update (#69204)

Co-authored-by: Elastic Machine <[email protected]>

[CI] Fix packer cache git branch reference value (#69207)

[kbn/pm] only count cached project (#69113)

Co-authored-by: spalger <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>

[Reporting] Prepare export type definitions for Task Manager (#65213)

[APM] Fix service maps not loading when there are no APM ML jobs (#69240)

* Closes #69238 by handling 404 thrown error from the query for APM ML jobs.

* Improved coded readability

* moved anomaly job fetch to new function getApmAnomalyDetectionJobs for
improved readability and only handle a 404 status code response else throw

[BundleRefPlugin] resolve imports to files too (#69241)

Co-authored-by: spalger <[email protected]>

[DOCS] Fixes license management links (#69347)

[Component template] Details flyout (#68732)

[SIEM] Adds example unit test to convert KQL using a nested query

Adds example unit test to convert KQL using a nested query

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios

Explore underlying data (#68496)

* feat: 🎸 stub discover_enhanced plugin

* feat: 🎸 improve view in discover action

* feat: 🎸 add URL generator to "View in Discover" action

* feat: 🎸 implement navigation and getHref in view raw logs actio

* fix: 🐛 disable action in "edit" mode

* refactor: 💡 renamce context menu view in discover action

* feat: 🎸 rename action to "explore data"

* fix: 🐛 correctly generate action path

* feat: 🎸 add internationalization to "explore action"

* fix: 🐛 correctly parse generated Discover URL path

* test: 💍 setup basic functional tests

* refactor: 💡 modularize url generation logic

* feat: 🎸 export CommonlyUsed type

* test: 💍 add test subjects to panel custom time range modal

* test: 💍 add index patterna and time range functional tests

* refactor: 💡 rename action file

* refactor: 💡 use URL generator from Discover plugin's contract

* test: 💍 add "Explore raw data" action unit tests

* fix: 🐛 import share plugin to check if it is enabled

* Update x-pack/plugins/discover_enhanced/public/actions/view_in_discover/explore_data_context_menu_action.ts

Co-authored-by: Matthias Wilhelm <[email protected]>

* chore: 🤖 add discover_enhanced to KibanaApp codeowners

* test: 💍 improve "Explore underlying data" functional tests

* test: 💍 improve <a> link assertion

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Matthias Wilhelm <[email protected]>

[APM] Only add decimals for numbers below 10 (#69334)

Replaces the Custom Color Picker on TSVB with the EuiColorPicker (#68888)

* Replace the Custom Color Picker on TSVB with the EuiColorPicker

* Remove the custom picker sass

* Remove private modules of eui and the custom color swatches

* Clear the color

* changes in test implementation

Co-authored-by: Elastic Machine <[email protected]>

[SIEM][Timeline] Persist timeline to localStorage (#67156)

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Xavier Mouligneau <[email protected]>

feat: 🎸 don't show drilldown action in "edit" mode (#69371)

[ML] Functional tests - add more recognize and setup module API tests (#69251)

This PR adds a couple recognize module and setup module API integration tests.

[ML] Functional tests - Reduce DFA job model memory (#69295)

With the improvements in the model memory estimation for DFA jobs, the required memory limit could be reduced, which allows execution in a low-memory environment (like the 1GB ML node in a cloud trial).

Update dependency @elastic/charts to v19.5.2 (#69126)

Update @elastic/charts to 19.5.2

Co-authored-by: nickofthyme <[email protected]>

[SIEM][Timeline] Minor timeline improvement (#69386)

[DOCS] Updates titles in Maps docs (#68703)

* [DOCS] Updates titles in Maps docs

* [DOCS] Changes Elastic Maps to Maps to match the UI

* [DOCS] Fixes titles

Co-authored-by: Elastic Machine <[email protected]>

[Ingest Manager][Endpoint] Add Endpoint Create Policy flow with Ingest (#68955)

* Ingest: add data-test-subj prop support to Ingest components
* Ingest: Add Context Provider to bridge History from Kibana to Hash router
* Ingest: Added support for route state in Create Datasource page
* Endpoint: Add Create button to Polices List header
* Endpoint: Added support for passing of state from endpoint to ingest on policy
* Endpoint: additional functional test cases

[APM] Replace ML index queries with searching via mlAnomalySearch API (#69099)

* Closes #69092 by replacing direct queries on ml indices with seaching
via the `mlAnomalySearch` client API + job_id filters. Also removes
`getMlIndex` since it is no longer relevant.

* Use the mlCapabilities API to ensure the required license is active for ml queries

Co-authored-by: Elastic Machine <[email protected]>

Drilldown docs 2 (#69375)

* docs: ✏️ add drilldown user docs link to REAMDE

* feat: 🎸 wire drilldown docs link into <HelloBar> component

* feat: 🎸 set new page attributes on drilldown docs link

* feat: 🎸 add external prop to link to show icon

* fix: 🐛 remove rel= attribute

* fix: 🐛 add TypeScript type for drilldown docLink

[Endpoint] add policy data to Host list UI (#69202)

[Ingest Pipelines] Add doc links to processor types (#69279)

* added doc links to processor types

* Bring doc links in line with mappings editor

Also refactor the processors type map

* remove helpText prop from Custom field

* fix i18n

* rename doc button and refactor type map const name

Co-authored-by: Elastic Machine <[email protected]>

Removing flaky axe rule (#69418)

[Ingest Manager] Replace `datasources` with `inputs` when generating agent config (#69226)

* Adjust agent config generation, change `datasources` to `inputs`

* Add dataset.type

* Remove dead code

* Revert "Add dataset.type"

This reverts commit fbcf50cbe2b6a93536386c82d754a6a7c7f2b8e9.

* Update endpoint policy test assertion

[ML] Add Anomaly Swimlane Embeddable to the dashboard from the Anomaly Explorer page (#68784)

* [ML] WIP attach swimlane embeddable to dashboard from the explorer page

* [ML] fix deps

* [ML] getDefaultPanelTitle

* [ML] fix TS issue

* [ML] DashboardService

* [ML] unit tests

* [ML] redirect to the dashboard

* [ML] swimlane_panel

* [ML] Anomaly Timeline panel

* [ML] swimlane container

* [ML] fix ts

* [ML] Add multiple swimlanes

* [ML] fix SwimlaneType usage

* [ML] disable edit button on update

* [ML] fix i18n translation key

* [ML] use ViewMode enum

* [ML] use navigateToUrl

* [ML] TODO for edit dashboard

* [ML] check kibana dashboard capabilities

* [ML] mlApiServicesProvider

* [ML] mlResultsServiceProvider

* [ML] fix alignment

* [ML] labels and tooltips

* [ML] fix ts issue for proxyHttpStart

* [ML] canEditDashboards check

* [ML] fix TS

* [ML] update add_to_dashboard_control.tsx

* [ML] add form label, disable control on empty swimlanes selection

* [ML] resolve PR review comments

* [ML] e2e test

* [ML] increase panel padding

* [ML] position in row

* [ML] update e2e

* [ML] add data-test-subj for search box

* [ML] PR remarks

[docker] add spaces settings (#69019)

Co-authored-by: Elastic Machine <[email protected]>

[Maps] layer wizard select re-design (#69313)

* [Maps] layer wizard select re-design

* review feedback

* tslint

* add unit test

* use smaller gutters

* review feedback

skip flaky suite (#52854)

[APM] License feature tracking for service maps (#69455)

Use the license feature API to register the service maps feature and track its usage when the API endpoint is accessed.

Fixes #64850.

fixes screenshots upload (#69392)

Remove unused deps (#69243)

* remove unused deps

* move types in devDeps

[Observability] Creates "Add data" links in all Observability app headers (#69016)

* Add data options to all Observability app headers

* Updated failing snapshot

* [Uptime] Update snapshot

Co-authored-by: Elastic Machine <[email protected]>

Beats Management: Pre-migration cleanup (#69155)

* adapt KibanaDatabaseAdapter to use core ES service

* remove unused `exposeStaticDir` method

* create empty KP plugin

* remove unused and broken tests

* delete unused wallaby config file

* delete unused utils

* delete unused d.ts and move formsy definition to new plugin

* fix findNonExistentItems

* remove dead code and useless exports from common package

* delete non migratable test suite + remove unused test adapter

* remove yet another unused adapter

* restore awaits in KibanaDatabaseAdapter

Add section about marble testing to `TESTING.md` (#68749)

* Add section about marble testing

* improve `callServerAPI` example

* review comments

* add comment on abort observable anti-pattern

savedObjects: add `score` to repository.find results (#68894)

* add `score` to repository.find results

* update generated doc

* fix FTR result set

* remove score from exports

* fix FTR for find API

* fix label

* fix tsdoc

Add functional test for Kibana embedded in iframe (#68544)

* convert kbn test config into TS

* add test  for Kibana embedded in iframe

* run embedded tests in functional suite

* ignore tls errors in functional tests by default

* switch test to https

* remove env vars mutation

* allow to pass ssl config to Kibana

* pass ssl config to axios

* adopt KbnClient interfaces

* adopt KibanaServer

* use KbnRequester in security service

* set sameSiteCookies:None in test

* acceptInsecureCerts in chrome

* remove leftovers

* fix type error

* remove unnecessary field

* address comments

* refactor plugin

* refactor test

* make acceptInsecureCerts configurable

* run firefox tests on ci

* up TS version

* fix firefox.sh script

* fix path

Co-authored-by: Elastic Machine <[email protected]>

[APM] Add error rate chart to Errors overview and detail views (#67327)

* creating error rate chart

* adding error line chart

* creating error rate chart

* using date_histogram

* reapplying prettier style

* changing to theme color

* dont sync tooltips

* adding avg on error charts

* addressing pr comments

* adding possibility to disable legend toggle

* removing x-axis ticks from histogram

* return no percent when transaction count doesn return hits

* addressing PR comments

* addressing PR comments

* returning null when there is no transaction count

Co-authored-by: Elastic Machine <[email protected]>

[APM] Change the unsaved changes text color (#69493)

Fixes dark mode issue where the text would render dark on a dark background.

[refactor] remove drilldown plugin, move components to uiActionsEnhanced (#69403)

* refactor: remove drilldown plugin by moving components to uiActionsEnhanced

* fix

* fix mistake in test

* fix i18n

HttpService: duplicate some APIs from `setup` to `start` and clean mocks. (#69021)

* add apis to http start contract and clean mocks

* add apis to http start contract and clean mocks

* add `getStartContract` method

* fix new calls

* remove isTlsEnabled

* deprecates HttpServiceSetup.auth

[SIEM] Fixes REST formatter bugs from io-ts migration

Fixes io-ts formatter bugs for REST and validation by:

* First trying to get the correct key from the io-ts context. If no keys are found, then it will fall back on trying to get the first name from the context.
* If the key is a value and an object then this will do a `JSON.stringify()` on the value object
* This fixes a few places where `formatError` was not being used within the code base resulting in `[object Object]` within the validations to show up.

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios

[RUM Dashboard] Initial Version (#68778)

Co-authored-by: Casper Hübertz <[email protected]>

Fix home page loading if telemetry plugin disabled (#69394)

* Fix home page loading

* Fix jest test, update telemetry mocks

[Maps] Remove bounds param (#69396)

[IngestManager] fix endpoint setup in api integration tests (#69503)

[APM] Service map download in debug mode (#69350)

* [APM] Service map download in debug mode

Add a download button when debug mode is enabled that downloads JSON of
the map.

Add an upload button to the Storybook.

Embed documentation on input and output state (#69443)

* Embed documentation on input and output state

* json -> js

* Add section on how id is used by custom time range badge action to determine isCompatible

Revert "[RUM Dashboard] Initial Version (#68778)"

This reverts commit 72111702e95214594d5d56bc856e1d5c78e6d802.

[Ingest Manager] Fleet require encrypted saved object encryption key … (#69408)

[rfc][skip-ci][reporting] Rendering API RFC (#64372)

* WIP working on reporting rfc round 2

* First draft is complete

[Index template] Refactor index template wizard (#69037)

Co-authored-by: Alison Goryachev <[email protected]>

Amend export used for default (#69158)

Co-authored-by: Elastic Machine <[email protected]>

[SIEM][Exceptions] - Updates exception structure and corresponding UI types (#69120)

This PR is meant to update the `ExceptionListItemSchema.entries` structure to align with the most recent conversations regarding the need for a more explicit depiction of `nested` fields. To summarize:

- Adds schema validation for requests and responses within `lists/public/exceptions/api.ts`. It was super helpful in catching existing bugs. Anyone that uses the api will run through this validation. If the client tries to send up a malformed request, the request will not be made and an error returned. If the request is successful, but somehow the response is malformed, an error is returned. There may be some UX things to figure out about how to best communicate these errors to the user, or if surfacing the raw error is fine.
- Updates `entries` structure in lists plugin api
- Updates hooks and tests within `lists/public` that make reference to new structure
- Updates and adds unit tests for updated schemas
- Removes unused temporary types in `security_solution/public/common/components/exceptions/` to now reference updated schema
- Updates UI tests
- Updates `lists/server/scripts`

[Ingest Pipelines] Add test coverage for ingest pipelines editor component (#69283)

* first iteration of CIT tests

* address pr feedback

- use dot notation where we can
- use string literals instead of + concatentation

[Ingest Pipelines] Encode URI component pipeline names (#69489)

* Properly encode URI component pipeline names

* safely URI decode to handle % case

[Console] Added license headers to worker files (#69387)

* added license headers to worker files

* add missing @notice

* update notice.txt

* fix notice

* remove start-end license block markers

* Added license pre-amble

don't include group fields with no child fields in index pattern (#69457)

Update endpoint event and alert types (#69292)

* start redoing types

* finish redoing types

* fix bad test

* rework tests

* fix more types

* fix test

* Fix endpoints test and render error

* add deletePolicyStream to alerts api tests

Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Paul Tavares <[email protected]>

[Security Solution] Add cypress tests for global search bar (#68535)

[RUM Dashboard] Initial version resubmit (#69531)

Co-authored-by: Casper Hübertz <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>

[Ingest Manager] Use long polling for agent checkin (#68922)

Fixes home page welcome link (#69539)

[Maps] Migrate maps client router to react (#65079)

Co-authored-by: Elastic Machine <[email protected]>

[CCR] Fix follower indices table not updating after pausing (#69228)

Document authentication settings. (#69284)

Co-authored-by: Kaarina Tungseth <[email protected]>
Co-authored-by: gchaps <[email protected]>

[SIEM][Detection Engine] Fixes 7.8 and 7.9 upgrade issue within rules where you can get the error "params invalid: [lists]: definition for this key is missing"

* https://github.com/elastic/kibana/issues/69463
* See here for manual backport to 7.8: https://github.com/elastic/kibana/pull/69434

This fixes a bug where if you import rules and set your overwrite to `true` multiple times in a row within 7.7 you can end up with a lists array. When upgrading to 7.8, we change the name of `lists` to `exceptions_lists` and suddenly when you enable/disable a rule you can get the following error below:

![image](https://user-images.githubusercontent.com/1151048/84945824-fa60e280-b0a4-11ea-8e05-bffdec2e4765.png)

The fix is to allow the lists array still if it is present within saved objects to avoid seeing this error screen and being tolerant. We also fix the area of code that is causing the data bug so it cannot happen again with `exceptions_list` which is what the name of lists was renamed to causing this problem.

Note that this has unit tests and I also manually tested this by intentionally injecting a `lists` and `exceptions_lists` and using the UI to verify there wasn't another validation spot that needed to be relaxed to allow for the data.

- [x] [Unit or functional tests](https://github.com/elastic/kibana/blob/master/CONTRIBUTING.md#cross-browser-compatibility) were updated or added to match the most common scenarios

[DOCS] Adds kibana-pull attribute for release docs (#69554)

skip tests using hostDetailsPolicyResponseActionBadge

Merge/restyle nodes table (#69098)

Adds panel views and drilldowns to Resolver

[ftr] add support for docker servers (#68173)

Co-authored-by: spalger <[email protected]>

Remove endpoint alert fields from signal mapping (#68934)

Co-authored-by: Elastic Machine <[email protected]>

[DOCS] Add related link to the ingest management docs (#69467)

* [DOCS] Add related link to the ingest management docs

* Add link to ingest manager topic in Kibana

* Remove link to ingest manager topic in kibana

Resolving conflicts (#69597)

[ML] Data Grid Histograms (#68359)

Adds support for histogram charts to data grid columns.
- Adds a toggle button to the data grid's header to enabled/disable column charts.
- When enabled, the charts get rendered as part of the data grid header.
- Histogram charts will get rendered for fields based on date, number, string and boolean.

[APM] Add support for dark mode (#69362)

* Use theme colors for stacktrace

* [APM] Use theme for all components

* Switch HoC withTheme to useTheme and convert classes to hooks

* Change hardcoded white to euiColorEmptyShade for ServiceMap

* Snapshots and Legends fix

* Switch to context and add test helper

* Fix tests and update snaps

* New snaps + new anomaly detection

* Remove shallow from testHelpers

* Remove commented tests

* Fix prettier

* Pass correct theme to cytoscape

* Fix ServiceMap

* fixes some rendering issues in service maps

* removed the old anomaly detection logic from service map popover contents, since it's been moved to a new component.

* Fix eslint, tsc lint issues and unit tests

* Remove types for styled-components default theme

* Update x-pack/plugins/apm/public/components/shared/KueryBar/Typeahead/Suggestions.js

Co-authored-by: Casper Hübertz <[email protected]>

* fix OuterTheme

* Ise function declaration instead of expression

Co-authored-by: Balthazar Gronon <[email protected]>
Co-authored-by: Balthazar Gronon <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Oliver Gupte <[email protected]>
Co-authored-by: Casper Hübertz <[email protected]>

[Endpoint] add policy empty state (#69449)

Fixing resolver alert generation (#69587)

Co-authored-by: Elastic Machine <[email protected]>

[Security_Solution][Endpoint] Resolver leverage ancestry array for queries  (#69264)

* Adding alerts route

* Adding related alerts generator changes, tests, and script updates

* Fixing missed parameter

* Aligning the AlertEvent and ResolverEvent definition

* Fixing type errors

* Fixing import error

* Adding ancestry functionality in generator

* Creating some tests for ancestry field

* Making progress on the ancestry

* Fixing the ancestry verification

* Fixing existing tests

* Removing unused code and fixing test

* Adding more comments

* Fixing endgame queries

Co-authored-by: Elastic Machine <[email protected]>

skip failing suite (#69595)

[Endpoint] Fix flaky endpoints list unit test (#69591)

* Fix flaky endpoints list unit test
* un-skip test

Co-authored-by: Elastic Machine <[email protected]>

disable pageLoadMetrics job, it's gotten really flaky

[SECURITY] Introduce kibana nav (#68862)

* Change the bootstrap of the app

* rename SiemPageName to SecurityPageName

* modify alerts routes

* modify cases routes

* modify hosts routes

* modify network routes

* modify overview routes

* modify timelines routes

* wip change management route

* change route for common

* some fixing from the first commit

* modify route for management

* update url format hook to use history

* bug when you click on external alerts from host or network

* improvement from josh feedback

* redirect siem to security solution

* a little clean up

* Fix types

* fix breadcrumbs

* fix unit test

* Update index.tsx

* Fix cypress

* bug remove timeline when you are in case configure

* Fix functionel test for management

* Fix redirect siem + ml

* fixes some cypress tests

* adds 'URL compatibility' test

* bring ml back to alerts

* review I

* Fix memory leak in timelines page

* fix storage bug for timeline search bar

* fix endpoint merge + functional test

* avoid timeline flyout toggle

* Fix link to ml score

* Fix breadcrumb

* Fix management url

* fix unit test

* fixes typecheck issue

* fixes remaining url cypress tests

* fixes timeline scenario

* fix link to details rule from timeline

* review remove absolute path for consistency

* Fixing resolver alert generation (#69587)

Co-authored-by: Elastic Machine <[email protected]>

* [Security_Solution][Endpoint] Resolver leverage ancestry array for queries  (#69264)

* Adding alerts route

* Adding related alerts generator changes, tests, and script updates

* Fixing missed parameter

* Aligning the AlertEvent and ResolverEvent definition

* Fixing type errors

* Fixing import error

* Adding ancestry functionality in generator

* Creating some tests for ancestry field

* Making progress on the ancestry

* Fixing the ancestry verification

* Fixing existing tests

* Removing unused code and fixing test

* Adding more comments

* Fixing endgame queries

Co-authored-by: Elastic Machine <[email protected]>

* fix cypress test

* skip failing suite (#69595)

* [Endpoint] Fix flaky endpoints list unit test (#69591)

* Fix flaky endpoints list unit test
* un-skip test

Co-authored-by: Elastic Machine <[email protected]>

* remove flaky test

Co-authored-by: patrykkopycinski <[email protected]>
Co-authored-by: Gloria Hornero <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>
Co-authored-by: Jonathan Buttner <[email protected]>
Co-authored-by: spalger <[email protected]>
Co-authored-by: Paul Tavares <[email protected]>

Bump jest related packages (#58095)

[IM] Move template wizard steps to shared directory + update legacy details panel (#69559)

Migrate dashboard mode (#69305)

Closes: #67469

Co-authored-by: Elastic Machine <[email protected]>

[Observability]Adding specific Return APIs for each plugin (#69257)

* Adding specific apis for each plugin

* adding metric hosts stat

* addressing PR comment

* addressing PR comments

* changing series to key/value

* exporting interfaces

* adding label to stat

* refactoring types

Co-authored-by: Elastic Machine <[email protected]>

[ML] fix ml api services (#69681)

[Discover] Unskip context navigation functional test (#68771)

[APM] Use asPercent to format breakdown chart (#69384)

Co-authored-by: Søren Louv-Jansen <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>

Updates swim lane UI text (#69454)

Fix Advanced Settings Panel number editing in Graph (#69672)

Remove App communication from URL (#67064)

Removed all inter-app communication via url in favour of a new service in the embeddable start contract called the state transfer service.

[Security_Solution] Split up indices (#69589)

* Fixing resolver alert generation

* Splitting indices up

* Removing tests that could randomly fail because of the generation code

* Adding support for multiple indices

* Updating archives with the new index names

* Removing alerts data stream

* Switching to process instead of fake

Co-authored-by: Elastic Machine <[email protected]>

completes top-level navigation tests (#69694)

[CI] Record Github commit statuses outside of PRs (#69432)

Document workaround for using HashRouter (#69140)

* add section on hashrouter

* review comments

Disabled multiple select for preconfigured connectors to avoid requesting bulk delete on them (#69459)

[chore] TS 3.9: convert ts-ignore to ts-expect-error (#69541)

Co-authored-by: Elastic Machine <[email protected]>

[Monitoring] Love for APM (#69052)

* Fix broken colors for APM

* Use default derivative

* Fix UI issues with APM

* Add new charts

* Fix tests

* Use EUI color palette

* Remove old translations

* PR feedback

* Fix tests

* Fix up overview page

Co-authored-by: Elastic Machine <[email protected]>

[ML] Transform: Table enhancements (#69307)

Co-authored-by: Elastic Machine <[email protected]>

[ML] Transform: Enable force delete if one of the transforms failed (#69472)

Co-authored-by: Elastic Machine <[email protected]>

fix link to analytics results from management (#69550)

adds kibana navigation tests (#69733)

Add plugin API for customizing the logging configuration (#68704)

[Maps] Remove extra layer of telemetry nesting under "attributes" (#66137)

* Return attributes when telemetry created instead of whole saved object. Update integration test

* Change 'maps-telemetry' to 'maps'

* No need to create a saved object anymore. This is leftover from task manager telemetry mgmt

* Add test confirming attrs undefined. Change tests to check for 'maps' iso 'maps-telemetry'

* Add two more tests confirming expected telemetry shape

* Review feedback. Use TELEMETRY_TYPE constant and set to APP_ID

[Index Management] Fix API Integration Test and use of `timestamp_field` (#69666)

* fix types and functional api integration test

* access timestamp field name in object

* temporarily skip the API integration test and fix ts issue

[SECURITY] Add endpoint alerts url (#69707)

* Add back endpoint alerts url

* hack to move on

* fix type

* fix test

remove scroll in drag & drop context (#69710)

[Metrics UI] Add inventory alert preview (#68909)

Co-authored-by: Elastic Machine <[email protected]>

[Obs] Update Observability landing page text (#69727)

Support deep links inside of `RelayState` for SAML IdP initiated login. (#69401)

[ML] Fixes anomaly chart and validation for one week bucket span (#69671)

* [ML] Fixes anomaly chart and validation for one week bucket span

* [ML] Fix interval Jest tests

Migrate legacy import/export endpoints (#69474)

* migrate legacy export routes to `legacy_export` plugin

* adapt unit tests

* remove already dead (already moved) libs

Fixes #69344: Don't allow empty string for server.basePath config (#69377)

* Fixes #69344: Don't allow empty string for server.basePath config

* Remove unused basepath group

Redirect to Logged Out UI on SAML Logout Response. Prefer Login Selector UI to Logged Out UI whenever possible. (#69676)

Properly redirect legacy URLs (#68284)

expose DocLinks API from start only (#68745)

* exose DocLinks API from start only

* update docs

* fix type errors

* update docs

Co-authored-by: Elastic Machine <[email protected]>

remove top-nav. it is not rendered in KP (#69488)

Co-authored-by: Elastic Machine <[email protected]>

[APM] Storybook theme fixes (#69730)

* [APM] Storybook theme fixes

The changes adding theme support in #69362 broke some of the Storybook stories.

Add decorators to wrap some of the stories in the theme context.

This should be done in a global decorator, but our current storybook setup doesn't support this. It also would be nice to be able to switch between light/dark mode, but that's something we can add in the future.

* Remove unused import

* Adds missing decorator to cytoscape examples + adds a new real-world example

Co-authored-by: Oliver Gupte <[email protected]>
Co-authored-by: Elastic Machine <[email protected]>

adding Stats interface with type (#69784)

[data.search.aggs]: Add AggConfig.toSerializedFieldFormat (#69114)

[Ingest Manager] Do not await in start. Return a Promise (#69505)

  1. Do not `await` in the public `start` lifecycle method. Fixes https://github.com/elastic/kibana/issues/66125
PR based on https://github.com/elastic/kibana/issues/66125#issuecomment-640790837 & https://github.com/elastic/kibana/issues/66125#issuecomment-642218799
  2. Change `success` to be Promise

[pre-req] Convert Palettes and Components (#69065)

Co-authored-by: Elastic Machine <[email protected]>

[Lens] Stabilize filter popover (#69519)

* stabilize filter popovwer

* remove text exclusion

Add lists plugin to optimized security_solution TS config (#69705)

As security_solution continues to integrate with lists, the absents of
these types will lead to lots of implicit anys and false positives.

Co-authored-by: Elastic Machine <[email protected]>

[data.search.aggs] Move agg-specific field formats to search service (#69586)

[Security][Network] Exclude glob-only (*) Index Pattern from map layers (#69736)

* Exclude glob-only (*) index pattern from map layers

This pattern is a special case that our map should ignore, as including
it causes all indexes to be queried.

* Ignore CCS glob pattern in our embedded map

Users may have this pattern for cross-cluster search, and it should
similarly be excluded when matching Security indexes.

[IM] Move common step containers to shared (#69713)

[Maps] New mappings: maps-telemetry -> maps (#69816)

Don't set a min-length on encryption key for reportin (#69827)

[ML] DF Analytics Creation: add progress indicator (#69583)

* add progress indicator to creation wizard page

* only show progress bar if job is started immediately

* add title and switch to timeout

* fix progress check

* clean up interval on unmount

* fix types

* clear interval if stats undefined. show progress if job created

[Uptime] Fix charts dark theme (#69748)

[Ingest Manager] Support registration of server side callbacks for Create Datasource API (#69428)

* Ingest: Expose `registerExternalCallback()` method out of Ingest server `start` lifecycle
* Ingest: Add support for External Callbacks on REST `createDatasourceHandler()`
* Ingest: expose DatasourceServices to Plugin start interface
* Endpoint: Added Endpoint Ingest handler for Create Datasources
  - Also moved the temporary logic from the middleware
    to the handler (still temporary)

Co-authored-by: Elastic Machine <[email protected]>

[IngestManager] Expose agent authentication using access key (#69650)

* [IngestManager] Expose agent authentication using access key

* Add unit tests to authenticateAgentWithAccessToken service

[APM] Pulls legacy ML code from service maps and integrations (#69779)

* Pulls out existing ML integration from the service maps

* - removes ML job creation flyout in integrations menu on the service details UI
- removes ML searches and transforms in the transaction charts API
- removes unused shared functions and types related to the legacy ML integration

* removes unused translations for APM anomaly detection

* Adds tags to TODOs for easy searching later

Convert Positionable, RenderToDom and RenderWithFn to functional/hooks/no recompose. (#68202)

Co-authored-by: Elastic Machine <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Ingest Node Pipelines Ingest node pipelines management release_note:skip Skip the PR/issue when compiling release notes Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more v7.8.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants