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

[Stack monitoring] Add error handling to requests #113958

Closed
wants to merge 6 commits into from

Conversation

estermv
Copy link
Contributor

@estermv estermv commented Oct 5, 2021

Summary

Closes #111842

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

@estermv estermv added auto-backport Deprecated - use backport:version if exact versions are needed Epic: Stack Monitoring de-angularization Feature:Stack Monitoring release_note:skip Skip the PR/issue when compiling release notes Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.16.0 v8.0.0 labels Oct 5, 2021
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/ml/anomaly_detection/custom_urls·ts.machine learning anomaly detection custom urls adds a custom URL to Dashboard in the edit job flyout

Link to Jenkins

Standard Out

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

[00:00:00]     │
[00:00:00]       └-: machine learning
[00:00:00]         └-> "before all" hook in "machine learning"
[00:00:00]         └-: 
[00:00:00]           └-> "before all" hook in ""
[00:00:00]           └-> "before all" hook in ""
[00:00:00]             │ debg creating role ft_ml_source
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_ml_source]
[00:00:00]             │ debg creating role ft_ml_source_readonly
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_ml_source_readonly]
[00:00:00]             │ debg creating role ft_ml_dest
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_ml_dest]
[00:00:00]             │ debg creating role ft_ml_dest_readonly
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_ml_dest_readonly]
[00:00:00]             │ debg creating role ft_ml_ui_extras
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_ml_ui_extras]
[00:00:00]             │ debg creating role ft_default_space_ml_all
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_default_space_ml_all]
[00:00:00]             │ debg creating role ft_default_space1_ml_all
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_default_space1_ml_all]
[00:00:00]             │ debg creating role ft_all_spaces_ml_all
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_all_spaces_ml_all]
[00:00:00]             │ debg creating role ft_default_space_ml_read
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_default_space_ml_read]
[00:00:00]             │ debg creating role ft_default_space1_ml_read
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_default_space1_ml_read]
[00:00:00]             │ debg creating role ft_all_spaces_ml_read
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_all_spaces_ml_read]
[00:00:00]             │ debg creating role ft_default_space_ml_none
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [node-01] added role [ft_default_space_ml_none]
[00:00:00]             │ debg creating user ft_ml_poweruser
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_poweruser]
[00:00:00]             │ debg created user ft_ml_poweruser
[00:00:00]             │ debg creating user ft_ml_poweruser_spaces
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_poweruser_spaces]
[00:00:00]             │ debg created user ft_ml_poweruser_spaces
[00:00:00]             │ debg creating user ft_ml_poweruser_space1
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_poweruser_space1]
[00:00:00]             │ debg created user ft_ml_poweruser_space1
[00:00:00]             │ debg creating user ft_ml_poweruser_all_spaces
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_poweruser_all_spaces]
[00:00:00]             │ debg created user ft_ml_poweruser_all_spaces
[00:00:00]             │ debg creating user ft_ml_viewer
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_viewer]
[00:00:01]             │ debg created user ft_ml_viewer
[00:00:01]             │ debg creating user ft_ml_viewer_spaces
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_viewer_spaces]
[00:00:01]             │ debg created user ft_ml_viewer_spaces
[00:00:01]             │ debg creating user ft_ml_viewer_space1
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_viewer_space1]
[00:00:01]             │ debg created user ft_ml_viewer_space1
[00:00:01]             │ debg creating user ft_ml_viewer_all_spaces
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_viewer_all_spaces]
[00:00:01]             │ debg created user ft_ml_viewer_all_spaces
[00:00:01]             │ debg creating user ft_ml_unauthorized
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_unauthorized]
[00:00:01]             │ debg created user ft_ml_unauthorized
[00:00:01]             │ debg creating user ft_ml_unauthorized_spaces
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [node-01] added user [ft_ml_unauthorized_spaces]
[00:00:01]             │ debg created user ft_ml_unauthorized_spaces
[00:08:15]           └-: anomaly detection
[00:08:15]             └-> "before all" hook in "anomaly detection"
[00:40:04]             └-: custom urls
[00:40:04]               └-> "before all" hook for "opens the custom URLs tab in the edit job flyout"
[00:40:04]               └-> "before all" hook for "opens the custom URLs tab in the edit job flyout"
[00:40:04]                 │ info [x-pack/test/functional/es_archives/ml/farequote] Loading "mappings.json"
[00:40:04]                 │ info [x-pack/test/functional/es_archives/ml/farequote] Loading "data.json.gz"
[00:40:04]                 │ info [x-pack/test/functional/es_archives/ml/farequote] Skipped restore for existing index "ft_farequote"
[00:40:05]                 │ERROR browser[SEVERE] http://localhost:61111/api/ml/annotations - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:40:05]                 │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:40:05]                 │ debg  > Found '4ebf9040-26c6-11ec-b379-4905af9f2763'
[00:40:05]                 │ debg Index pattern with title 'ft_farequote' already exists. Nothing to create.
[00:40:05]                 │ debg Searching for 'dashboard' with title 'ML Test'...
[00:40:05]                 │ debg  > Not found
[00:40:05]                 │ debg Creating dashboard with title 'ML Test'
[00:40:05]                 │ debg  > Created with id 'c4796770-26cb-11ec-b379-4905af9f2763'
[00:40:05]                 │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:40:06]                 │ debg Creating anomaly detection job with id 'fq_multi_1_custom_urls' ...
[00:40:06]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:40:06]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:40:06]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:40:06]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:40:07]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.ml-anomalies-shared/GNRqBy3YRz2CML62lEI0PA] update_mapping [_doc]
[00:40:07]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-config] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:40:07]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-config]
[00:40:07]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-notifications-000002] creating index, cause [auto(bulk api)], templates [.ml-notifications-000002], shards [1]/[1]
[00:40:07]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-notifications-000002]
[00:40:07]                 │ debg Waiting up to 5000ms for 'fq_multi_1_custom_urls' to exist...
[00:40:07]                 │ debg > AD job created.
[00:40:07]                 │ debg Creating datafeed with id 'datafeed-fq_multi_1_custom_urls' ...
[00:40:08]                 │ debg Waiting up to 5000ms for 'datafeed-fq_multi_1_custom_urls' to exist...
[00:40:08]                 │ debg > Datafeed created.
[00:40:08]                 │ debg Opening anomaly detection job 'fq_multi_1_custom_urls'...
[00:40:08]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [node-01] Opening job [fq_multi_1_custom_urls]
[00:40:08]                 │ info [o.e.x.c.m.u.MlIndexAndAlias] [node-01] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:40:08]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1]
[00:40:08]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:40:09]                 │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:40:09]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [node-01] [fq_multi_1_custom_urls] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:40:09]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [node-01] [fq_multi_1_custom_urls] [autodetect/197669] [CResourceMonitor.cc@82] Setting model memory limit to 20 MB
[00:40:09]                 │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.ml-state-000001] from [{"phase":"new","action":"complete","name":"complete"}] to [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] in policy [ml-size-based-ilm-policy]
[00:40:09]                 │ debg > AD job opened.
[00:40:09]                 │ debg Starting datafeed 'datafeed-fq_multi_1_custom_urls' with start: '0', end: '1633541719668'...
[00:40:09]                 │ info [o.e.x.i.IndexLifecycleTransition] [node-01] moving index [.ml-state-000001] from [{"phase":"hot","action":"unfollow","name":"branch-check-unfollow-prerequisites"}] to [{"phase":"hot","action":"rollover","name":"check-rollover-ready"}] in policy [ml-size-based-ilm-policy]
[00:40:09]                 │ info [o.e.x.m.d.DatafeedJob] [node-01] [fq_multi_1_custom_urls] Datafeed started (from: 1970-01-01T00:00:00.000Z to: 2021-10-06T17:35:19.668Z) with frequency [600000ms]
[00:40:09]                 │ debg > Datafeed started.
[00:40:09]                 │ debg Waiting up to 120000ms for datafeed state to be stopped...
[00:40:09]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:40:09]                 │ debg --- retry.waitForWithTimeout error: expected job state to be stopped but got started
[00:40:09]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.ml-anomalies-shared/GNRqBy3YRz2CML62lEI0PA] update_mapping [_doc]
[00:40:09]                 │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_custom_urls] 10000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:40:09]                 │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_custom_urls] 20000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:40:10]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:40:10]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:40:10]                 │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_custom_urls] 30000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:40:10]                 │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_custom_urls] 40000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:40:10]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:40:10]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:40:10]                 │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_custom_urls] 50000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:40:11]                 │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_custom_urls] 60000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:40:11]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:40:11]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:40:11]                 │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_custom_urls] 70000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:40:11]                 │ info [o.e.x.m.j.p.DataCountsReporter] [node-01] [fq_multi_1_custom_urls] 80000 records written to autodetect; missingFieldCount=0, invalidDateCount=0, outOfOrderCount=0
[00:40:11]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:40:11]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:40:12]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:40:12]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:40:12]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:40:12]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:40:13]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:40:13]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:40:13]                 │ info [o.e.x.m.d.DatafeedJob] [node-01] [fq_multi_1_custom_urls] Lookback has finished
[00:40:13]                 │ info [o.e.x.m.d.DatafeedRunner] [node-01] [no_realtime] attempt to stop datafeed [datafeed-fq_multi_1_custom_urls] for job [fq_multi_1_custom_urls]
[00:40:13]                 │ info [o.e.x.m.d.DatafeedRunner] [node-01] [no_realtime] try lock [20s] to stop datafeed [datafeed-fq_multi_1_custom_urls] for job [fq_multi_1_custom_urls]...
[00:40:13]                 │ info [o.e.x.m.d.DatafeedRunner] [node-01] [no_realtime] stopping datafeed [datafeed-fq_multi_1_custom_urls] for job [fq_multi_1_custom_urls], acquired [true]...
[00:40:13]                 │ info [o.e.x.m.d.DatafeedRunner] [node-01] [no_realtime] datafeed [datafeed-fq_multi_1_custom_urls] for job [fq_multi_1_custom_urls] has been stopped
[00:40:13]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [node-01] Closing job [fq_multi_1_custom_urls], because [close job (api)]
[00:40:13]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [node-01] [fq_multi_1_custom_urls] [autodetect/197669] [CCmdSkeleton.cc@66] Handled 86274 records
[00:40:13]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [node-01] [fq_multi_1_custom_urls] [autodetect/197669] [CAnomalyJob.cc@1601] Pruning obsolete models
[00:40:13]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.ml-anomalies-shared/GNRqBy3YRz2CML62lEI0PA] update_mapping [_doc]
[00:40:13]                 │ info [o.e.x.m.p.AbstractNativeProcess] [node-01] [fq_multi_1_custom_urls] State output finished
[00:40:13]                 │ info [o.e.x.m.j.p.a.o.AutodetectResultProcessor] [node-01] [fq_multi_1_custom_urls] 240 buckets parsed from autodetect output
[00:40:13]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:40:13]                 │ debg Waiting up to 120000ms for job state to be closed...
[00:40:13]                 │ debg Fetching anomaly detection job stats for job fq_multi_1_custom_urls...
[00:40:13]                 │ debg > AD job stats fetched.
[00:40:13]                 │ debg --- retry.waitForWithTimeout error: expected job state to be closed but got closing
[00:40:14]                 │ debg Fetching anomaly detection job stats for job fq_multi_1_custom_urls...
[00:40:14]                 │ debg > AD job stats fetched.
[00:40:14]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:40:14]                 │ info [o.e.x.m.j.p.a.AutodetectCommunicator] [node-01] [fq_multi_1_custom_urls] autodetect connection for job closed
[00:40:14]                 │ debg Fetching anomaly detection job stats for job fq_multi_1_custom_urls...
[00:40:14]                 │ debg > AD job stats fetched.
[00:40:14]                 │ debg SecurityPage.forceLogout
[00:40:14]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:40:14]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:40:15]                 │ debg Redirecting to /logout to force the logout
[00:40:15]                 │ debg Waiting on the login form to appear
[00:40:15]                 │ debg Waiting for Login Page to appear.
[00:40:15]                 │ debg Waiting up to 100000ms for login page...
[00:40:15]                 │ debg browser[INFO] http://localhost:61111/logout?_t=1633541725511 281 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:40:15]                 │
[00:40:15]                 │ debg browser[INFO] http://localhost:61111/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:40:15]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:40:18]                 │ERROR browser[SEVERE] http://localhost:61111/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:40:18]                 │ debg browser[INFO] http://localhost:61111/46826/bundles/core/core.entry.js 7:106874 "Detected an unhandled Promise rejection.
[00:40:18]                 │      Error: Unauthorized"
[00:40:18]                 │ERROR browser[SEVERE] http://localhost:61111/46826/bundles/core/core.entry.js 7:52880 
[00:40:18]                 │ debg browser[INFO] http://localhost:61111/login?msg=LOGGED_OUT 281 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:40:18]                 │
[00:40:18]                 │ debg browser[INFO] http://localhost:61111/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:40:18]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:40:18]                 │ERROR browser[SEVERE] http://localhost:61111/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:40:19]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:40:19]                 │ debg TestSubjects.exists(loginForm)
[00:40:19]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:40:19]                 │ debg Waiting for Login Form to appear.
[00:40:19]                 │ debg Waiting up to 100000ms for login form...
[00:40:19]                 │ debg TestSubjects.exists(loginForm)
[00:40:19]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:40:19]                 │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:40:19]                 │ debg TestSubjects.click(loginUsername)
[00:40:19]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:40:19]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:40:19]                 │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:40:19]                 │ debg TestSubjects.click(loginPassword)
[00:40:19]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:40:19]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:40:19]                 │ debg TestSubjects.click(loginSubmit)
[00:40:19]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:40:19]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:40:20]                 │ debg Waiting for login result, expected: chrome.
[00:40:20]                 │ debg Find.findByCssSelector('[data-test-subj="userMenuAvatar"]') with timeout=20000
[00:40:20]                 │ proc [kibana] [2021-10-06T17:35:30.249+00:00][INFO ][plugins.security.routes] Logging in with provider "basic" (basic)
[00:40:22]                 │ debg browser[INFO] http://localhost:61111/app/home 281 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:40:22]                 │
[00:40:22]                 │ debg browser[INFO] http://localhost:61111/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:40:22]                 │ debg Finished login process currentUrl = http://localhost:61111/app/home#/
[00:40:22]                 │ debg Waiting up to 20000ms for logout button visible...
[00:40:22]                 │ debg TestSubjects.exists(userMenuButton)
[00:40:22]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:40:22]                 │ debg TestSubjects.exists(userMenu)
[00:40:22]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:40:24]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:40:25]                 │ debg TestSubjects.click(userMenuButton)
[00:40:25]                 │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:40:25]                 │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:40:25]                 │ debg TestSubjects.exists(userMenu)
[00:40:25]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:40:25]                 │ debg TestSubjects.exists(userMenu > logoutLink)
[00:40:25]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:40:25]               └-> opens the custom URLs tab in the edit job flyout
[00:40:25]                 └-> "before each" hook: global before each for "opens the custom URLs tab in the edit job flyout"
[00:40:25]                 │ debg === TEST STEP === load the job management page
[00:40:25]                 │ debg navigating to ml url: http://localhost:61111/app/ml
[00:40:25]                 │ debg navigate to: http://localhost:61111/app/ml
[00:40:25]                 │ debg browser[INFO] http://localhost:61111/app/ml?_t=1633541735830 281 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:40:25]                 │
[00:40:25]                 │ debg browser[INFO] http://localhost:61111/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:40:25]                 │ debg ... sleep(700) start
[00:40:26]                 │ debg ... sleep(700) end
[00:40:26]                 │ debg returned from get, calling refresh
[00:40:27]                 │ debg browser[INFO] http://localhost:61111/app/ml?_t=1633541735830 281 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:40:27]                 │
[00:40:27]                 │ debg browser[INFO] http://localhost:61111/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:40:27]                 │ debg currentUrl = http://localhost:61111/app/ml
[00:40:27]                 │          appUrl = http://localhost:61111/app/ml
[00:40:27]                 │ debg TestSubjects.find(kibanaChrome)
[00:40:27]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:40:28]                 │ debg ... sleep(501) start
[00:40:28]                 │ debg ... sleep(501) end
[00:40:28]                 │ debg in navigateTo url = http://localhost:61111/app/ml/overview
[00:40:28]                 │ debg --- retry.tryForTime error: URL changed, waiting for it to settle
[00:40:29]                 │ debg ... sleep(501) start
[00:40:29]                 │ debg ... sleep(501) end
[00:40:29]                 │ debg in navigateTo url = http://localhost:61111/app/ml/overview
[00:40:29]                 │ debg TestSubjects.exists(mlApp)
[00:40:29]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlApp"]') with timeout=2000
[00:40:29]                 │ debg TestSubjects.click(~mlMainTab & ~anomalyDetection)
[00:40:29]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:40:29]                 │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:40:29]                 │ debg TestSubjects.exists(~mlMainTab & ~anomalyDetection & ~selected)
[00:40:29]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"][data-test-subj~="selected"]') with timeout=120000
[00:40:30]                 │ debg TestSubjects.exists(mlPageJobManagement)
[00:40:30]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobManagement"]') with timeout=120000
[00:40:30]                 │ debg === TEST STEP === open the custom URLs tab in the edit job flyout
[00:40:30]                 │ debg TestSubjects.exists(mlActionButtonDeleteJob)
[00:40:30]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlActionButtonDeleteJob"]') with timeout=2500
[00:40:32]                 │ debg --- retry.tryForTime error: [data-test-subj="mlActionButtonDeleteJob"] is not displayed
[00:40:33]                 │ debg TestSubjects.click(~mlJobListTable > ~row-fq_multi_1_custom_urls > euiCollapsedItemActionsButton)
[00:40:33]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_multi_1_custom_urls"] [data-test-subj="euiCollapsedItemActionsButton"]') with timeout=10000
[00:40:33]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_multi_1_custom_urls"] [data-test-subj="euiCollapsedItemActionsButton"]') with timeout=10000
[00:40:33]                 │ debg TestSubjects.exists(mlActionButtonDeleteJob)
[00:40:33]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlActionButtonDeleteJob"]') with timeout=5000
[00:40:33]                 │ debg TestSubjects.click(mlActionButtonEditJob)
[00:40:33]                 │ debg Find.clickByCssSelector('[data-test-subj="mlActionButtonEditJob"]') with timeout=10000
[00:40:33]                 │ debg Find.findByCssSelector('[data-test-subj="mlActionButtonEditJob"]') with timeout=10000
[00:40:33]                 │ debg TestSubjects.exists(mlJobEditFlyout)
[00:40:33]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditFlyout"]') with timeout=120000
[00:40:33]                 │ debg TestSubjects.click(mlEditJobFlyout-customUrls)
[00:40:33]                 │ debg Find.clickByCssSelector('[data-test-subj="mlEditJobFlyout-customUrls"]') with timeout=10000
[00:40:33]                 │ debg Find.findByCssSelector('[data-test-subj="mlEditJobFlyout-customUrls"]') with timeout=10000
[00:40:34]                 │ debg TestSubjects.exists(mlJobOpenCustomUrlFormButton)
[00:40:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=5000
[00:40:34]                 │ debg TestSubjects.exists(mlEditJobFlyoutCloseButton)
[00:40:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlEditJobFlyoutCloseButton"]') with timeout=2500
[00:40:34]                 │ debg TestSubjects.click(mlEditJobFlyoutCloseButton)
[00:40:34]                 │ debg Find.clickByCssSelector('[data-test-subj="mlEditJobFlyoutCloseButton"]') with timeout=10000
[00:40:34]                 │ debg Find.findByCssSelector('[data-test-subj="mlEditJobFlyoutCloseButton"]') with timeout=10000
[00:40:34]                 │ debg TestSubjects.missingOrFail(mlJobEditFlyout)
[00:40:34]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlJobEditFlyout"]') with timeout=2500
[00:40:34]                 └- ✓ pass  (9.2s) "machine learning  anomaly detection custom urls opens the custom URLs tab in the edit job flyout"
[00:40:34]               └-> adds a custom URL with query entities to Discover in the edit job flyout
[00:40:34]                 └-> "before each" hook: global before each for "adds a custom URL with query entities to Discover in the edit job flyout"
[00:40:34]                 │ debg TestSubjects.exists(mlActionButtonDeleteJob)
[00:40:34]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlActionButtonDeleteJob"]') with timeout=2500
[00:40:37]                 │ debg --- retry.tryForTime error: [data-test-subj="mlActionButtonDeleteJob"] is not displayed
[00:40:37]                 │ debg TestSubjects.click(~mlJobListTable > ~row-fq_multi_1_custom_urls > euiCollapsedItemActionsButton)
[00:40:37]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_multi_1_custom_urls"] [data-test-subj="euiCollapsedItemActionsButton"]') with timeout=10000
[00:40:37]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_multi_1_custom_urls"] [data-test-subj="euiCollapsedItemActionsButton"]') with timeout=10000
[00:40:37]                 │ debg TestSubjects.exists(mlActionButtonDeleteJob)
[00:40:37]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlActionButtonDeleteJob"]') with timeout=5000
[00:40:38]                 │ debg TestSubjects.click(mlActionButtonEditJob)
[00:40:38]                 │ debg Find.clickByCssSelector('[data-test-subj="mlActionButtonEditJob"]') with timeout=10000
[00:40:38]                 │ debg Find.findByCssSelector('[data-test-subj="mlActionButtonEditJob"]') with timeout=10000
[00:40:38]                 │ debg TestSubjects.exists(mlJobEditFlyout)
[00:40:38]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditFlyout"]') with timeout=120000
[00:40:38]                 │ debg TestSubjects.click(mlEditJobFlyout-customUrls)
[00:40:38]                 │ debg Find.clickByCssSelector('[data-test-subj="mlEditJobFlyout-customUrls"]') with timeout=10000
[00:40:38]                 │ debg Find.findByCssSelector('[data-test-subj="mlEditJobFlyout-customUrls"]') with timeout=10000
[00:40:38]                 │ debg TestSubjects.exists(mlJobOpenCustomUrlFormButton)
[00:40:38]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=5000
[00:40:38]                 │ debg TestSubjects.findAll(mlJobEditCustomUrlItemLabel)
[00:40:38]                 │ debg Find.allByCssSelector('[data-test-subj="mlJobEditCustomUrlItemLabel"]') with timeout=10000
[00:40:48]                 │ debg TestSubjects.exists(mlJobOpenCustomUrlFormButton)
[00:40:48]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=5000
[00:40:48]                 │ debg TestSubjects.click(mlJobOpenCustomUrlFormButton)
[00:40:48]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=10000
[00:40:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=10000
[00:40:48]                 │ debg TestSubjects.exists(mlJobCustomUrlForm)
[00:40:48]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobCustomUrlForm"]') with timeout=120000
[00:40:48]                 │ debg TestSubjects.setValue(mlJobCustomUrlLabelInput, Show data)
[00:40:48]                 │ debg TestSubjects.click(mlJobCustomUrlLabelInput)
[00:40:48]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:40:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:40:48]                 │ debg TestSubjects.getAttribute(mlJobCustomUrlLabelInput, value, tryTimeout=120000, findTimeout=10000)
[00:40:48]                 │ debg TestSubjects.find(mlJobCustomUrlLabelInput)
[00:40:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:40:48]                 │ debg TestSubjects.find(mlJobCustomUrlLinkToTypeInput)
[00:40:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLinkToTypeInput"]') with timeout=10000
[00:40:48]                 │ debg TestSubjects.find(mlJobCustomUrlLinkToTypeInput)
[00:40:48]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLinkToTypeInput"]') with timeout=10000
[00:40:49]                 │ debg TestSubjects.find(mlJobCustomUrlDiscoverIndexPatternInput)
[00:40:49]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlDiscoverIndexPatternInput"]') with timeout=10000
[00:40:49]                 │ debg TestSubjects.find(mlJobCustomUrlDiscoverIndexPatternInput)
[00:40:49]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlDiscoverIndexPatternInput"]') with timeout=10000
[00:40:49]                 │ debg comboBox.set, comboBoxSelector: mlJobCustomUrlQueryEntitiesInput > comboBoxInput
[00:40:49]                 │ debg TestSubjects.find(mlJobCustomUrlQueryEntitiesInput > comboBoxInput)
[00:40:49]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlQueryEntitiesInput"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:40:49]                 │ debg comboBox.setElement, value: airline
[00:40:49]                 │ debg comboBox.isOptionSelected, value: airline
[00:40:51]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:40:51]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:40:51]                 │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="airline"]') with timeout=2500
[00:40:51]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:40:51]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:40:51]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobCustomUrlQueryEntitiesInput > comboBoxInput
[00:40:51]                 │ debg TestSubjects.find(mlJobCustomUrlQueryEntitiesInput > comboBoxInput)
[00:40:51]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlQueryEntitiesInput"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:40:51]                 │ debg TestSubjects.find(mlJobCustomUrlTimeRangeInput)
[00:40:51]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlTimeRangeInput"]') with timeout=10000
[00:40:51]                 │ debg TestSubjects.find(mlJobCustomUrlTimeRangeInput)
[00:40:51]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlTimeRangeInput"]') with timeout=10000
[00:40:51]                 │ debg TestSubjects.click(mlJobAddCustomUrl)
[00:40:51]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:40:51]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:40:51]                 │ debg TestSubjects.exists(mlJobEditCustomUrlLabelInput_0)
[00:40:51]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditCustomUrlLabelInput_0"]') with timeout=1000
[00:40:51]                 │ debg TestSubjects.getAttribute(mlJobEditCustomUrlLabelInput_0, value, tryTimeout=120000, findTimeout=10000)
[00:40:51]                 │ debg TestSubjects.find(mlJobEditCustomUrlLabelInput_0)
[00:40:51]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobEditCustomUrlLabelInput_0"]') with timeout=10000
[00:40:51]                 │ debg TestSubjects.click(mlEditJobFlyoutSaveButton)
[00:40:51]                 │ debg Find.clickByCssSelector('[data-test-subj="mlEditJobFlyoutSaveButton"]') with timeout=10000
[00:40:51]                 │ debg Find.findByCssSelector('[data-test-subj="mlEditJobFlyoutSaveButton"]') with timeout=10000
[00:40:52]                 │ debg TestSubjects.missingOrFail(mlJobEditFlyout)
[00:40:52]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlJobEditFlyout"]') with timeout=5000
[00:40:52]                 └- ✓ pass  (17.9s) "machine learning  anomaly detection custom urls adds a custom URL with query entities to Discover in the edit job flyout"
[00:40:52]               └-> adds a custom URL to Dashboard in the edit job flyout
[00:40:52]                 └-> "before each" hook: global before each for "adds a custom URL to Dashboard in the edit job flyout"
[00:40:52]                 │ debg TestSubjects.exists(mlActionButtonDeleteJob)
[00:40:52]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlActionButtonDeleteJob"]') with timeout=2500
[00:40:55]                 │ debg --- retry.tryForTime error: [data-test-subj="mlActionButtonDeleteJob"] is not displayed
[00:40:55]                 │ debg TestSubjects.click(~mlJobListTable > ~row-fq_multi_1_custom_urls > euiCollapsedItemActionsButton)
[00:40:55]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_multi_1_custom_urls"] [data-test-subj="euiCollapsedItemActionsButton"]') with timeout=10000
[00:40:55]                 │ debg Find.findByCssSelector('[data-test-subj~="mlJobListTable"] [data-test-subj~="row-fq_multi_1_custom_urls"] [data-test-subj="euiCollapsedItemActionsButton"]') with timeout=10000
[00:40:55]                 │ debg TestSubjects.exists(mlActionButtonDeleteJob)
[00:40:55]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlActionButtonDeleteJob"]') with timeout=5000
[00:40:56]                 │ debg TestSubjects.click(mlActionButtonEditJob)
[00:40:56]                 │ debg Find.clickByCssSelector('[data-test-subj="mlActionButtonEditJob"]') with timeout=10000
[00:40:56]                 │ debg Find.findByCssSelector('[data-test-subj="mlActionButtonEditJob"]') with timeout=10000
[00:40:56]                 │ debg TestSubjects.exists(mlJobEditFlyout)
[00:40:56]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditFlyout"]') with timeout=120000
[00:40:56]                 │ debg TestSubjects.click(mlEditJobFlyout-customUrls)
[00:40:56]                 │ debg Find.clickByCssSelector('[data-test-subj="mlEditJobFlyout-customUrls"]') with timeout=10000
[00:40:56]                 │ debg Find.findByCssSelector('[data-test-subj="mlEditJobFlyout-customUrls"]') with timeout=10000
[00:40:56]                 │ debg TestSubjects.exists(mlJobOpenCustomUrlFormButton)
[00:40:56]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=5000
[00:40:56]                 │ debg TestSubjects.findAll(mlJobEditCustomUrlItemLabel)
[00:40:56]                 │ debg Find.allByCssSelector('[data-test-subj="mlJobEditCustomUrlItemLabel"]') with timeout=10000
[00:40:56]                 │ debg TestSubjects.exists(mlJobOpenCustomUrlFormButton)
[00:40:56]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=5000
[00:40:56]                 │ debg TestSubjects.click(mlJobOpenCustomUrlFormButton)
[00:40:56]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=10000
[00:40:56]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=10000
[00:40:56]                 │ debg TestSubjects.exists(mlJobCustomUrlForm)
[00:40:56]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobCustomUrlForm"]') with timeout=120000
[00:40:56]                 │ debg TestSubjects.setValue(mlJobCustomUrlLabelInput, Show dashboard)
[00:40:56]                 │ debg TestSubjects.click(mlJobCustomUrlLabelInput)
[00:40:56]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:40:56]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:40:57]                 │ debg TestSubjects.getAttribute(mlJobCustomUrlLabelInput, value, tryTimeout=120000, findTimeout=10000)
[00:40:57]                 │ debg TestSubjects.find(mlJobCustomUrlLabelInput)
[00:40:57]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:40:57]                 │ debg TestSubjects.find(mlJobCustomUrlLinkToTypeInput)
[00:40:57]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLinkToTypeInput"]') with timeout=10000
[00:40:57]                 │ debg TestSubjects.find(mlJobCustomUrlLinkToTypeInput)
[00:40:57]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLinkToTypeInput"]') with timeout=10000
[00:40:57]                 │ debg TestSubjects.find(mlJobCustomUrlDashboardNameInput)
[00:40:57]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlDashboardNameInput"]') with timeout=10000
[00:40:57]                 │ debg TestSubjects.find(mlJobCustomUrlDashboardNameInput)
[00:40:57]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlDashboardNameInput"]') with timeout=10000
[00:40:57]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobCustomUrlQueryEntitiesInput > comboBoxInput
[00:40:57]                 │ debg TestSubjects.find(mlJobCustomUrlQueryEntitiesInput > comboBoxInput)
[00:40:57]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlQueryEntitiesInput"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:40:57]                 │ debg TestSubjects.find(mlJobCustomUrlTimeRangeInput)
[00:40:57]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlTimeRangeInput"]') with timeout=10000
[00:40:57]                 │ debg TestSubjects.find(mlJobCustomUrlTimeRangeInput)
[00:40:57]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlTimeRangeInput"]') with timeout=10000
[00:40:57]                 │ debg TestSubjects.setValue(mlJobCustomUrlTimeRangeIntervalInput, 1h)
[00:40:57]                 │ debg TestSubjects.click(mlJobCustomUrlTimeRangeIntervalInput)
[00:40:57]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobCustomUrlTimeRangeIntervalInput"]') with timeout=10000
[00:40:57]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlTimeRangeIntervalInput"]') with timeout=10000
[00:40:57]                 │ debg TestSubjects.getAttribute(mlJobCustomUrlTimeRangeIntervalInput, value, tryTimeout=120000, findTimeout=10000)
[00:40:57]                 │ debg TestSubjects.find(mlJobCustomUrlTimeRangeIntervalInput)
[00:40:57]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlTimeRangeIntervalInput"]') with timeout=10000
[00:40:57]                 │ debg TestSubjects.click(mlJobAddCustomUrl)
[00:40:57]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:40:57]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:40:57]                 │ debg TestSubjects.exists(mlJobEditCustomUrlLabelInput_1)
[00:40:57]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditCustomUrlLabelInput_1"]') with timeout=1000
[00:40:57]                 │ERROR browser[SEVERE] http://localhost:61111/46826/bundles/plugin/ml/8.0.0/ml.chunk.6.js 16:780480 "Error building custom URL from settings:" Error: requires type and id
[00:40:57]                 │          at saved_objects_client_SavedObjectsClient.get (http://localhost:61111/46826/bundles/core/core.entry.js:8:48730)
[00:40:57]                 │          at http://localhost:61111/46826/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769300
[00:40:57]                 │          at new Promise (<anonymous>)
[00:40:57]                 │          at http://localhost:61111/46826/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769209
[00:40:57]                 │          at T (http://localhost:61111/46826/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769892)
[00:40:57]                 │          at http://localhost:61111/46826/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:780324
[00:40:57]                 │          at Object.g (http://localhost:61111/46826/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1036)
[00:40:57]                 │          at E (http://localhost:61111/46826/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1179)
[00:40:57]                 │          at http://localhost:61111/46826/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1325
[00:40:57]                 │          at A (http://localhost:61111/46826/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1411)
[00:40:59]                 │ debg --- retry.tryForTime error: [data-test-subj="mlJobEditCustomUrlLabelInput_1"] is not displayed
[00:40:59]                 │ debg --- retry.tryForTime error: expected testSubject(mlJobEditCustomUrlLabelInput_1) to exist
[00:41:00]                 │ debg TestSubjects.click(mlJobAddCustomUrl)
[00:41:00]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:41:00]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:41:00]                 │ debg TestSubjects.exists(mlJobEditCustomUrlLabelInput_1)
[00:41:00]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditCustomUrlLabelInput_1"]') with timeout=1000
[00:41:00]                 │ERROR browser[SEVERE] http://localhost:61111/46826/bundles/plugin/ml/8.0.0/ml.chunk.6.js 16:780480 "Error building custom URL from settings:" Error: requires type and id
[00:41:00]                 │          at saved_objects_client_SavedObjectsClient.get (http://localhost:61111/46826/bundles/core/core.entry.js:8:48730)
[00:41:00]                 │          at http://localhost:61111/46826/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769300
[00:41:00]                 │          at new Promise (<anonymous>)
[00:41:00]                 │          at http://localhost:61111/46826/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769209
[00:41:00]                 │          at T (http://localhost:61111/46826/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769892)
[00:41:00]                 │          at http://localhost:61111/46826/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:780324
[00:41:00]                 │          at Object.g (http://localhost:61111/46826/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1036)
[00:41:00]                 │          at E (http://localhost:61111/46826/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1179)
[00:41:00]                 │          at http://localhost:61111/46826/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1325
[00:41:00]                 │          at A (http://localhost:61111/46826/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1411)
[00:41:01]                 │ debg --- retry.tryForTime error: [data-test-subj="mlJobEditCustomUrlLabelInput_1"] is not displayed
[00:41:01]                 │ debg --- retry.tryForTime failed again with the same message...
[00:41:02]                 │ debg TestSubjects.click(mlJobAddCustomUrl)
[00:41:02]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:41:02]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:41:02]                 │ debg TestSubjects.exists(mlJobEditCustomUrlLabelInput_1)
[00:41:02]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditCustomUrlLabelInput_1"]') with timeout=1000
[00:41:02]                 │ERROR browser[SEVERE] http://localhost:61111/46826/bundles/plugin/ml/8.0.0/ml.chunk.6.js 16:780480 "Error building custom URL from settings:" Error: requires type and id
[00:41:02]                 │          at saved_objects_client_SavedObjectsClient.get (http://localhost:61111/46826/bundles/core/core.entry.js:8:48730)
[00:41:02]                 │          at http://localhost:61111/46826/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769300
[00:41:02]                 │          at new Promise (<anonymous>)
[00:41:02]                 │          at http://localhost:61111/46826/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769209
[00:41:02]                 │          at T (http://localhost:61111/46826/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769892)
[00:41:02]                 │          at http://localhost:61111/46826/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:780324
[00:41:02]                 │          at Object.g (http://localhost:61111/46826/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1036)
[00:41:02]                 │          at E (http://localhost:61111/46826/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1179)
[00:41:02]                 │          at http://localhost:61111/46826/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1325
[00:41:02]                 │          at A (http://localhost:61111/46826/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1411)
[00:41:03]                 │ debg --- retry.tryForTime error: [data-test-subj="mlJobEditCustomUrlLabelInput_1"] is not displayed
[00:41:03]                 │ debg --- retry.tryForTime failed again with the same message...
[00:41:04]                 │ info Taking screenshot "/dev/shm/workspace/parallel/11/kibana/x-pack/test/functional/screenshots/failure/machine learning  anomaly detection custom urls adds a custom URL to Dashboard in the edit job flyout.png"
[00:41:04]                 │ info Current URL is: http://localhost:61111/app/ml/jobs?_g=(refreshInterval%3A(pause%3A!f%2Cvalue%3A30000))&_a=(jobs%3A(pageIndex%3A0%2CpageSize%3A10%2CqueryText%3A''%2CsortDirection%3Aasc%2CsortField%3Aid))
[00:41:04]                 │ info Saving page source to: /dev/shm/workspace/parallel/11/kibana/x-pack/test/functional/failure_debug/html/machine learning  anomaly detection custom urls adds a custom URL to Dashboard in the edit job flyout.html
[00:41:04]                 └- ✖ fail: machine learning  anomaly detection custom urls adds a custom URL to Dashboard in the edit job flyout
[00:41:04]                 │      retry.tryForTime timeout: Error: expected testSubject(mlJobEditCustomUrlLabelInput_1) to exist
[00:41:04]                 │     at TestSubjects.existOrFail (/dev/shm/workspace/parallel/11/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:41:04]                 │     at Object.assertCustomUrlLabel (/dev/shm/workspace/parallel/11/kibana/x-pack/test/functional/services/ml/custom_urls.ts:106:7)
[00:41:04]                 │     at /dev/shm/workspace/parallel/11/kibana/x-pack/test/functional/services/ml/job_table.ts:640:9
[00:41:04]                 │     at runAttempt (/dev/shm/workspace/parallel/11/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:41:04]                 │     at retryForSuccess (/dev/shm/workspace/parallel/11/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:41:04]                 │     at RetryService.tryForTime (/dev/shm/workspace/parallel/11/kibana/test/common/services/retry/retry.ts:22:12)
[00:41:04]                 │     at MlJobTable.addDashboardCustomUrl (/dev/shm/workspace/parallel/11/kibana/x-pack/test/functional/services/ml/job_table.ts:637:7)
[00:41:04]                 │     at Context.<anonymous> (/dev/shm/workspace/parallel/11/kibana/x-pack/test/functional/apps/ml/anomaly_detection/custom_urls.ts:116:7)
[00:41:04]                 │     at Object.apply (/dev/shm/workspace/parallel/11/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:41:04]                 │   Error: retry.tryForTime timeout: Error: expected testSubject(mlJobEditCustomUrlLabelInput_1) to exist
[00:41:04]                 │       at TestSubjects.existOrFail (/dev/shm/workspace/parallel/11/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:41:04]                 │       at Object.assertCustomUrlLabel (test/functional/services/ml/custom_urls.ts:106:7)
[00:41:04]                 │       at /dev/shm/workspace/parallel/11/kibana/x-pack/test/functional/services/ml/job_table.ts:640:9
[00:41:04]                 │       at runAttempt (/dev/shm/workspace/parallel/11/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:41:04]                 │       at retryForSuccess (/dev/shm/workspace/parallel/11/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:41:04]                 │       at RetryService.tryForTime (/dev/shm/workspace/parallel/11/kibana/test/common/services/retry/retry.ts:22:12)
[00:41:04]                 │       at MlJobTable.addDashboardCustomUrl (test/functional/services/ml/job_table.ts:637:7)
[00:41:04]                 │       at Context.<anonymous> (test/functional/apps/ml/anomaly_detection/custom_urls.ts:116:7)
[00:41:04]                 │       at Object.apply (/dev/shm/workspace/parallel/11/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:41:04]                 │       at onFailure (/dev/shm/workspace/parallel/11/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:41:04]                 │       at retryForSuccess (/dev/shm/workspace/parallel/11/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:41:04]                 │       at RetryService.tryForTime (/dev/shm/workspace/parallel/11/kibana/test/common/services/retry/retry.ts:22:12)
[00:41:04]                 │       at MlJobTable.addDashboardCustomUrl (test/functional/services/ml/job_table.ts:637:7)
[00:41:04]                 │       at Context.<anonymous> (test/functional/apps/ml/anomaly_detection/custom_urls.ts:116:7)
[00:41:04]                 │       at Object.apply (/dev/shm/workspace/parallel/11/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:41:04]                 │ 
[00:41:04]                 │ 

Stack Trace

Error: retry.tryForTime timeout: Error: expected testSubject(mlJobEditCustomUrlLabelInput_1) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/parallel/11/kibana/test/functional/services/common/test_subjects.ts:45:13)
    at Object.assertCustomUrlLabel (test/functional/services/ml/custom_urls.ts:106:7)
    at /dev/shm/workspace/parallel/11/kibana/x-pack/test/functional/services/ml/job_table.ts:640:9
    at runAttempt (/dev/shm/workspace/parallel/11/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/11/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at RetryService.tryForTime (/dev/shm/workspace/parallel/11/kibana/test/common/services/retry/retry.ts:22:12)
    at MlJobTable.addDashboardCustomUrl (test/functional/services/ml/job_table.ts:637:7)
    at Context.<anonymous> (test/functional/apps/ml/anomaly_detection/custom_urls.ts:116:7)
    at Object.apply (/dev/shm/workspace/parallel/11/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
    at onFailure (/dev/shm/workspace/parallel/11/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/11/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.tryForTime (/dev/shm/workspace/parallel/11/kibana/test/common/services/retry/retry.ts:22:12)
    at MlJobTable.addDashboardCustomUrl (test/functional/services/ml/job_table.ts:637:7)
    at Context.<anonymous> (test/functional/apps/ml/anomaly_detection/custom_urls.ts:116:7)
    at Object.apply (/dev/shm/workspace/parallel/11/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
monitoring 1.0MB 1.0MB +996.0B

History

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

@simianhacker
Copy link
Member

Whoops... I did the same thing in #114029. Do you want to take a look at my implementation? Let me know if you prefer your's over mine.

@simianhacker simianhacker self-requested a review October 6, 2021 21:44
@estermv
Copy link
Contributor Author

estermv commented Oct 7, 2021

Closing it in favor of #114029

@estermv estermv closed this Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated - use backport:version if exact versions are needed Epic: Stack Monitoring de-angularization Feature:Stack Monitoring release_note:skip Skip the PR/issue when compiling release notes Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services v7.16.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Stack Monitoring][Angular removal] Add error handling to requests
3 participants