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] Migrate Index Views to React #113660

Merged
merged 3 commits into from
Oct 4, 2021

Conversation

neptunian
Copy link
Contributor

@neptunian neptunian commented Oct 1, 2021

Resolves #113631

Test

  • Navigate to Elasticsearch -> Indices -> click on an index
  • Should land on the Overview index page
  • Verify it refreshes data if auto refreshing is on
  • Verify there is a shard legend with nodes by index. The column should say "Nodes"
    Screen Shot 2021-10-01 at 2 19 08 PM
  • Click on Advanced tab
  • Verify it refreshes data if auto refreshing is on and looks the same in Angular mode

@neptunian neptunian added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes auto-backport Deprecated - use backport:version if exact versions are needed v7.16.0 Epic: Stack Monitoring de-angularization labels Oct 1, 2021
@neptunian neptunian requested a review from a team as a code owner October 1, 2021 18:20
@neptunian neptunian self-assigned this Oct 1, 2021
@neptunian neptunian requested review from a team October 1, 2021 18:20
@neptunian neptunian added the Team:Infra Monitoring UI - DEPRECATED DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services label Oct 1, 2021
@elasticmachine
Copy link
Contributor

Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui)

@@ -0,0 +1,70 @@
/*
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is the same as the original (index.js), except i'm no longer passing $scope to shardAllocation and using shardAllocationReact introduced in the Node view PR


export const ClusterViewReact = (props) => {
return (
<table cellPadding="0" cellSpacing="0" className="table">
<TableHeadReact
labels={labels.node}
labels={props.labels}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

this has to be sent from the parent component (index or node pages) because they both use this component and pass in their respective labels

@matschaffer
Copy link
Contributor

matschaffer commented Oct 4, 2021

Testing (via docker-test-cluster)

  • Navigate to Elasticsearch -> Indices -> click on an index
  • Should land on the Overview index page
  • Verify it refreshes data if auto refreshing is on
  • Verify there is a shard legend with nodes by index. The column should say "Nodes"
  • Click on Advanced tab
  • Verify it refreshes data if auto refreshing is on and looks the same in Angular mode

@matschaffer
Copy link
Contributor

For good measure I tried a relocate operation:

POST _cluster/reroute
{
  "commands": [
    {"move": {
      "index": "heartbeat-7.15.0-2021.10.01-000001",
      "shard": 0,
      "from_node": "node02",
      "to_node": "node03"
    }}
  ]
}

Here's a recording, you'll need to give it a few seconds to go blank then reload to show shard 0 on node 02

recording of shard relocation on react view

The UI did eventually update, but seemed like maybe it missed the relocating stage (just went blank for a cycle then came back as moved).

It's a small index, so could be the relocating stage was too short to see, but the blank load was a little surprising.

No errors in the JS console.

Copy link
Contributor

@matschaffer matschaffer left a comment

Choose a reason for hiding this comment

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

LGTM - I opened #113715 to ensure all shards states are visible. I think we can address that after feature freeze.


return (
<ItemTemplate title={title} getPageData={getPageData} id={index} pageType="indices">
<SetupModeRenderer
Copy link
Contributor

Choose a reason for hiding this comment

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

So weird that there's a setup mode here (that doesn't seem to do anything), but it's the same on angular so 👍🏻

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea I was tempted to remove it. There's no action to take from what I could see.

@matschaffer
Copy link
Contributor

@elasticmachine merge upstream

@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:01]             │ 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:12]           └-: anomaly detection
[00:08:12]             └-> "before all" hook in "anomaly detection"
[00:39:34]             └-: custom urls
[00:39:34]               └-> "before all" hook for "opens the custom URLs tab in the edit job flyout"
[00:39:34]               └-> "before all" hook for "opens the custom URLs tab in the edit job flyout"
[00:39:34]                 │ info [x-pack/test/functional/es_archives/ml/farequote] Loading "mappings.json"
[00:39:34]                 │ info [x-pack/test/functional/es_archives/ml/farequote] Loading "data.json.gz"
[00:39:34]                 │ info [x-pack/test/functional/es_archives/ml/farequote] Skipped restore for existing index "ft_farequote"
[00:39:35]                 │ERROR browser[SEVERE] http://localhost:61131/api/ml/annotations - Failed to load resource: the server responded with a status of 400 (Bad Request)
[00:39:36]                 │ debg Searching for 'index-pattern' with title 'ft_farequote'...
[00:39:36]                 │ debg  > Found '1bed0910-24c1-11ec-8c1f-1157c0c739b5'
[00:39:36]                 │ debg Index pattern with title 'ft_farequote' already exists. Nothing to create.
[00:39:36]                 │ debg Searching for 'dashboard' with title 'ML Test'...
[00:39:36]                 │ debg  > Not found
[00:39:36]                 │ debg Creating dashboard with title 'ML Test'
[00:39:36]                 │ debg  > Created with id '803479d0-24c6-11ec-8c1f-1157c0c739b5'
[00:39:36]                 │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:39:37]                 │ debg Creating anomaly detection job with id 'fq_multi_1_custom_urls' ...
[00:39:37]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:39:37]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:39:37]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:39:37]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:39:38]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.ml-anomalies-shared/LixlZQbvQay2hEP9brh3iQ] update_mapping [_doc]
[00:39:38]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-config] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:39:38]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-config]
[00:39:38]                 │ 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:39:38]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-notifications-000002]
[00:39:38]                 │ debg Waiting up to 5000ms for 'fq_multi_1_custom_urls' to exist...
[00:39:38]                 │ debg > AD job created.
[00:39:38]                 │ debg Creating datafeed with id 'datafeed-fq_multi_1_custom_urls' ...
[00:39:39]                 │ debg Waiting up to 5000ms for 'datafeed-fq_multi_1_custom_urls' to exist...
[00:39:39]                 │ debg > Datafeed created.
[00:39:39]                 │ debg Opening anomaly detection job 'fq_multi_1_custom_urls'...
[00:39:39]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [node-01] Opening job [fq_multi_1_custom_urls]
[00:39:39]                 │ 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:39:39]                 │ info [o.e.c.m.MetadataCreateIndexService] [node-01] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1]
[00:39:39]                 │ info [o.e.c.r.a.AllocationService] [node-01] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:39:40]                 │ 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:39:40]                 │ 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:39:40]                 │ 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:39:40]                 │ 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:39:40]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [node-01] [fq_multi_1_custom_urls] [autodetect/200553] [CResourceMonitor.cc@82] Setting model memory limit to 20 MB
[00:39:40]                 │ debg > AD job opened.
[00:39:40]                 │ debg Starting datafeed 'datafeed-fq_multi_1_custom_urls' with start: '0', end: '1633319555805'...
[00:39:40]                 │ debg > Datafeed started.
[00:39:40]                 │ debg Waiting up to 120000ms for datafeed state to be stopped...
[00:39:40]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:39:40]                 │ 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-04T03:52:35.805Z) with frequency [600000ms]
[00:39:40]                 │ debg --- retry.waitForWithTimeout error: expected job state to be stopped but got started
[00:39:40]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.ml-anomalies-shared/LixlZQbvQay2hEP9brh3iQ] update_mapping [_doc]
[00:39:40]                 │ 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:39:40]                 │ 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:39:41]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:39:41]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:39:41]                 │ 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:39:41]                 │ 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:39:41]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:39:41]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:39:41]                 │ 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:39:42]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:39:42]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:39:42]                 │ 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:39:42]                 │ 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:39:42]                 │ 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:39:42]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:39:42]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:39:43]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:39:43]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:39:43]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:39:43]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:39:44]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:39:44]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:39:44]                 │ info [o.e.x.m.d.DatafeedJob] [node-01] [fq_multi_1_custom_urls] Lookback has finished
[00:39:44]                 │ 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:39:44]                 │ 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:39:44]                 │ 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:39:44]                 │ 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:39:44]                 │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [node-01] Closing job [fq_multi_1_custom_urls], because [close job (api)]
[00:39:44]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [node-01] [fq_multi_1_custom_urls] [autodetect/200553] [CCmdSkeleton.cc@66] Handled 86274 records
[00:39:44]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [node-01] [fq_multi_1_custom_urls] [autodetect/200553] [CAnomalyJob.cc@1601] Pruning obsolete models
[00:39:44]                 │ info [o.e.c.m.MetadataMappingService] [node-01] [.ml-anomalies-shared/LixlZQbvQay2hEP9brh3iQ] update_mapping [_doc]
[00:39:44]                 │ info [o.e.x.m.p.AbstractNativeProcess] [node-01] [fq_multi_1_custom_urls] State output finished
[00:39:44]                 │ info [o.e.x.m.j.p.a.o.AutodetectResultProcessor] [node-01] [fq_multi_1_custom_urls] 240 buckets parsed from autodetect output
[00:39:44]                 │ debg Fetching datafeed state for datafeed datafeed-fq_multi_1_custom_urls
[00:39:44]                 │ debg Waiting up to 120000ms for job state to be closed...
[00:39:44]                 │ debg Fetching anomaly detection job stats for job fq_multi_1_custom_urls...
[00:39:44]                 │ debg > AD job stats fetched.
[00:39:44]                 │ debg --- retry.waitForWithTimeout error: expected job state to be closed but got closing
[00:39:45]                 │ debg Fetching anomaly detection job stats for job fq_multi_1_custom_urls...
[00:39:45]                 │ debg > AD job stats fetched.
[00:39:45]                 │ debg --- retry.waitForWithTimeout failed again with the same message...
[00:39:45]                 │ info [o.e.x.m.j.p.a.AutodetectCommunicator] [node-01] [fq_multi_1_custom_urls] autodetect connection for job closed
[00:39:45]                 │ debg Fetching anomaly detection job stats for job fq_multi_1_custom_urls...
[00:39:45]                 │ debg > AD job stats fetched.
[00:39:45]                 │ debg SecurityPage.forceLogout
[00:39:45]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:39:45]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:39:46]                 │ debg Redirecting to /logout to force the logout
[00:39:46]                 │ debg Waiting on the login form to appear
[00:39:46]                 │ debg Waiting for Login Page to appear.
[00:39:46]                 │ debg Waiting up to 100000ms for login page...
[00:39:46]                 │ debg browser[INFO] http://localhost:61131/logout?_t=1633319561657 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:39:46]                 │
[00:39:46]                 │ debg browser[INFO] http://localhost:61131/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:39:46]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:39:48]                 │ERROR browser[SEVERE] http://localhost:61131/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:39:48]                 │ debg browser[INFO] http://localhost:61131/46681/bundles/core/core.entry.js 7:106163 "Detected an unhandled Promise rejection.
[00:39:48]                 │      Error: Unauthorized"
[00:39:48]                 │ERROR browser[SEVERE] http://localhost:61131/46681/bundles/core/core.entry.js 7:52868 
[00:39:48]                 │ debg browser[INFO] http://localhost:61131/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:39:48]                 │
[00:39:48]                 │ debg browser[INFO] http://localhost:61131/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:39:48]                 │ debg --- retry.tryForTime error: .login-form is not displayed
[00:39:49]                 │ERROR browser[SEVERE] http://localhost:61131/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:39:49]                 │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:39:50]                 │ debg TestSubjects.exists(loginForm)
[00:39:50]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:39:50]                 │ debg Waiting for Login Form to appear.
[00:39:50]                 │ debg Waiting up to 100000ms for login form...
[00:39:50]                 │ debg TestSubjects.exists(loginForm)
[00:39:50]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:39:50]                 │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:39:50]                 │ debg TestSubjects.click(loginUsername)
[00:39:50]                 │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:39:50]                 │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:39:50]                 │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:39:50]                 │ debg TestSubjects.click(loginPassword)
[00:39:50]                 │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:39:50]                 │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:39:50]                 │ debg TestSubjects.click(loginSubmit)
[00:39:50]                 │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:39:50]                 │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:39:50]                 │ debg Waiting for login result, expected: chrome.
[00:39:50]                 │ debg Find.findByCssSelector('[data-test-subj="userMenuAvatar"]') with timeout=20000
[00:39:50]                 │ proc [kibana]   log   [03:52:45.818] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:39:52]                 │ debg browser[INFO] http://localhost:61131/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:39:52]                 │
[00:39:52]                 │ debg browser[INFO] http://localhost:61131/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:39:52]                 │ debg Finished login process currentUrl = http://localhost:61131/app/home#/
[00:39:52]                 │ debg Waiting up to 20000ms for logout button visible...
[00:39:52]                 │ debg TestSubjects.exists(userMenuButton)
[00:39:52]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:39:53]                 │ debg TestSubjects.exists(userMenu)
[00:39:53]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:39:55]                 │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:39:56]                 │ debg TestSubjects.click(userMenuButton)
[00:39:56]                 │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:39:56]                 │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:39:56]                 │ debg TestSubjects.exists(userMenu)
[00:39:56]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:39:56]                 │ debg TestSubjects.exists(userMenu > logoutLink)
[00:39:56]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:39:56]               └-> opens the custom URLs tab in the edit job flyout
[00:39:56]                 └-> "before each" hook: global before each for "opens the custom URLs tab in the edit job flyout"
[00:39:56]                 │ debg === TEST STEP === load the job management page
[00:39:56]                 │ debg navigating to ml url: http://localhost:61131/app/ml
[00:39:56]                 │ debg navigate to: http://localhost:61131/app/ml
[00:39:56]                 │ debg browser[INFO] http://localhost:61131/app/ml?_t=1633319571705 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:39:56]                 │
[00:39:56]                 │ debg browser[INFO] http://localhost:61131/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:39:56]                 │ debg ... sleep(700) start
[00:39:57]                 │ debg ... sleep(700) end
[00:39:57]                 │ debg returned from get, calling refresh
[00:39:58]                 │ debg browser[INFO] http://localhost:61131/app/ml?_t=1633319571705 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:39:58]                 │
[00:39:58]                 │ debg browser[INFO] http://localhost:61131/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:39:59]                 │ debg currentUrl = http://localhost:61131/app/ml
[00:39:59]                 │          appUrl = http://localhost:61131/app/ml
[00:39:59]                 │ debg TestSubjects.find(kibanaChrome)
[00:39:59]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:39:59]                 │ debg ... sleep(501) start
[00:39:59]                 │ debg ... sleep(501) end
[00:39:59]                 │ debg in navigateTo url = http://localhost:61131/app/ml/overview
[00:39:59]                 │ debg --- retry.tryForTime error: URL changed, waiting for it to settle
[00:40:00]                 │ debg ... sleep(501) start
[00:40:00]                 │ debg ... sleep(501) end
[00:40:00]                 │ debg in navigateTo url = http://localhost:61131/app/ml/overview
[00:40:00]                 │ debg TestSubjects.exists(mlApp)
[00:40:00]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlApp"]') with timeout=2000
[00:40:00]                 │ debg TestSubjects.click(~mlMainTab & ~anomalyDetection)
[00:40:00]                 │ debg Find.clickByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:40:00]                 │ debg Find.findByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"]') with timeout=10000
[00:40:01]                 │ debg TestSubjects.exists(~mlMainTab & ~anomalyDetection & ~selected)
[00:40:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="mlMainTab"][data-test-subj~="anomalyDetection"][data-test-subj~="selected"]') with timeout=120000
[00:40:01]                 │ debg TestSubjects.exists(mlPageJobManagement)
[00:40:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlPageJobManagement"]') with timeout=120000
[00:40:01]                 │ debg === TEST STEP === open the custom URLs tab in the edit job flyout
[00:40:01]                 │ debg TestSubjects.exists(mlActionButtonDeleteJob)
[00:40:01]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlActionButtonDeleteJob"]') with timeout=2500
[00:40:03]                 │ debg --- retry.tryForTime error: [data-test-subj="mlActionButtonDeleteJob"] is not displayed
[00:40:04]                 │ debg TestSubjects.click(~mlJobListTable > ~row-fq_multi_1_custom_urls > euiCollapsedItemActionsButton)
[00:40:04]                 │ 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:04]                 │ 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:04]                 │ debg TestSubjects.exists(mlActionButtonDeleteJob)
[00:40:04]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlActionButtonDeleteJob"]') with timeout=5000
[00:40:04]                 │ debg TestSubjects.click(mlActionButtonEditJob)
[00:40:04]                 │ debg Find.clickByCssSelector('[data-test-subj="mlActionButtonEditJob"]') with timeout=10000
[00:40:04]                 │ debg Find.findByCssSelector('[data-test-subj="mlActionButtonEditJob"]') with timeout=10000
[00:40:04]                 │ debg TestSubjects.exists(mlJobEditFlyout)
[00:40:04]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditFlyout"]') with timeout=120000
[00:40:04]                 │ debg TestSubjects.click(mlEditJobFlyout-customUrls)
[00:40:04]                 │ debg Find.clickByCssSelector('[data-test-subj="mlEditJobFlyout-customUrls"]') with timeout=10000
[00:40:04]                 │ debg Find.findByCssSelector('[data-test-subj="mlEditJobFlyout-customUrls"]') with timeout=10000
[00:40:05]                 │ debg TestSubjects.exists(mlJobOpenCustomUrlFormButton)
[00:40:05]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=5000
[00:40:05]                 │ debg TestSubjects.exists(mlEditJobFlyoutCloseButton)
[00:40:05]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlEditJobFlyoutCloseButton"]') with timeout=2500
[00:40:05]                 │ debg TestSubjects.click(mlEditJobFlyoutCloseButton)
[00:40:05]                 │ debg Find.clickByCssSelector('[data-test-subj="mlEditJobFlyoutCloseButton"]') with timeout=10000
[00:40:05]                 │ debg Find.findByCssSelector('[data-test-subj="mlEditJobFlyoutCloseButton"]') with timeout=10000
[00:40:05]                 │ debg TestSubjects.missingOrFail(mlJobEditFlyout)
[00:40:05]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlJobEditFlyout"]') with timeout=2500
[00:40:05]                 └- ✓ pass  (9.4s) "machine learning  anomaly detection custom urls opens the custom URLs tab in the edit job flyout"
[00:40:05]               └-> adds a custom URL with query entities to Discover in the edit job flyout
[00:40:05]                 └-> "before each" hook: global before each for "adds a custom URL with query entities to Discover in the edit job flyout"
[00:40:05]                 │ debg TestSubjects.exists(mlActionButtonDeleteJob)
[00:40:05]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlActionButtonDeleteJob"]') with timeout=2500
[00:40:08]                 │ debg --- retry.tryForTime error: [data-test-subj="mlActionButtonDeleteJob"] is not displayed
[00:40:08]                 │ debg TestSubjects.click(~mlJobListTable > ~row-fq_multi_1_custom_urls > euiCollapsedItemActionsButton)
[00:40:08]                 │ 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:08]                 │ 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:08]                 │ debg TestSubjects.exists(mlActionButtonDeleteJob)
[00:40:08]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlActionButtonDeleteJob"]') with timeout=5000
[00:40:08]                 │ debg TestSubjects.click(mlActionButtonEditJob)
[00:40:08]                 │ debg Find.clickByCssSelector('[data-test-subj="mlActionButtonEditJob"]') with timeout=10000
[00:40:08]                 │ debg Find.findByCssSelector('[data-test-subj="mlActionButtonEditJob"]') with timeout=10000
[00:40:08]                 │ debg TestSubjects.exists(mlJobEditFlyout)
[00:40:08]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditFlyout"]') with timeout=120000
[00:40:09]                 │ debg TestSubjects.click(mlEditJobFlyout-customUrls)
[00:40:09]                 │ debg Find.clickByCssSelector('[data-test-subj="mlEditJobFlyout-customUrls"]') with timeout=10000
[00:40:09]                 │ debg Find.findByCssSelector('[data-test-subj="mlEditJobFlyout-customUrls"]') with timeout=10000
[00:40:09]                 │ debg TestSubjects.exists(mlJobOpenCustomUrlFormButton)
[00:40:09]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=5000
[00:40:09]                 │ debg TestSubjects.findAll(mlJobEditCustomUrlItemLabel)
[00:40:09]                 │ debg Find.allByCssSelector('[data-test-subj="mlJobEditCustomUrlItemLabel"]') with timeout=10000
[00:40:19]                 │ debg TestSubjects.exists(mlJobOpenCustomUrlFormButton)
[00:40:19]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=5000
[00:40:19]                 │ debg TestSubjects.click(mlJobOpenCustomUrlFormButton)
[00:40:19]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=10000
[00:40:19]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=10000
[00:40:19]                 │ debg TestSubjects.exists(mlJobCustomUrlForm)
[00:40:19]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobCustomUrlForm"]') with timeout=120000
[00:40:19]                 │ debg TestSubjects.setValue(mlJobCustomUrlLabelInput, Show data)
[00:40:19]                 │ debg TestSubjects.click(mlJobCustomUrlLabelInput)
[00:40:19]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:40:19]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:40:19]                 │ debg TestSubjects.getAttribute(mlJobCustomUrlLabelInput, value, tryTimeout=120000, findTimeout=10000)
[00:40:19]                 │ debg TestSubjects.find(mlJobCustomUrlLabelInput)
[00:40:19]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:40:19]                 │ debg TestSubjects.find(mlJobCustomUrlLinkToTypeInput)
[00:40:19]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLinkToTypeInput"]') with timeout=10000
[00:40:20]                 │ debg TestSubjects.find(mlJobCustomUrlLinkToTypeInput)
[00:40:20]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLinkToTypeInput"]') with timeout=10000
[00:40:20]                 │ debg TestSubjects.find(mlJobCustomUrlDiscoverIndexPatternInput)
[00:40:20]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlDiscoverIndexPatternInput"]') with timeout=10000
[00:40:20]                 │ debg TestSubjects.find(mlJobCustomUrlDiscoverIndexPatternInput)
[00:40:20]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlDiscoverIndexPatternInput"]') with timeout=10000
[00:40:20]                 │ debg comboBox.set, comboBoxSelector: mlJobCustomUrlQueryEntitiesInput > comboBoxInput
[00:40:20]                 │ debg TestSubjects.find(mlJobCustomUrlQueryEntitiesInput > comboBoxInput)
[00:40:20]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlQueryEntitiesInput"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:40:20]                 │ debg comboBox.setElement, value: airline
[00:40:20]                 │ debg comboBox.isOptionSelected, value: airline
[00:40:22]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:40:22]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:40:22]                 │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="airline"]') with timeout=2500
[00:40:22]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:40:22]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:40:22]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobCustomUrlQueryEntitiesInput > comboBoxInput
[00:40:22]                 │ debg TestSubjects.find(mlJobCustomUrlQueryEntitiesInput > comboBoxInput)
[00:40:22]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlQueryEntitiesInput"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:40:22]                 │ debg TestSubjects.find(mlJobCustomUrlTimeRangeInput)
[00:40:22]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlTimeRangeInput"]') with timeout=10000
[00:40:22]                 │ debg TestSubjects.find(mlJobCustomUrlTimeRangeInput)
[00:40:22]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlTimeRangeInput"]') with timeout=10000
[00:40:22]                 │ debg TestSubjects.click(mlJobAddCustomUrl)
[00:40:22]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:40:22]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:40:23]                 │ debg TestSubjects.exists(mlJobEditCustomUrlLabelInput_0)
[00:40:23]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditCustomUrlLabelInput_0"]') with timeout=1000
[00:40:23]                 │ debg TestSubjects.getAttribute(mlJobEditCustomUrlLabelInput_0, value, tryTimeout=120000, findTimeout=10000)
[00:40:23]                 │ debg TestSubjects.find(mlJobEditCustomUrlLabelInput_0)
[00:40:23]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobEditCustomUrlLabelInput_0"]') with timeout=10000
[00:40:23]                 │ debg TestSubjects.click(mlEditJobFlyoutSaveButton)
[00:40:23]                 │ debg Find.clickByCssSelector('[data-test-subj="mlEditJobFlyoutSaveButton"]') with timeout=10000
[00:40:23]                 │ debg Find.findByCssSelector('[data-test-subj="mlEditJobFlyoutSaveButton"]') with timeout=10000
[00:40:23]                 │ debg TestSubjects.missingOrFail(mlJobEditFlyout)
[00:40:23]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="mlJobEditFlyout"]') with timeout=5000
[00:40:23]                 └- ✓ pass  (18.2s) "machine learning  anomaly detection custom urls adds a custom URL with query entities to Discover in the edit job flyout"
[00:40:23]               └-> adds a custom URL to Dashboard in the edit job flyout
[00:40:23]                 └-> "before each" hook: global before each for "adds a custom URL to Dashboard in the edit job flyout"
[00:40:23]                 │ debg TestSubjects.exists(mlActionButtonDeleteJob)
[00:40:23]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlActionButtonDeleteJob"]') with timeout=2500
[00:40:26]                 │ debg --- retry.tryForTime error: [data-test-subj="mlActionButtonDeleteJob"] is not displayed
[00:40:26]                 │ debg TestSubjects.click(~mlJobListTable > ~row-fq_multi_1_custom_urls > euiCollapsedItemActionsButton)
[00:40:26]                 │ 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:26]                 │ 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:27]                 │ debg TestSubjects.exists(mlActionButtonDeleteJob)
[00:40:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlActionButtonDeleteJob"]') with timeout=5000
[00:40:27]                 │ debg TestSubjects.click(mlActionButtonEditJob)
[00:40:27]                 │ debg Find.clickByCssSelector('[data-test-subj="mlActionButtonEditJob"]') with timeout=10000
[00:40:27]                 │ debg Find.findByCssSelector('[data-test-subj="mlActionButtonEditJob"]') with timeout=10000
[00:40:27]                 │ debg TestSubjects.exists(mlJobEditFlyout)
[00:40:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditFlyout"]') with timeout=120000
[00:40:27]                 │ debg TestSubjects.click(mlEditJobFlyout-customUrls)
[00:40:27]                 │ debg Find.clickByCssSelector('[data-test-subj="mlEditJobFlyout-customUrls"]') with timeout=10000
[00:40:27]                 │ debg Find.findByCssSelector('[data-test-subj="mlEditJobFlyout-customUrls"]') with timeout=10000
[00:40:27]                 │ debg TestSubjects.exists(mlJobOpenCustomUrlFormButton)
[00:40:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=5000
[00:40:27]                 │ debg TestSubjects.findAll(mlJobEditCustomUrlItemLabel)
[00:40:27]                 │ debg Find.allByCssSelector('[data-test-subj="mlJobEditCustomUrlItemLabel"]') with timeout=10000
[00:40:27]                 │ debg TestSubjects.exists(mlJobOpenCustomUrlFormButton)
[00:40:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=5000
[00:40:27]                 │ debg TestSubjects.click(mlJobOpenCustomUrlFormButton)
[00:40:27]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=10000
[00:40:27]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobOpenCustomUrlFormButton"]') with timeout=10000
[00:40:27]                 │ debg TestSubjects.exists(mlJobCustomUrlForm)
[00:40:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobCustomUrlForm"]') with timeout=120000
[00:40:27]                 │ debg TestSubjects.setValue(mlJobCustomUrlLabelInput, Show dashboard)
[00:40:27]                 │ debg TestSubjects.click(mlJobCustomUrlLabelInput)
[00:40:27]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:40:27]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:40:27]                 │ debg TestSubjects.getAttribute(mlJobCustomUrlLabelInput, value, tryTimeout=120000, findTimeout=10000)
[00:40:27]                 │ debg TestSubjects.find(mlJobCustomUrlLabelInput)
[00:40:27]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLabelInput"]') with timeout=10000
[00:40:27]                 │ debg TestSubjects.find(mlJobCustomUrlLinkToTypeInput)
[00:40:27]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLinkToTypeInput"]') with timeout=10000
[00:40:28]                 │ debg TestSubjects.find(mlJobCustomUrlLinkToTypeInput)
[00:40:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlLinkToTypeInput"]') with timeout=10000
[00:40:28]                 │ debg TestSubjects.find(mlJobCustomUrlDashboardNameInput)
[00:40:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlDashboardNameInput"]') with timeout=10000
[00:40:28]                 │ debg TestSubjects.find(mlJobCustomUrlDashboardNameInput)
[00:40:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlDashboardNameInput"]') with timeout=10000
[00:40:28]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlJobCustomUrlQueryEntitiesInput > comboBoxInput
[00:40:28]                 │ debg TestSubjects.find(mlJobCustomUrlQueryEntitiesInput > comboBoxInput)
[00:40:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlQueryEntitiesInput"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:40:28]                 │ debg TestSubjects.find(mlJobCustomUrlTimeRangeInput)
[00:40:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlTimeRangeInput"]') with timeout=10000
[00:40:28]                 │ debg TestSubjects.find(mlJobCustomUrlTimeRangeInput)
[00:40:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlTimeRangeInput"]') with timeout=10000
[00:40:28]                 │ debg TestSubjects.setValue(mlJobCustomUrlTimeRangeIntervalInput, 1h)
[00:40:28]                 │ debg TestSubjects.click(mlJobCustomUrlTimeRangeIntervalInput)
[00:40:28]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobCustomUrlTimeRangeIntervalInput"]') with timeout=10000
[00:40:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlTimeRangeIntervalInput"]') with timeout=10000
[00:40:28]                 │ debg TestSubjects.getAttribute(mlJobCustomUrlTimeRangeIntervalInput, value, tryTimeout=120000, findTimeout=10000)
[00:40:28]                 │ debg TestSubjects.find(mlJobCustomUrlTimeRangeIntervalInput)
[00:40:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobCustomUrlTimeRangeIntervalInput"]') with timeout=10000
[00:40:28]                 │ debg TestSubjects.click(mlJobAddCustomUrl)
[00:40:28]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:40:28]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:40:28]                 │ debg TestSubjects.exists(mlJobEditCustomUrlLabelInput_1)
[00:40:28]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditCustomUrlLabelInput_1"]') with timeout=1000
[00:40:28]                 │ERROR browser[SEVERE] http://localhost:61131/46681/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:28]                 │          at saved_objects_client_SavedObjectsClient.get (http://localhost:61131/46681/bundles/core/core.entry.js:8:48718)
[00:40:28]                 │          at http://localhost:61131/46681/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769300
[00:40:28]                 │          at new Promise (<anonymous>)
[00:40:28]                 │          at http://localhost:61131/46681/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769209
[00:40:28]                 │          at T (http://localhost:61131/46681/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769892)
[00:40:28]                 │          at http://localhost:61131/46681/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:780324
[00:40:28]                 │          at Object.g (http://localhost:61131/46681/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1036)
[00:40:28]                 │          at E (http://localhost:61131/46681/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1179)
[00:40:28]                 │          at http://localhost:61131/46681/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1325
[00:40:28]                 │          at A (http://localhost:61131/46681/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1411)
[00:40:29]                 │ debg --- retry.tryForTime error: [data-test-subj="mlJobEditCustomUrlLabelInput_1"] is not displayed
[00:40:30]                 │ debg --- retry.tryForTime error: expected testSubject(mlJobEditCustomUrlLabelInput_1) to exist
[00:40:30]                 │ debg TestSubjects.click(mlJobAddCustomUrl)
[00:40:30]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:40:30]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:40:30]                 │ debg TestSubjects.exists(mlJobEditCustomUrlLabelInput_1)
[00:40:30]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditCustomUrlLabelInput_1"]') with timeout=1000
[00:40:30]                 │ERROR browser[SEVERE] http://localhost:61131/46681/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:30]                 │          at saved_objects_client_SavedObjectsClient.get (http://localhost:61131/46681/bundles/core/core.entry.js:8:48718)
[00:40:30]                 │          at http://localhost:61131/46681/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769300
[00:40:30]                 │          at new Promise (<anonymous>)
[00:40:30]                 │          at http://localhost:61131/46681/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769209
[00:40:30]                 │          at T (http://localhost:61131/46681/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769892)
[00:40:30]                 │          at http://localhost:61131/46681/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:780324
[00:40:30]                 │          at Object.g (http://localhost:61131/46681/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1036)
[00:40:30]                 │          at E (http://localhost:61131/46681/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1179)
[00:40:30]                 │          at http://localhost:61131/46681/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1325
[00:40:30]                 │          at A (http://localhost:61131/46681/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1411)
[00:40:31]                 │ debg --- retry.tryForTime error: [data-test-subj="mlJobEditCustomUrlLabelInput_1"] is not displayed
[00:40:32]                 │ debg --- retry.tryForTime failed again with the same message...
[00:40:32]                 │ debg TestSubjects.click(mlJobAddCustomUrl)
[00:40:32]                 │ debg Find.clickByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:40:32]                 │ debg Find.findByCssSelector('[data-test-subj="mlJobAddCustomUrl"]') with timeout=10000
[00:40:32]                 │ debg TestSubjects.exists(mlJobEditCustomUrlLabelInput_1)
[00:40:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlJobEditCustomUrlLabelInput_1"]') with timeout=1000
[00:40:32]                 │ERROR browser[SEVERE] http://localhost:61131/46681/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:32]                 │          at saved_objects_client_SavedObjectsClient.get (http://localhost:61131/46681/bundles/core/core.entry.js:8:48718)
[00:40:32]                 │          at http://localhost:61131/46681/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769300
[00:40:32]                 │          at new Promise (<anonymous>)
[00:40:32]                 │          at http://localhost:61131/46681/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769209
[00:40:32]                 │          at T (http://localhost:61131/46681/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:769892)
[00:40:32]                 │          at http://localhost:61131/46681/bundles/plugin/ml/8.0.0/ml.chunk.6.js:17:780324
[00:40:32]                 │          at Object.g (http://localhost:61131/46681/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1036)
[00:40:32]                 │          at E (http://localhost:61131/46681/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1179)
[00:40:32]                 │          at http://localhost:61131/46681/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1325
[00:40:32]                 │          at A (http://localhost:61131/46681/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:504:1411)
[00:40:34]                 │ debg --- retry.tryForTime error: [data-test-subj="mlJobEditCustomUrlLabelInput_1"] is not displayed
[00:40:34]                 │ debg --- retry.tryForTime failed again with the same message...
[00:40:35]                 │ info Taking screenshot "/dev/shm/workspace/parallel/13/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:40:35]                 │ info Current URL is: http://localhost:61131/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:40:35]                 │ info Saving page source to: /dev/shm/workspace/parallel/13/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:40:35]                 └- ✖ fail: machine learning  anomaly detection custom urls adds a custom URL to Dashboard in the edit job flyout
[00:40:35]                 │      retry.tryForTime timeout: Error: expected testSubject(mlJobEditCustomUrlLabelInput_1) to exist
[00:40:35]                 │     at TestSubjects.existOrFail (/dev/shm/workspace/parallel/13/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:40:35]                 │     at Object.assertCustomUrlLabel (/dev/shm/workspace/parallel/13/kibana/x-pack/test/functional/services/ml/custom_urls.ts:106:7)
[00:40:35]                 │     at /dev/shm/workspace/parallel/13/kibana/x-pack/test/functional/services/ml/job_table.ts:640:9
[00:40:35]                 │     at runAttempt (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:40:35]                 │     at retryForSuccess (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:40:35]                 │     at RetryService.tryForTime (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry.ts:22:12)
[00:40:35]                 │     at MlJobTable.addDashboardCustomUrl (/dev/shm/workspace/parallel/13/kibana/x-pack/test/functional/services/ml/job_table.ts:637:7)
[00:40:35]                 │     at Context.<anonymous> (/dev/shm/workspace/parallel/13/kibana/x-pack/test/functional/apps/ml/anomaly_detection/custom_urls.ts:116:7)
[00:40:35]                 │     at Object.apply (/dev/shm/workspace/parallel/13/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:40:35]                 │   Error: retry.tryForTime timeout: Error: expected testSubject(mlJobEditCustomUrlLabelInput_1) to exist
[00:40:35]                 │       at TestSubjects.existOrFail (/dev/shm/workspace/parallel/13/kibana/test/functional/services/common/test_subjects.ts:45:13)
[00:40:35]                 │       at Object.assertCustomUrlLabel (test/functional/services/ml/custom_urls.ts:106:7)
[00:40:35]                 │       at /dev/shm/workspace/parallel/13/kibana/x-pack/test/functional/services/ml/job_table.ts:640:9
[00:40:35]                 │       at runAttempt (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:40:35]                 │       at retryForSuccess (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:40:35]                 │       at RetryService.tryForTime (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry.ts:22:12)
[00:40:35]                 │       at MlJobTable.addDashboardCustomUrl (test/functional/services/ml/job_table.ts:637:7)
[00:40:35]                 │       at Context.<anonymous> (test/functional/apps/ml/anomaly_detection/custom_urls.ts:116:7)
[00:40:35]                 │       at Object.apply (/dev/shm/workspace/parallel/13/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:40:35]                 │       at onFailure (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:40:35]                 │       at retryForSuccess (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:40:35]                 │       at RetryService.tryForTime (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry.ts:22:12)
[00:40:35]                 │       at MlJobTable.addDashboardCustomUrl (test/functional/services/ml/job_table.ts:637:7)
[00:40:35]                 │       at Context.<anonymous> (test/functional/apps/ml/anomaly_detection/custom_urls.ts:116:7)
[00:40:35]                 │       at Object.apply (/dev/shm/workspace/parallel/13/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
[00:40:35]                 │ 
[00:40:35]                 │ 

Stack Trace

Error: retry.tryForTime timeout: Error: expected testSubject(mlJobEditCustomUrlLabelInput_1) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/parallel/13/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/13/kibana/x-pack/test/functional/services/ml/job_table.ts:640:9
    at runAttempt (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at RetryService.tryForTime (/dev/shm/workspace/parallel/13/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/13/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)
    at onFailure (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/13/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at RetryService.tryForTime (/dev/shm/workspace/parallel/13/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/13/kibana/node_modules/@kbn/test/target_node/functional_test_runner/lib/mocha/wrap_function.js:87:16)

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
monitoring 618 622 +4

Async chunks

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

id before after diff
monitoring 977.1KB 987.6KB +10.6KB

History

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

cc @neptunian

@neptunian
Copy link
Contributor Author

neptunian commented Oct 4, 2021

@matschaffer I think I was able to reproduce the shard allocation issue in 7.15 on cloud. There were also periods of blank spaces where no nodes showed up. I never saw a relocating color. If you could confirm that with your test we could put this as a bug for later not associated with Angular removal.

@neptunian neptunian merged commit 3d0da7f into elastic:master Oct 4, 2021
kibanamachine added a commit to kibanamachine/kibana that referenced this pull request Oct 4, 2021
* index views

* fix type

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

kibanamachine added a commit that referenced this pull request Oct 4, 2021
* index views

* fix type

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Sandra G <neptunian@users.noreply.github.com>
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 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] Convert Elasticsearch Index views to React
4 participants