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

[Discover] Split query to 3 separate queries #100326

Closed

Conversation

kertal
Copy link
Member

@kertal kertal commented May 19, 2021

Summary

The PR splits the single query retrieving total hits, aggregated data for the histogram, and documents to 3 separate queries. WIP.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

kertal and others added 30 commits March 26, 2021 13:07
@kertal kertal added the Feature:Discover Discover Application label May 19, 2021
@kertal kertal self-assigned this May 19, 2021
@kertal kertal force-pushed the kertal-pr-2021-05-19-discover-split-queries branch from 7a0f1a1 to 4b7a69d Compare June 15, 2021 10:59
@kibanamachine
Copy link
Contributor

kibanamachine commented Jun 15, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / task-queue-process-12 / X-Pack Endpoint API Integration Tests.x-pack/test/security_solution_endpoint_api_int/apis/resolver/entity·ts.Endpoint plugin Resolver tests Resolver tests for the entity route winlogbeat tests "before all" hook for "returns a winlogbeat sysmon event when the event matches the schema correctly"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: Endpoint plugin
[00:00:00]           └-> "before all" hook in "Endpoint plugin"
[00:00:00]           └-> "before all" hook in "Endpoint plugin"
[00:00:00]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-10-1623756326722855396] [.kibana_8.0.0_001/9xcjMQovR6OeMBEhNlLRjw] update_mapping [_doc]
[00:00:00]             │ proc [kibana]   log   [11:45:37.769] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:45:37.772] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:45:37.773] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:45:37.774] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60438, url.original: /search?package=elastic_agent&internal=true&experimental=true
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60440, url.original: /search?package=endpoint&internal=true&experimental=true
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60436, url.original: /search?package=system&internal=true&experimental=true
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60442, url.original: /search?package=fleet_server&internal=true&experimental=true
[00:00:00]             │ proc [kibana]   log   [11:45:37.825] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:45:37.827] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:45:37.828] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:45:37.829] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60456, url.original: /search?package=system&internal=true&experimental=true
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60462, url.original: /search?package=fleet_server&internal=true&experimental=true
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60452, url.original: /search?package=endpoint&internal=true&experimental=true
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60460, url.original: /search?package=elastic_agent&internal=true&experimental=true
[00:00:00]             │ proc [kibana]   log   [11:45:37.833] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:45:37.834] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:45:37.838] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:45:37.839] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60468, url.original: /package/system/0.12.0
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60476, url.original: /package/endpoint/0.18.0
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60478, url.original: /package/elastic_agent/0.0.6
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60470, url.original: /package/fleet_server/0.2.1
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60490, url.original: /package/endpoint/0.18.0/
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60494, url.original: /package/system/0.12.0/
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60492, url.original: /package/elastic_agent/0.0.6/
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60486, url.original: /package/fleet_server/0.2.1/
[00:00:00]             │ proc [kibana]   log   [11:45:37.859] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:45:37.861] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60498, url.original: /epr/fleet_server/fleet_server-0.2.1.zip
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60502, url.original: /epr/elastic_agent/elastic_agent-0.0.6.zip
[00:00:00]             │ proc [kibana]   log   [11:45:37.864] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60506, url.original: /epr/endpoint/endpoint-0.18.0.zip
[00:00:00]             │ proc [kibana]   log   [11:45:37.889] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ info [docker:registry] 2021/06/15 11:45:37 source.ip: 172.17.0.1:60510, url.original: /epr/system/system-0.12.0.zip
[00:00:02]             │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-debian-10-1623756326722855396] adding index lifecycle policy [.fleet-actions-results]
[00:00:02]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-10-1623756326722855396] [.kibana_8.0.0_001/9xcjMQovR6OeMBEhNlLRjw] update_mapping [_doc]
[00:00:02]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-10-1623756326722855396] [.kibana_8.0.0_001/9xcjMQovR6OeMBEhNlLRjw] update_mapping [_doc]
[00:00:02]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-10-1623756326722855396] [.kibana_8.0.0_001/9xcjMQovR6OeMBEhNlLRjw] update_mapping [_doc]
[00:00:02]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [.fleet-actions-results] for index patterns [.fleet-actions-results]
[00:00:03]             │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-debian-10-1623756326722855396] adding index lifecycle policy [logs-endpoint.collection-diagnostic]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [metrics-elastic_agent.elastic_agent-mappings]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-elastic_agent.elastic_agent] for index patterns [metrics-elastic_agent.elastic_agent-*]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-metadata-current] for index patterns [metrics-endpoint.metadata_current_*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.core] for index patterns [metrics-system.core-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-system.auth] for index patterns [logs-system.auth-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.filesystem] for index patterns [metrics-system.filesystem-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.memory] for index patterns [metrics-system.memory-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-system.security] for index patterns [logs-system.security-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.load] for index patterns [metrics-system.load-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.network] for index patterns [metrics-system.network-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.process] for index patterns [metrics-system.process-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.process_summary] for index patterns [metrics-system.process_summary-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-system.application] for index patterns [logs-system.application-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.diskio] for index patterns [metrics-system.diskio-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.fsstat] for index patterns [metrics-system.fsstat-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.cpu] for index patterns [metrics-system.cpu-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.socket_summary] for index patterns [metrics-system.socket_summary-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-system.syslog] for index patterns [logs-system.syslog-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.uptime] for index patterns [metrics-system.uptime-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-system.system] for index patterns [logs-system.system-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [logs-endpoint.alerts-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [logs-endpoint.events.file-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [metrics-endpoint.metadata-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [logs-endpoint.events.process-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [logs-endpoint.events.registry-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [logs-endpoint.events.network-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [metrics-endpoint.metrics-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [.logs-endpoint.diagnostic.collection-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [logs-endpoint.events.library-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [logs-endpoint.events.security-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [metrics-endpoint.policy-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-endpoint.alerts] for index patterns [logs-endpoint.alerts-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-endpoint.events.file] for index patterns [logs-endpoint.events.file-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-endpoint.metadata] for index patterns [metrics-endpoint.metadata-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-endpoint.events.process] for index patterns [logs-endpoint.events.process-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-endpoint.events.registry] for index patterns [logs-endpoint.events.registry-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-endpoint.events.network] for index patterns [logs-endpoint.events.network-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-endpoint.metrics] for index patterns [metrics-endpoint.metrics-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [.logs-endpoint.diagnostic.collection] for index patterns [.logs-endpoint.diagnostic.collection-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-endpoint.events.library] for index patterns [logs-endpoint.events.library-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-endpoint.events.security] for index patterns [logs-endpoint.events.security-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-endpoint.policy] for index patterns [metrics-endpoint.policy-*]
[00:00:08]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [.transform-internal-007] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:00:08]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] updating number_of_replicas to [0] for indices [.transform-internal-007]
[00:00:08]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.transform-internal-007][0]]])." previous.health="YELLOW" reason="shards started [[.transform-internal-007][0]]"
[00:00:08]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [.transform-notifications-000002] creating index, cause [auto(bulk api)], templates [.transform-notifications-000002], shards [1]/[1]
[00:00:08]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] updating number_of_replicas to [0] for indices [.transform-notifications-000002]
[00:00:08]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [metrics-endpoint.metadata_current_default] creating index, cause [api], templates [metrics-metadata-current], shards [1]/[1]
[00:00:08]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] updating number_of_replicas to [0] for indices [metrics-endpoint.metadata_current_default]
[00:00:08]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.transform-notifications-000002][0], [metrics-endpoint.metadata_current_default][0]]])." previous.health="YELLOW" reason="shards started [[.transform-notifications-000002][0], [metrics-endpoint.metadata_current_default][0]]"
[00:00:08]             │ info [o.e.x.t.t.TransformTask] [kibana-ci-immutable-debian-10-1623756326722855396] [endpoint.metadata_current-default-0.18.0] updating state for transform to [{"task_state":"started","indexer_state":"stopped","checkpoint":0,"should_stop_at_checkpoint":false}].
[00:00:08]             │ info [o.e.x.t.t.TransformPersistentTasksExecutor] [kibana-ci-immutable-debian-10-1623756326722855396] [endpoint.metadata_current-default-0.18.0] successfully completed and scheduled task in node operation
[00:00:10]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-10-1623756326722855396] [.kibana_8.0.0_001/9xcjMQovR6OeMBEhNlLRjw] update_mapping [_doc]
[00:00:11]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-10-1623756326722855396] [.kibana_8.0.0_001/9xcjMQovR6OeMBEhNlLRjw] update_mapping [_doc]
[00:00:12]             │ proc [kibana]   log   [11:45:49.981] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:12]             │ info [docker:registry] 2021/06/15 11:45:49 source.ip: 172.17.0.1:60570, url.original: /search?package=system&internal=true&experimental=true
[00:00:12]             │ proc [kibana]   log   [11:45:50.008] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:12]             │ info [docker:registry] 2021/06/15 11:45:50 source.ip: 172.17.0.1:60574, url.original: /search?package=system&internal=true&experimental=true
[00:00:12]             │ proc [kibana]   log   [11:45:50.017] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:12]             │ info [docker:registry] 2021/06/15 11:45:50 source.ip: 172.17.0.1:60578, url.original: /package/system/0.12.0
[00:00:12]             │ info [docker:registry] 2021/06/15 11:45:50 source.ip: 172.17.0.1:60582, url.original: /package/system/0.12.0/
[00:00:12]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-10-1623756326722855396] [.kibana_8.0.0_001/9xcjMQovR6OeMBEhNlLRjw] update_mapping [_doc]
[00:00:14]             │ proc [kibana]   log   [11:45:52.018] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:14]             │ info [docker:registry] 2021/06/15 11:45:52 source.ip: 172.17.0.1:60590, url.original: /search?package=fleet_server&internal=true&experimental=true
[00:00:14]             │ proc [kibana]   log   [11:45:52.034] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:14]             │ info [docker:registry] 2021/06/15 11:45:52 source.ip: 172.17.0.1:60594, url.original: /search?package=fleet_server&internal=true&experimental=true
[00:00:14]             │ proc [kibana]   log   [11:45:52.042] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:14]             │ info [docker:registry] 2021/06/15 11:45:52 source.ip: 172.17.0.1:60598, url.original: /package/fleet_server/0.2.1
[00:00:14]             │ info [docker:registry] 2021/06/15 11:45:52 source.ip: 172.17.0.1:60602, url.original: /package/fleet_server/0.2.1/
[00:00:16]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [.fleet-enrollment-api-keys-7] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:00:16]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] updating number_of_replicas to [0] for indices [.fleet-enrollment-api-keys-7]
[00:00:16]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.fleet-enrollment-api-keys-7][0]]])." previous.health="YELLOW" reason="shards started [[.fleet-enrollment-api-keys-7][0]]"
[00:00:17]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [.fleet-policies-7] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:00:17]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] updating number_of_replicas to [0] for indices [.fleet-policies-7]
[00:00:17]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.fleet-policies-7][0]]])." previous.health="YELLOW" reason="shards started [[.fleet-policies-7][0]]"
[00:00:18]           └-: Resolver tests
[00:00:18]             └-> "before all" hook in "Resolver tests"
[00:00:19]             └-: Resolver tests for the entity route
[00:00:19]               └-> "before all" hook in "Resolver tests for the entity route"
[00:00:19]               └-: winlogbeat tests
[00:00:19]                 └-> "before all" hook for "returns a winlogbeat sysmon event when the event matches the schema correctly"
[00:00:19]                 └-> "before all" hook for "returns a winlogbeat sysmon event when the event matches the schema correctly"
[00:00:19]                   │ info [endpoint/resolver/winlogbeat] Loading "mappings.json"
[00:00:19]                   │ info [endpoint/resolver/winlogbeat] Loading "data.json.gz"
[00:00:19]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [winlogbeat-7.11.0-2020.12.03-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:19]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] current.health="RED" message="Cluster health status changed from [YELLOW] to [RED] (reason: [index [winlogbeat-7.11.0-2020.12.03-000001] created])." previous.health="YELLOW" reason="index [winlogbeat-7.11.0-2020.12.03-000001] created"
[00:00:49]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [winlogbeat-7.11.0-2020.12.03-000001/VnfErBvbRWWJHoevVeKsuQ] deleting index
[00:00:49]                   │ info [endpoint/resolver/winlogbeat] Deleted existing index "winlogbeat-7.11.0-2020.12.03-000001"
[00:00:49]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [winlogbeat-7.11.0-2020.12.03-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:49]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] current.health="RED" message="Cluster health status changed from [YELLOW] to [RED] (reason: [index [winlogbeat-7.11.0-2020.12.03-000001] created])." previous.health="YELLOW" reason="index [winlogbeat-7.11.0-2020.12.03-000001] created"
[00:01:19]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [winlogbeat-7.11.0-2020.12.03-000001/V3nAj4H4TpucRJWRO5bu5g] deleting index
[00:01:19]                   │ info [endpoint/resolver/winlogbeat] Deleted existing index "winlogbeat-7.11.0-2020.12.03-000001"
[00:01:19]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [winlogbeat-7.11.0-2020.12.03-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:01:19]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] current.health="RED" message="Cluster health status changed from [YELLOW] to [RED] (reason: [index [winlogbeat-7.11.0-2020.12.03-000001] created])." previous.health="YELLOW" reason="index [winlogbeat-7.11.0-2020.12.03-000001] created"
[00:01:49]                   └- ✖ fail: Endpoint plugin Resolver tests Resolver tests for the entity route winlogbeat tests "before all" hook for "returns a winlogbeat sysmon event when the event matches the schema correctly"
[00:01:49]                   │      ResponseError: resource_already_exists_exception
[00:01:49]                   │       at onBody (/dev/shm/workspace/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:01:49]                   │       at IncomingMessage.onEnd (/dev/shm/workspace/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:01:49]                   │       at endReadableNT (internal/streams/readable.js:1327:12)
[00:01:49]                   │       at processTicksAndRejections (internal/process/task_queues.js:80:21)
[00:01:49]                   │ 
[00:01:49]                   │ 

Stack Trace

ResponseError: resource_already_exists_exception
    at onBody (/dev/shm/workspace/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
    at IncomingMessage.onEnd (/dev/shm/workspace/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  meta: {
    body: { error: [Object], status: 400 },
    statusCode: 400,
    headers: {
      'x-elastic-product': 'Elasticsearch',
      'content-type': 'application/json;charset=utf-8',
      'content-length': '481'
    },
    meta: {
      context: null,
      request: [Object],
      name: 'elasticsearch-js',
      connection: [Object],
      attempts: 1,
      aborted: false
    }
  }
}

Kibana Pipeline / general / task-queue-process-12 / X-Pack Endpoint API Integration Tests.x-pack/test/security_solution_endpoint_api_int/apis/resolver/entity·ts.Endpoint plugin Resolver tests Resolver tests for the entity route winlogbeat tests "before all" hook for "returns a winlogbeat sysmon event when the event matches the schema correctly"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: Endpoint plugin
[00:00:00]           └-> "before all" hook in "Endpoint plugin"
[00:00:00]           └-> "before all" hook in "Endpoint plugin"
[00:00:00]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-10-1623756326722855396] [.kibana_8.0.0_001/hDFZVOAeSbuhIp2NDgiPZw] update_mapping [_doc]
[00:00:00]             │ proc [kibana]   log   [11:37:48.378] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:37:48.380] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:37:48.381] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:37:48.382] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57040, url.original: /search?package=elastic_agent&internal=true&experimental=true
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57038, url.original: /search?package=fleet_server&internal=true&experimental=true
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57044, url.original: /search?package=endpoint&internal=true&experimental=true
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57042, url.original: /search?package=system&internal=true&experimental=true
[00:00:00]             │ proc [kibana]   log   [11:37:48.423] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:37:48.424] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:37:48.426] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:37:48.427] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57056, url.original: /search?package=system&internal=true&experimental=true
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57062, url.original: /search?package=elastic_agent&internal=true&experimental=true
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57060, url.original: /search?package=endpoint&internal=true&experimental=true
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57064, url.original: /search?package=fleet_server&internal=true&experimental=true
[00:00:00]             │ proc [kibana]   log   [11:37:48.430] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:37:48.431] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:37:48.432] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ proc [kibana]   log   [11:37:48.433] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57070, url.original: /package/system/0.12.0
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57078, url.original: /package/endpoint/0.18.0
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57080, url.original: /package/fleet_server/0.2.1
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57072, url.original: /package/elastic_agent/0.0.6
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57088, url.original: /package/fleet_server/0.2.1/
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57096, url.original: /package/endpoint/0.18.0/
[00:00:00]             │ proc [kibana]   log   [11:37:48.442] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57094, url.original: /package/elastic_agent/0.0.6/
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57100, url.original: /epr/fleet_server/fleet_server-0.2.1.zip
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57092, url.original: /package/system/0.12.0/
[00:00:00]             │ proc [kibana]   log   [11:37:48.450] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57104, url.original: /epr/elastic_agent/elastic_agent-0.0.6.zip
[00:00:00]             │ proc [kibana]   log   [11:37:48.453] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57108, url.original: /epr/endpoint/endpoint-0.18.0.zip
[00:00:00]             │ proc [kibana]   log   [11:37:48.480] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:00]             │ info [docker:registry] 2021/06/15 11:37:48 source.ip: 172.17.0.1:57112, url.original: /epr/system/system-0.12.0.zip
[00:00:02]             │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-debian-10-1623756326722855396] adding index lifecycle policy [.fleet-actions-results]
[00:00:02]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-10-1623756326722855396] [.kibana_8.0.0_001/hDFZVOAeSbuhIp2NDgiPZw] update_mapping [_doc]
[00:00:02]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-10-1623756326722855396] [.kibana_8.0.0_001/hDFZVOAeSbuhIp2NDgiPZw] update_mapping [_doc]
[00:00:02]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-10-1623756326722855396] [.kibana_8.0.0_001/hDFZVOAeSbuhIp2NDgiPZw] update_mapping [_doc]
[00:00:02]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [.fleet-actions-results] for index patterns [.fleet-actions-results]
[00:00:03]             │ info [o.e.x.i.a.TransportPutLifecycleAction] [kibana-ci-immutable-debian-10-1623756326722855396] adding index lifecycle policy [logs-endpoint.collection-diagnostic]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [metrics-elastic_agent.elastic_agent-mappings]
[00:00:05]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-elastic_agent.elastic_agent] for index patterns [metrics-elastic_agent.elastic_agent-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-metadata-current] for index patterns [metrics-endpoint.metadata_current_*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.filesystem] for index patterns [metrics-system.filesystem-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.load] for index patterns [metrics-system.load-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-system.application] for index patterns [logs-system.application-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.core] for index patterns [metrics-system.core-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.memory] for index patterns [metrics-system.memory-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.diskio] for index patterns [metrics-system.diskio-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.fsstat] for index patterns [metrics-system.fsstat-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.cpu] for index patterns [metrics-system.cpu-*]
[00:00:06]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-system.security] for index patterns [logs-system.security-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.network] for index patterns [metrics-system.network-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.process_summary] for index patterns [metrics-system.process_summary-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-system.auth] for index patterns [logs-system.auth-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.process] for index patterns [metrics-system.process-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.socket_summary] for index patterns [metrics-system.socket_summary-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-system.system] for index patterns [logs-system.system-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-system.syslog] for index patterns [logs-system.syslog-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-system.uptime] for index patterns [metrics-system.uptime-*]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [metrics-endpoint.metrics-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [metrics-endpoint.metadata-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [logs-endpoint.events.registry-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [.logs-endpoint.diagnostic.collection-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [logs-endpoint.events.library-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [metrics-endpoint.policy-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [logs-endpoint.alerts-mappings]
[00:00:07]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [logs-endpoint.events.process-mappings]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [logs-endpoint.events.file-mappings]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [logs-endpoint.events.security-mappings]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding component template [logs-endpoint.events.network-mappings]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-endpoint.metrics] for index patterns [metrics-endpoint.metrics-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-endpoint.metadata] for index patterns [metrics-endpoint.metadata-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-endpoint.events.registry] for index patterns [logs-endpoint.events.registry-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [.logs-endpoint.diagnostic.collection] for index patterns [.logs-endpoint.diagnostic.collection-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-endpoint.events.library] for index patterns [logs-endpoint.events.library-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [metrics-endpoint.policy] for index patterns [metrics-endpoint.policy-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-endpoint.alerts] for index patterns [logs-endpoint.alerts-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-endpoint.events.process] for index patterns [logs-endpoint.events.process-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-endpoint.events.file] for index patterns [logs-endpoint.events.file-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-endpoint.events.security] for index patterns [logs-endpoint.events.security-*]
[00:00:08]             │ info [o.e.c.m.MetadataIndexTemplateService] [kibana-ci-immutable-debian-10-1623756326722855396] adding index template [logs-endpoint.events.network] for index patterns [logs-endpoint.events.network-*]
[00:00:08]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [.transform-internal-007] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:00:08]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] updating number_of_replicas to [0] for indices [.transform-internal-007]
[00:00:08]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.transform-internal-007][0]]])." previous.health="YELLOW" reason="shards started [[.transform-internal-007][0]]"
[00:00:08]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [.transform-notifications-000002] creating index, cause [auto(bulk api)], templates [.transform-notifications-000002], shards [1]/[1]
[00:00:08]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] updating number_of_replicas to [0] for indices [.transform-notifications-000002]
[00:00:08]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [metrics-endpoint.metadata_current_default] creating index, cause [api], templates [metrics-metadata-current], shards [1]/[1]
[00:00:08]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] updating number_of_replicas to [0] for indices [metrics-endpoint.metadata_current_default]
[00:00:08]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.transform-notifications-000002][0], [metrics-endpoint.metadata_current_default][0]]])." previous.health="YELLOW" reason="shards started [[.transform-notifications-000002][0], [metrics-endpoint.metadata_current_default][0]]"
[00:00:08]             │ info [o.e.x.t.t.TransformTask] [kibana-ci-immutable-debian-10-1623756326722855396] [endpoint.metadata_current-default-0.18.0] updating state for transform to [{"task_state":"started","indexer_state":"stopped","checkpoint":0,"should_stop_at_checkpoint":false}].
[00:00:08]             │ info [o.e.x.t.t.TransformPersistentTasksExecutor] [kibana-ci-immutable-debian-10-1623756326722855396] [endpoint.metadata_current-default-0.18.0] successfully completed and scheduled task in node operation
[00:00:10]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-10-1623756326722855396] [.kibana_8.0.0_001/hDFZVOAeSbuhIp2NDgiPZw] update_mapping [_doc]
[00:00:11]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-10-1623756326722855396] [.kibana_8.0.0_001/hDFZVOAeSbuhIp2NDgiPZw] update_mapping [_doc]
[00:00:12]             │ proc [kibana]   log   [11:38:00.584] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:12]             │ info [docker:registry] 2021/06/15 11:38:00 source.ip: 172.17.0.1:57168, url.original: /search?package=system&internal=true&experimental=true
[00:00:12]             │ proc [kibana]   log   [11:38:00.611] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:12]             │ info [docker:registry] 2021/06/15 11:38:00 source.ip: 172.17.0.1:57172, url.original: /search?package=system&internal=true&experimental=true
[00:00:12]             │ proc [kibana]   log   [11:38:00.638] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:12]             │ info [docker:registry] 2021/06/15 11:38:00 source.ip: 172.17.0.1:57176, url.original: /package/system/0.12.0
[00:00:12]             │ info [docker:registry] 2021/06/15 11:38:00 source.ip: 172.17.0.1:57180, url.original: /package/system/0.12.0/
[00:00:12]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-10-1623756326722855396] [.kibana_8.0.0_001/hDFZVOAeSbuhIp2NDgiPZw] update_mapping [_doc]
[00:00:14]             │ proc [kibana]   log   [11:38:02.620] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:14]             │ info [docker:registry] 2021/06/15 11:38:02 source.ip: 172.17.0.1:57188, url.original: /search?package=fleet_server&internal=true&experimental=true
[00:00:14]             │ proc [kibana]   log   [11:38:02.640] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:14]             │ info [docker:registry] 2021/06/15 11:38:02 source.ip: 172.17.0.1:57192, url.original: /search?package=fleet_server&internal=true&experimental=true
[00:00:14]             │ proc [kibana]   log   [11:38:02.648] [info][fleet][plugins] Custom registry url is an experimental feature and is unsupported.
[00:00:14]             │ info [docker:registry] 2021/06/15 11:38:02 source.ip: 172.17.0.1:57196, url.original: /package/fleet_server/0.2.1
[00:00:14]             │ info [docker:registry] 2021/06/15 11:38:02 source.ip: 172.17.0.1:57200, url.original: /package/fleet_server/0.2.1/
[00:00:17]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [.fleet-enrollment-api-keys-7] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:00:17]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] updating number_of_replicas to [0] for indices [.fleet-enrollment-api-keys-7]
[00:00:17]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.fleet-enrollment-api-keys-7][0]]])." previous.health="YELLOW" reason="shards started [[.fleet-enrollment-api-keys-7][0]]"
[00:00:18]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [.fleet-policies-7] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:00:18]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] updating number_of_replicas to [0] for indices [.fleet-policies-7]
[00:00:18]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.fleet-policies-7][0]]])." previous.health="YELLOW" reason="shards started [[.fleet-policies-7][0]]"
[00:00:19]           └-: Resolver tests
[00:00:19]             └-> "before all" hook in "Resolver tests"
[00:00:20]             └-: Resolver tests for the entity route
[00:00:20]               └-> "before all" hook in "Resolver tests for the entity route"
[00:00:20]               └-: winlogbeat tests
[00:00:20]                 └-> "before all" hook for "returns a winlogbeat sysmon event when the event matches the schema correctly"
[00:00:20]                 └-> "before all" hook for "returns a winlogbeat sysmon event when the event matches the schema correctly"
[00:00:20]                   │ info [endpoint/resolver/winlogbeat] Loading "mappings.json"
[00:00:20]                   │ info [endpoint/resolver/winlogbeat] Loading "data.json.gz"
[00:00:20]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [winlogbeat-7.11.0-2020.12.03-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:20]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] current.health="RED" message="Cluster health status changed from [YELLOW] to [RED] (reason: [index [winlogbeat-7.11.0-2020.12.03-000001] created])." previous.health="YELLOW" reason="index [winlogbeat-7.11.0-2020.12.03-000001] created"
[00:00:50]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [winlogbeat-7.11.0-2020.12.03-000001/aRa82vh3T9iW07DVnxhSMg] deleting index
[00:00:50]                   │ info [endpoint/resolver/winlogbeat] Deleted existing index "winlogbeat-7.11.0-2020.12.03-000001"
[00:00:50]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [winlogbeat-7.11.0-2020.12.03-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:00:50]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] current.health="RED" message="Cluster health status changed from [YELLOW] to [RED] (reason: [index [winlogbeat-7.11.0-2020.12.03-000001] created])." previous.health="YELLOW" reason="index [winlogbeat-7.11.0-2020.12.03-000001] created"
[00:01:20]                   │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [winlogbeat-7.11.0-2020.12.03-000001/Zrc4rS8oR6SB6vEGmD4vnA] deleting index
[00:01:20]                   │ info [endpoint/resolver/winlogbeat] Deleted existing index "winlogbeat-7.11.0-2020.12.03-000001"
[00:01:20]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-10-1623756326722855396] [winlogbeat-7.11.0-2020.12.03-000001] creating index, cause [api], templates [], shards [1]/[1]
[00:01:20]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-10-1623756326722855396] current.health="RED" message="Cluster health status changed from [YELLOW] to [RED] (reason: [index [winlogbeat-7.11.0-2020.12.03-000001] created])." previous.health="YELLOW" reason="index [winlogbeat-7.11.0-2020.12.03-000001] created"
[00:01:50]                   └- ✖ fail: Endpoint plugin Resolver tests Resolver tests for the entity route winlogbeat tests "before all" hook for "returns a winlogbeat sysmon event when the event matches the schema correctly"
[00:01:50]                   │      ResponseError: resource_already_exists_exception
[00:01:50]                   │       at onBody (/dev/shm/workspace/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
[00:01:50]                   │       at IncomingMessage.onEnd (/dev/shm/workspace/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
[00:01:50]                   │       at endReadableNT (internal/streams/readable.js:1327:12)
[00:01:50]                   │       at processTicksAndRejections (internal/process/task_queues.js:80:21)
[00:01:50]                   │ 
[00:01:50]                   │ 

Stack Trace

ResponseError: resource_already_exists_exception
    at onBody (/dev/shm/workspace/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:337:23)
    at IncomingMessage.onEnd (/dev/shm/workspace/kibana/node_modules/@elastic/elasticsearch/lib/Transport.js:264:11)
    at endReadableNT (internal/streams/readable.js:1327:12)
    at processTicksAndRejections (internal/process/task_queues.js:80:21) {
  meta: {
    body: { error: [Object], status: 400 },
    statusCode: 400,
    headers: {
      'x-elastic-product': 'Elasticsearch',
      'content-type': 'application/json;charset=utf-8',
      'content-length': '481'
    },
    meta: {
      context: null,
      request: [Object],
      name: 'elasticsearch-js',
      connection: [Object],
      attempts: 1,
      aborted: false
    }
  }
}

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional_with_es_ssl/apps/ml/alert_flyout·ts.ML app anomaly detection alert overview page alert flyout controls can create an anomaly detection alert

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: ML app
[00:00:00]           └-> "before all" hook in "ML app"
[00:00:00]           └-> "before all" hook in "ML app"
[00:00:00]             │ debg creating role ft_ml_source
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] added user [ft_ml_unauthorized_spaces]
[00:00:01]             │ debg created user ft_ml_unauthorized_spaces
[00:00:01]           └-: anomaly detection alert
[00:00:01]             └-> "before all" hook in "anomaly detection alert"
[00:00:01]             └-> "before all" hook in "anomaly detection alert"
[00:00:01]               │ info [ml/ecommerce] Loading "mappings.json"
[00:00:01]               │ info [ml/ecommerce] Loading "data.json.gz"
[00:00:01]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [ft_ecommerce] creating index, cause [api], templates [], shards [1]/[0]
[00:00:01]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[ft_ecommerce][0]]])." previous.health="YELLOW" reason="shards started [[ft_ecommerce][0]]"
[00:00:01]               │ info [ml/ecommerce] Created index "ft_ecommerce"
[00:00:01]               │ debg [ml/ecommerce] "ft_ecommerce" settings {"index":{"number_of_replicas":"0","number_of_shards":"1"}}
[00:00:04]               │ info [ml/ecommerce] Indexed 4675 docs into "ft_ecommerce"
[00:00:05]               │ debg Searching for 'index-pattern' with title 'ft_ecommerce'...
[00:00:05]               │ debg  > Not found
[00:00:05]               │ debg Creating index pattern with title 'ft_ecommerce' and time field 'order_date'
[00:00:05]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [.kibana_8.0.0_001/0Sb17EbmTAmdafd7Joo4Cg] update_mapping [_doc]
[00:00:05]               │ debg Waiting up to 5000ms for index-pattern with title 'ft_ecommerce' to exist...
[00:00:05]               │ debg Searching for 'index-pattern' with title 'ft_ecommerce'...
[00:00:06]               │ debg  > Found 'ebecbdd0-cdce-11eb-ad02-9d69f30fd758'
[00:00:06]               │ debg  > Created with id 'ebecbdd0-cdce-11eb-ad02-9d69f30fd758'
[00:00:06]               │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:00:07]               │ debg SecurityPage.forceLogout
[00:00:07]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:00:07]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:07]               │ debg Redirecting to /logout to force the logout
[00:00:07]               │ debg Waiting on the login form to appear
[00:00:07]               │ debg Waiting for Login Page to appear.
[00:00:07]               │ debg Waiting up to 100000ms for login page...
[00:00:07]               │ debg browser[INFO] http://localhost:61201/logout?_t=1623757419551 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:07]               │
[00:00:07]               │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:07]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:10]               │ERROR browser[SEVERE] http://localhost:61201/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:10]               │ debg browser[INFO] http://localhost:61201/43015/bundles/core/core.entry.js 12:151862 "Detected an unhandled Promise rejection.
[00:00:10]               │      Error: Unauthorized"
[00:00:10]               │ERROR browser[SEVERE] http://localhost:61201/43015/bundles/core/core.entry.js 5:2514 
[00:00:10]               │ debg browser[INFO] http://localhost:61201/login?msg=LOGGED_OUT 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:10]               │
[00:00:10]               │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:10]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:10]               │ERROR browser[SEVERE] http://localhost:61201/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:10]               │ debg browser[INFO] http://localhost:61201/43015/bundles/core/core.entry.js 12:151862 "Detected an unhandled Promise rejection.
[00:00:10]               │      Error: Unauthorized"
[00:00:10]               │ERROR browser[SEVERE] http://localhost:61201/43015/bundles/core/core.entry.js 5:2514 
[00:00:11]               │ERROR browser[SEVERE] http://localhost:61201/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:11]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:11]               │ debg TestSubjects.exists(loginForm)
[00:00:11]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:00:11]               │ debg Waiting for Login Form to appear.
[00:00:11]               │ debg Waiting up to 100000ms for login form...
[00:00:11]               │ debg TestSubjects.exists(loginForm)
[00:00:11]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:00:11]               │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:00:11]               │ debg TestSubjects.click(loginUsername)
[00:00:11]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:11]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:11]               │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:00:11]               │ debg TestSubjects.click(loginPassword)
[00:00:11]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:11]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:11]               │ debg TestSubjects.click(loginSubmit)
[00:00:11]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:11]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:12]               │ debg Waiting for login result, expected: chrome.
[00:00:12]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] .kbnAppWrapper:not(.kbnAppWrapper--hiddenChrome)') with timeout=20000
[00:00:12]               │ proc [kibana]   log   [11:43:43.948] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:00:16]               │ debg browser[INFO] http://localhost:61201/app/home 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:16]               │
[00:00:16]               │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:16]               │ debg Finished login process currentUrl = http://localhost:61201/app/home#/
[00:00:16]               │ debg Waiting up to 20000ms for logout button visible...
[00:00:16]               │ debg TestSubjects.exists(userMenuButton)
[00:00:16]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:00:16]               │ERROR browser[SEVERE] http://localhost:61201/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:00:16]               │ debg TestSubjects.exists(userMenu)
[00:00:16]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:00:19]               │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:00:19]               │ debg TestSubjects.click(userMenuButton)
[00:00:19]               │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:00:19]               │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:00:19]               │ debg TestSubjects.exists(userMenu)
[00:00:19]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:00:19]               │ debg TestSubjects.exists(userMenu > logoutLink)
[00:00:19]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:00:19]               │ debg Creating anomaly detection job with id 'ec-high_sum_total_sales_1623757431661' ...
[00:00:19]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:00:19]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:00:19]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:00:19]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:00:19]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-anomalies-shared][0], [.ml-annotations-6][0]]])." previous.health="YELLOW" reason="shards started [[.ml-anomalies-shared][0], [.ml-annotations-6][0]]"
[00:00:20]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [.ml-anomalies-shared/0FRdXGclRVuxGdQ0vHPHjg] update_mapping [_doc]
[00:00:20]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [.ml-config] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:00:20]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] updating number_of_replicas to [0] for indices [.ml-config]
[00:00:20]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-config][0]]])." previous.health="YELLOW" reason="shards started [[.ml-config][0]]"
[00:00:20]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [.ml-notifications-000001] creating index, cause [auto(bulk api)], templates [.ml-notifications-000001], shards [1]/[1]
[00:00:20]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] updating number_of_replicas to [0] for indices [.ml-notifications-000001]
[00:00:20]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-notifications-000001][0]]])." previous.health="YELLOW" reason="shards started [[.ml-notifications-000001][0]]"
[00:00:20]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [.kibana_8.0.0_001/0Sb17EbmTAmdafd7Joo4Cg] update_mapping [_doc]
[00:00:21]               │ debg Waiting up to 5000ms for 'ec-high_sum_total_sales_1623757431661' to exist...
[00:00:21]               │ debg > AD job created.
[00:00:21]               │ debg Opening anomaly detection job 'ec-high_sum_total_sales_1623757431661'...
[00:00:21]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] Opening job [ec-high_sum_total_sales_1623757431661]
[00:00:21]               │ info [o.e.x.c.m.u.MlIndexAndAlias] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:00:21]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1]
[00:00:21]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:00:21]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-state-000001][0]]])." previous.health="YELLOW" reason="shards started [[.ml-state-000001][0]]"
[00:00:21]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:00:21]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [ec-high_sum_total_sales_1623757431661] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:00:21]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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:00:21]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] 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:00:21]               │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [ec-high_sum_total_sales_1623757431661] [autodetect/131558] [CResourceMonitor.cc@77] Setting model memory limit to 13 MB
[00:00:21]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] Successfully set job state to [opened] for job [ec-high_sum_total_sales_1623757431661]
[00:00:21]               │ debg > AD job opened.
[00:00:21]               │ debg Creating datafeed with id 'datafeed-ec-high_sum_total_sales_1623757431661' ...
[00:00:22]               │ debg Waiting up to 5000ms for 'datafeed-ec-high_sum_total_sales_1623757431661' to exist...
[00:00:22]               │ debg > Datafeed created.
[00:00:22]               │ debg Starting datafeed 'datafeed-ec-high_sum_total_sales_1623757431661' with start: '0', end: 'undefined'...
[00:00:22]               │ debg > Datafeed started.
[00:00:22]               │ debg Waiting up to 120000ms for datafeed state to be started...
[00:00:22]               │ debg Fetching datafeed state for datafeed datafeed-ec-high_sum_total_sales_1623757431661
[00:00:22]               │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [ec-high_sum_total_sales_1623757431661] Datafeed started (from: 1970-01-01T00:00:00.000Z to: real-time) with frequency [600000ms]
[00:00:22]               │ debg Waiting up to 30000ms for results for job ec-high_sum_total_sales_1623757431661 to exist...
[00:00:22]               │ debg --- retry.waitForWithTimeout error: expected results for job 'ec-high_sum_total_sales_1623757431661' to exist
[00:00:22]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [.ml-anomalies-shared/0FRdXGclRVuxGdQ0vHPHjg] update_mapping [_doc]
[00:00:22]             └-: overview page alert flyout controls
[00:00:22]               └-> "before all" hook for "can create an anomaly detection alert"
[00:00:22]               └-> can create an anomaly detection alert
[00:00:22]                 └-> "before each" hook: global before each for "can create an anomaly detection alert"
[00:00:22]                 │ debg navigating to triggersActions url: http://localhost:61201/app/management/insightsAndAlerting/triggersActions
[00:00:22]                 │ debg navigate to: http://localhost:61201/app/management/insightsAndAlerting/triggersActions
[00:00:23]                 │ debg browser[INFO] http://localhost:61201/app/management/insightsAndAlerting/triggersActions?_t=1623757434716 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:23]                 │
[00:00:23]                 │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:23]                 │ debg ... sleep(700) start
[00:00:23]                 │ debg ... sleep(700) end
[00:00:23]                 │ debg returned from get, calling refresh
[00:00:24]                 │ERROR browser[SEVERE] http://localhost:61201/43015/bundles/core/core.entry.js 12:150934 TypeError: Failed to fetch
[00:00:24]                 │          at fetch_Fetch.fetchResponse (http://localhost:61201/43015/bundles/core/core.entry.js:6:26193)
[00:00:24]                 │          at async http://localhost:61201/43015/bundles/core/core.entry.js:6:24090
[00:00:24]                 │          at async http://localhost:61201/43015/bundles/core/core.entry.js:6:23996
[00:00:24]                 │ debg browser[INFO] http://localhost:61201/app/management/insightsAndAlerting/triggersActions?_t=1623757434716 340 Refused to execute inline script because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' 'self'". Either the 'unsafe-inline' keyword, a hash ('sha256-P5polb1UreUSOe5V/Pv7tc+yeZuJXiOi/3fqhGsU7BE='), or a nonce ('nonce-...') is required to enable inline execution.
[00:00:24]                 │
[00:00:24]                 │ debg browser[INFO] http://localhost:61201/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:24]                 │ debg currentUrl = http://localhost:61201/app/management/insightsAndAlerting/triggersActions
[00:00:24]                 │          appUrl = http://localhost:61201/app/management/insightsAndAlerting/triggersActions
[00:00:24]                 │ debg TestSubjects.find(kibanaChrome)
[00:00:24]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:25]                 │ debg ... sleep(501) start
[00:00:25]                 │ERROR browser[SEVERE] http://localhost:61201/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:00:26]                 │ debg ... sleep(501) end
[00:00:26]                 │ debg in navigateTo url = http://localhost:61201/app/management/insightsAndAlerting/triggersActions/rules
[00:00:26]                 │ debg --- retry.tryForTime error: URL changed, waiting for it to settle
[00:00:26]                 │ debg ... sleep(501) start
[00:00:27]                 │ debg ... sleep(501) end
[00:00:27]                 │ debg in navigateTo url = http://localhost:61201/app/management/insightsAndAlerting/triggersActions/rules
[00:00:27]                 │ debg TestSubjects.click(rulesTab)
[00:00:27]                 │ debg Find.clickByCssSelector('[data-test-subj="rulesTab"]') with timeout=10000
[00:00:27]                 │ debg Find.findByCssSelector('[data-test-subj="rulesTab"]') with timeout=10000
[00:00:27]                 │ debg TestSubjects.exists(alertsList)
[00:00:27]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="alertsList"]') with timeout=120000
[00:00:27]                 │ debg Find.findByCssSelector('[data-test-subj="createAlertButton"],[data-test-subj="createFirstAlertButton"]') with timeout=10000
[00:00:27]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [ec-high_sum_total_sales_1623757431661] [autodetect/131558] [CAnomalyJob.cc@1578] Pruning all models
[00:00:27]                 │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [ec-high_sum_total_sales_1623757431661] Lookback has finished
[00:00:27]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [ec-high_sum_total_sales_1623757431661] [autodetect/131558] [CAnomalyJob.cc@1119] Background persist starting data copy
[00:00:27]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [ec-high_sum_total_sales_1623757431661] [autodetect/131558] [CPersistenceManager.cc@266] Background persist starting background thread
[00:00:27]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1623754819535663001] [.ml-anomalies-shared/0FRdXGclRVuxGdQ0vHPHjg] update_mapping [_doc]
[00:00:29]                 │ debg TestSubjects.click(xpack.ml.anomaly_detection_alert-SelectOption)
[00:00:29]                 │ debg Find.clickByCssSelector('[data-test-subj="xpack.ml.anomaly_detection_alert-SelectOption"]') with timeout=10000
[00:00:29]                 │ debg Find.findByCssSelector('[data-test-subj="xpack.ml.anomaly_detection_alert-SelectOption"]') with timeout=10000
[00:00:29]                 │ debg TestSubjects.exists(mlAnomalyAlertForm)
[00:00:29]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyAlertForm"]') with timeout=120000
[00:00:29]                 │ debg === TEST STEP === should have correct default values
[00:00:29]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:29]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:29]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:29]                 │ debg TestSubjects.isEnabled(mlAnomalyAlertPreviewButton)
[00:00:29]                 │ debg TestSubjects.find(mlAnomalyAlertPreviewButton)
[00:00:29]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:29]                 │ debg === TEST STEP === should complete the alert params
[00:00:29]                 │ debg comboBox.set, comboBoxSelector: mlAnomalyAlertJobSelection > comboBoxInput
[00:00:29]                 │ debg TestSubjects.find(mlAnomalyAlertJobSelection > comboBoxInput)
[00:00:29]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertJobSelection"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:00:30]                 │ debg comboBox.setElement, value: ec-high_sum_total_sales_1623757431661
[00:00:30]                 │ debg comboBox.isOptionSelected, value: ec-high_sum_total_sales_1623757431661
[00:00:32]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:00:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:00:32]                 │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="ec-high_sum_total_sales_1623757431661"]') with timeout=2500
[00:00:32]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:00:32]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:00:35]                 │ debg --- retry.tryForTime error: [data-test-subj~="comboBoxOptionsList"] is not displayed
[00:00:35]                 │ debg comboBox.getComboBoxSelectedOptions, comboBoxSelector: mlAnomalyAlertJobSelection > comboBoxInput
[00:00:35]                 │ debg TestSubjects.find(mlAnomalyAlertJobSelection > comboBoxInput)
[00:00:35]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertJobSelection"] [data-test-subj="comboBoxInput"]') with timeout=10000
[00:00:35]                 │ debg TestSubjects.click(mlAnomalyAlertResult_record)
[00:00:35]                 │ debg Find.clickByCssSelector('[data-test-subj="mlAnomalyAlertResult_record"]') with timeout=10000
[00:00:35]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertResult_record"]') with timeout=10000
[00:00:35]                 │ debg TestSubjects.exists(mlAnomalyAlertResult_record_selected)
[00:00:35]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyAlertResult_record_selected"]') with timeout=120000
[00:00:35]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:35]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:35]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 75
[00:00:36]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:36]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:36]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:36]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '65')
[00:00:36]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 65
[00:00:37]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:37]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:37]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:37]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '55')
[00:00:37]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 55
[00:00:38]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:38]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:38]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:38]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '45')
[00:00:39]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 45
[00:00:39]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:39]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:39]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:39]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '35')
[00:00:40]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 35
[00:00:40]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:40]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:40]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:40]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '25')
[00:00:41]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 25
[00:00:41]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:41]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:41]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:41]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '15')
[00:00:42]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 15
[00:00:42]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:42]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:42]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:42]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '14')
[00:00:43]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 14
[00:00:43]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:43]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:43]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:43]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '13')
[00:00:44]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 13
[00:00:44]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:44]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:44]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:44]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '12')
[00:00:45]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 12
[00:00:45]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:45]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:45]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:45]                 │ debg --- retry.tryForTime error: mlAnomalyAlertScoreSelection slider value should be '10' (got '11')
[00:00:46]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 11
[00:00:47]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:47]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:47]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:47]                 │ debg === TEST STEP === should populate advanced settings with default values
[00:00:47]                 │ debg Find.existsByDisplayedByCssSelector('#mlAnomalyAlertAdvancedSettings') with timeout=2500
[00:00:47]                 │ debg --- retry.tryForTime error: #mlAnomalyAlertAdvancedSettings is not displayed
[00:00:47]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:48]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:48]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:49]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:49]                 │ debg TestSubjects.click(mlAnomalyAlertAdvancedSettingsTrigger)
[00:00:49]                 │ debg Find.clickByCssSelector('[data-test-subj="mlAnomalyAlertAdvancedSettingsTrigger"]') with timeout=10000
[00:00:49]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertAdvancedSettingsTrigger"]') with timeout=10000
[00:00:49]                 │ debg Find.existsByDisplayedByCssSelector('#mlAnomalyAlertAdvancedSettings') with timeout=2500
[00:00:49]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertTopNBuckets, value, tryTimeout=120000, findTimeout=10000)
[00:00:49]                 │ debg TestSubjects.find(mlAnomalyAlertTopNBuckets)
[00:00:49]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertTopNBuckets"]') with timeout=10000
[00:00:49]                 │ debg Find.existsByDisplayedByCssSelector('#mlAnomalyAlertAdvancedSettings') with timeout=2500
[00:00:49]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertLookbackInterval, value, tryTimeout=120000, findTimeout=10000)
[00:00:49]                 │ debg TestSubjects.find(mlAnomalyAlertLookbackInterval)
[00:00:49]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertLookbackInterval"]') with timeout=10000
[00:00:49]                 │ debg === TEST STEP === should preview the alert condition
[00:00:49]                 │ debg TestSubjects.isEnabled(mlAnomalyAlertPreviewButton)
[00:00:49]                 │ debg TestSubjects.find(mlAnomalyAlertPreviewButton)
[00:00:49]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:49]                 │ debg TestSubjects.setValue(mlAnomalyAlertPreviewInterval, 2y)
[00:00:49]                 │ debg TestSubjects.click(mlAnomalyAlertPreviewInterval)
[00:00:49]                 │ debg Find.clickByCssSelector('[data-test-subj="mlAnomalyAlertPreviewInterval"]') with timeout=10000
[00:00:49]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewInterval"]') with timeout=10000
[00:00:50]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertPreviewInterval, value, tryTimeout=120000, findTimeout=10000)
[00:00:50]                 │ debg TestSubjects.find(mlAnomalyAlertPreviewInterval)
[00:00:50]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewInterval"]') with timeout=10000
[00:00:50]                 │ debg TestSubjects.isEnabled(mlAnomalyAlertPreviewButton)
[00:00:50]                 │ debg TestSubjects.find(mlAnomalyAlertPreviewButton)
[00:00:50]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:50]                 │ debg TestSubjects.click(mlAnomalyAlertPreviewButton)
[00:00:50]                 │ debg Find.clickByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:50]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:50]                 │ debg TestSubjects.exists(mlAnomalyAlertPreviewCallout)
[00:00:50]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyAlertPreviewCallout"]') with timeout=120000
[00:00:50]                 │ debg TestSubjects.getVisibleText(mlAnomalyAlertPreviewMessage)
[00:00:50]                 │ debg TestSubjects.find(mlAnomalyAlertPreviewMessage)
[00:00:50]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewMessage"]') with timeout=10000
[00:00:50]                 │ info Taking screenshot "/dev/shm/workspace/parallel/20/kibana/x-pack/test/functional/screenshots/failure/ML app anomaly detection alert overview page alert flyout controls can create an anomaly detection alert.png"
[00:00:50]                 │ info Current URL is: http://localhost:61201/app/management/insightsAndAlerting/triggersActions/rules
[00:00:50]                 │ info Saving page source to: /dev/shm/workspace/parallel/20/kibana/x-pack/test/functional/failure_debug/html/ML app anomaly detection alert overview page alert flyout controls can create an anomaly detection alert.html
[00:00:50]                 └- ✖ fail: ML app anomaly detection alert overview page alert flyout controls can create an anomaly detection alert
[00:00:50]                 │       Error: expected 'Found 2 anomalies in the last 2y.' to sort of equal 'Found 13 anomalies in the last 2y.'
[00:00:50]                 │       + expected - actual
[00:00:50]                 │ 
[00:00:50]                 │       -Found 2 anomalies in the last 2y.
[00:00:50]                 │       +Found 13 anomalies in the last 2y.
[00:00:50]                 │       
[00:00:50]                 │       at Assertion.assert (/dev/shm/workspace/parallel/20/kibana/node_modules/@kbn/expect/expect.js:100:11)
[00:00:50]                 │       at Assertion.eql (/dev/shm/workspace/parallel/20/kibana/node_modules/@kbn/expect/expect.js:244:8)
[00:00:50]                 │       at Object.checkPreview (test/functional/services/ml/alerting.ts:100:33)
[00:00:50]                 │       at runMicrotasks (<anonymous>)
[00:00:50]                 │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:00:50]                 │       at Context.<anonymous> (test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
[00:00:50]                 │       at Object.apply (/dev/shm/workspace/parallel/20/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:00:50]                 │ 
[00:00:50]                 │ 

Stack Trace

Error: expected 'Found 2 anomalies in the last 2y.' to sort of equal 'Found 13 anomalies in the last 2y.'
    at Assertion.assert (/dev/shm/workspace/parallel/20/kibana/node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/20/kibana/node_modules/@kbn/expect/expect.js:244:8)
    at Object.checkPreview (test/functional/services/ml/alerting.ts:100:33)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Context.<anonymous> (test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
    at Object.apply (/dev/shm/workspace/parallel/20/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16) {
  actual: 'Found 2 anomalies in the last 2y.',
  expected: 'Found 13 anomalies in the last 2y.',
  showDiff: true
}

and 4 more failures, only showing the first 3.

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
discover 359 368 +9

Async chunks

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

id before after diff
discover 411.0KB 421.4KB +10.4KB

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
discover 74.8KB 74.5KB -279.0B

History

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

cc @kertal

@kertal
Copy link
Member Author

kertal commented Jun 21, 2021

closing in favor of #102385

@kertal kertal closed this Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Discover Discover Application
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants