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

Do not mutate config in place during deprecations #99629

Merged
merged 7 commits into from May 11, 2021

Conversation

mshustov
Copy link
Contributor

@mshustov mshustov commented May 10, 2021

Summary

Part of #97791

Plugin API Changes

In this PR I changed how deprecations alter config. When a plugin implements a custom deprecation function, it used to mutate the config object. From now on, it should return either set command to extend config or unset command to remove config property. see Command pattern
before

(config, path, addDeprecation) => {
  set(config, path, newValue);
  set(config, another_path);
  return config
}

after

(config, path, addDeprecation) => {
  return {
    set: [{ key: path, value: newValue }],
    unset: [{ key: another_path }]
  }
}

Note that @kbn/config doesn't enforce config runtime immutability, but only compile-time check. It's done to prevent cases when a deprecation depends on another deprecation to be executed before, unfortunately, our test coverage is not enough to detect such cases. We have to do that manually in a follow-up if we think it's worth the effort.

rename('foo.bar', 'foo.baz'),
(config, path, addDeprecation) => {
  if(config.baz) {
  // ...
}

Checklist

Delete any items that are not applicable to this PR.

@mshustov mshustov added Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. v8.0.0 v7.14.0 labels May 10, 2021
@mshustov mshustov requested a review from Bamieh May 10, 2021 13:38
deprecations.forEach(({ deprecation, path }) => {
processed = deprecation(processed, path, createAddDeprecation(path));
const commands = deprecation(result, path, createAddDeprecation(path));
Copy link
Contributor Author

@mshustov mshustov May 10, 2021

Choose a reason for hiding this comment

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

@Bamieh In a follow-up, we can store all the commands to report them later. Do we need original values? Or config keys only?

Copy link
Member

Choose a reason for hiding this comment

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

@mshustov for the telemetry collector we'd only need the deprecated config keys

@mshustov mshustov marked this pull request as ready for review May 10, 2021 15:15
@mshustov mshustov requested a review from a team as a code owner May 10, 2021 15:15
@mshustov mshustov requested a review from a team May 10, 2021 15:15
@mshustov mshustov requested review from a team as code owners May 10, 2021 15:15
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-core (Team:Core)

Copy link
Contributor

@mikecote mikecote left a comment

Choose a reason for hiding this comment

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

Task manager changes LGTM

Copy link
Member

@legrego legrego left a comment

Choose a reason for hiding this comment

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

Changes to spaces and security LGTM

Comment on lines 31 to 33
commands.set.forEach(function ({ key, value }) {
set(result, key, value);
});
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason to not use arrow func here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

nope, but prefer-arrow-callback eslint is not enabled in the repo

Copy link
Contributor

@flash1293 flash1293 left a comment

Choose a reason for hiding this comment

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

Kibana app changes LGTM, code review only

Copy link
Member

@Bamieh Bamieh left a comment

Choose a reason for hiding this comment

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

LGTM. I had 1 tiny nit feel free to merge without addressing.

deprecations.forEach(({ deprecation, path }) => {
processed = deprecation(processed, path, createAddDeprecation(path));
const commands = deprecation(result, path, createAddDeprecation(path));
Copy link
Member

Choose a reason for hiding this comment

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

@mshustov for the telemetry collector we'd only need the deprecated config keys

processed = deprecation(processed, path, createAddDeprecation(path));
const commands = deprecation(result, path, createAddDeprecation(path));
if (commands) {
if (commands.set) {
Copy link
Member

Choose a reason for hiding this comment

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

why not use commands?.set instead of the two if statements?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, I will change in a follow-up

@mshustov mshustov enabled auto-merge (squash) May 11, 2021 09:14
@mshustov mshustov added the auto-backport Deprecated: Automatically backport this PR after it's merged label May 11, 2021
@mshustov mshustov merged commit 5fde16c into elastic:master May 11, 2021
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request May 11, 2021
* refactor config deprecations to avoid config mutations

* remove dynamic access keys in core deprecations.

* refactor custom config deprecations to match the new signature

* improve config deprecations fixtures for nested keys

* add a test for xpack.banner config deprecations

* key --> path, add a test for invalid command
@kibanamachine
Copy link
Contributor

💚 Backport successful

Status Branch Result
7.x

This backport PR will be merged automatically after passing CI.

@mshustov mshustov deleted the issue-97791 branch May 11, 2021 09:47
kibanamachine added a commit that referenced this pull request May 11, 2021
)

* Do not mutate config in place during deprecations (#99629)

* refactor config deprecations to avoid config mutations

* remove dynamic access keys in core deprecations.

* refactor custom config deprecations to match the new signature

* improve config deprecations fixtures for nested keys

* add a test for xpack.banner config deprecations

* key --> path, add a test for invalid command

* remove lodash usage

Co-authored-by: Mikhail Shustov <restrry@gmail.com>
@kibanamachine
Copy link
Contributor

kibanamachine commented Jul 7, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Functional Tests.x-pack/test/functional/apps/infra/metrics_anomalies·ts.InfraOps App Metrics UI Metrics UI Anomaly Flyout with anomalies present renders more anomalies on threshold change

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:35:28]         └-: InfraOps App
[00:35:28]           └-> "before all" hook in "InfraOps App"
[00:39:35]           └-: Metrics UI
[00:39:35]             └-> "before all" hook in "Metrics UI"
[00:40:50]             └-: Metrics UI Anomaly Flyout
[00:40:50]               └-> "before all" hook in "Metrics UI Anomaly Flyout"
[00:40:50]               └-> "before all" hook in "Metrics UI Anomaly Flyout"
[00:40:50]                 │ info [empty_kibana] Loading "mappings.json"
[00:40:50]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana_8.0.0_001/kMXURrgSTCuUzMoyYV97Pg] deleting index
[00:40:50]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana_task_manager_8.0.0_001/nHkni7eZQcaKnGk8ghYSCw] deleting index
[00:40:50]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana_pre6.5.0_001/PeHPM9GuQPiyGMqdyzG74Q] deleting index
[00:40:50]                 │ info [empty_kibana] Deleted existing index ".kibana_8.0.0_001"
[00:40:50]                 │ info [empty_kibana] Deleted existing index ".kibana_task_manager_8.0.0_001"
[00:40:50]                 │ info [empty_kibana] Deleted existing index ".kibana_pre6.5.0_001"
[00:40:50]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:40:50]                 │ info [empty_kibana] Created index ".kibana"
[00:40:50]                 │ debg [empty_kibana] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:40:50]                 │ debg Migrating saved objects
[00:40:50]                 │ proc [kibana]   log   [23:08:18.154] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 2ms.
[00:40:50]                 │ proc [kibana]   log   [23:08:18.158] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK. took: 7ms.
[00:40:50]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana_task_manager_8.0.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:40:50]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] updating number_of_replicas to [0] for indices [.kibana_task_manager_8.0.0_001]
[00:40:50]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] adding block write to indices [[.kibana/wzyMhURGQ7OVcQblg88XTg]]
[00:40:50]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] completed adding block write to indices [.kibana]
[00:40:50]                 │ proc [kibana]   log   [23:08:18.211] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 57ms.
[00:40:50]                 │ proc [kibana]   log   [23:08:18.225] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET. took: 67ms.
[00:40:50]                 │ proc [kibana]   log   [23:08:18.237] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 26ms.
[00:40:50]                 │ proc [kibana]   log   [23:08:18.237] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 85ms
[00:40:50]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:40:50]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:40:50]                 │ proc [kibana]   log   [23:08:18.276] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX. took: 51ms.
[00:40:51]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] 76758 finished with response BulkByScrollResponse[took=1.4ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:40:51]                 │ proc [kibana]   log   [23:08:18.282] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK. took: 6ms.
[00:40:51]                 │ proc [kibana]   log   [23:08:18.287] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE. took: 5ms.
[00:40:51]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana/wzyMhURGQ7OVcQblg88XTg] deleting index
[00:40:51]                 │ proc [kibana]   log   [23:08:18.316] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK. took: 29ms.
[00:40:51]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] adding block write to indices [[.kibana_pre6.5.0_001/HoNuRjafSWmUL5hzlctYfQ]]
[00:40:51]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:40:51]                 │ proc [kibana]   log   [23:08:18.348] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP. took: 32ms.
[00:40:51]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana_8.0.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:40:51]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] updating number_of_replicas to [0] for indices [.kibana_8.0.0_reindex_temp]
[00:40:51]                 │ proc [kibana]   log   [23:08:18.391] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP_OPEN_PIT. took: 43ms.
[00:40:51]                 │ proc [kibana]   log   [23:08:18.397] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_OPEN_PIT -> REINDEX_SOURCE_TO_TEMP_READ. took: 6ms.
[00:40:51]                 │ proc [kibana]   log   [23:08:18.403] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_READ -> REINDEX_SOURCE_TO_TEMP_CLOSE_PIT. took: 6ms.
[00:40:51]                 │ proc [kibana]   log   [23:08:18.407] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_CLOSE_PIT -> SET_TEMP_WRITE_BLOCK. took: 4ms.
[00:40:51]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] adding block write to indices [[.kibana_8.0.0_reindex_temp/NfvOU4njTCWoclQ6yv-J-w]]
[00:40:51]                 │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] completed adding block write to indices [.kibana_8.0.0_reindex_temp]
[00:40:51]                 │ proc [kibana]   log   [23:08:18.440] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 33ms.
[00:40:51]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] applying create index request using existing index [.kibana_8.0.0_reindex_temp] metadata
[00:40:51]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana_8.0.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:40:51]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] updating number_of_replicas to [0] for indices [.kibana_8.0.0_001]
[00:40:51]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana_8.0.0_001/ZGFnHQsZQP-HXnkkWSQUFw] create_mapping
[00:40:51]                 │ proc [kibana]   log   [23:08:18.509] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> REFRESH_TARGET. took: 69ms.
[00:40:51]                 │ proc [kibana]   log   [23:08:18.515] [info][savedobjects-service] [.kibana] REFRESH_TARGET -> OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT. took: 6ms.
[00:40:51]                 │ proc [kibana]   log   [23:08:18.520] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_OPEN_PIT -> OUTDATED_DOCUMENTS_SEARCH_READ. took: 5ms.
[00:40:51]                 │ proc [kibana]   log   [23:08:18.526] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_READ -> OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT. took: 6ms.
[00:40:51]                 │ proc [kibana]   log   [23:08:18.530] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH_CLOSE_PIT -> UPDATE_TARGET_MAPPINGS. took: 4ms.
[00:40:51]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana_8.0.0_001/ZGFnHQsZQP-HXnkkWSQUFw] update_mapping [_doc]
[00:40:51]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] 76823 finished with response BulkByScrollResponse[took=1.1ms,timed_out=false,sliceId=null,updated=0,created=0,deleted=0,batches=0,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:40:51]                 │ proc [kibana]   log   [23:08:18.574] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 44ms.
[00:40:51]                 │ proc [kibana]   log   [23:08:18.579] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 5ms.
[00:40:51]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana_8.0.0_reindex_temp/NfvOU4njTCWoclQ6yv-J-w] deleting index
[00:40:51]                 │ proc [kibana]   log   [23:08:18.611] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 32ms.
[00:40:51]                 │ proc [kibana]   log   [23:08:18.611] [info][savedobjects-service] [.kibana] Migration completed after 460ms
[00:40:51]                 │ debg [empty_kibana] Migrated Kibana index after loading Kibana data
[00:40:51]                 │ debg [empty_kibana] Ensured that default space exists in .kibana
[00:40:51]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:40:51]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana_8.0.0_001/ZGFnHQsZQP-HXnkkWSQUFw] update_mapping [_doc]
[00:41:01]               └-: with anomalies present
[00:41:01]                 └-> "before all" hook for "renders the anomaly table with anomalies"
[00:41:01]                 └-> "before all" hook for "renders the anomaly table with anomalies"
[00:41:01]                   │ info [infra/metrics_anomalies] Loading "mappings.json"
[00:41:02]                   │ info [infra/metrics_anomalies] Loading "data.json.gz"
[00:41:02]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[0]
[00:41:02]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:41:02]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:41:02]                   │ info [infra/metrics_anomalies] Created index ".ml-anomalies-shared"
[00:41:02]                   │ debg [infra/metrics_anomalies] ".ml-anomalies-shared" settings {"index":{"auto_expand_replicas":"0-1","hidden":"true","number_of_replicas":"0","number_of_shards":"1","translog":{"durability":"async"}}}
[00:41:02]                   │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.ml-config] creating index, cause [api], templates [], shards [1]/[1]
[00:41:02]                   │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] updating number_of_replicas to [0] for indices [.ml-config]
[00:41:02]                   │ info [infra/metrics_anomalies] Created index ".ml-config"
[00:41:02]                   │ debg [infra/metrics_anomalies] ".ml-config" settings {"index":{"auto_expand_replicas":"0-1","max_result_window":"10000","number_of_replicas":"0","number_of_shards":"1"}}
[00:41:02]                   │ info [infra/metrics_anomalies] Indexed 1182 docs into ".ml-anomalies-shared"
[00:41:02]                   │ info [infra/metrics_anomalies] Indexed 12 docs into ".ml-config"
[00:41:02]                   │ debg Creating saved object: {"type":"ml-job","id":"anomaly-detector-kibana-metrics-ui-default-default-hosts_memory_usage","overwrite":true,"attributes":{"job_id":"kibana-metrics-ui-default-default-hosts_memory_usage","datafeed_id":"datafeed-kibana-metrics-ui-default-default-hosts_memory_usage","type":"anomaly-detector"}}
[00:41:02]                   │ debg Creating saved object: {"type":"ml-job","id":"anomaly-detector-kibana-metrics-ui-default-default-hosts_network_out","overwrite":true,"attributes":{"job_id":"kibana-metrics-ui-default-default-hosts_network_out","datafeed_id":"datafeed-kibana-metrics-ui-default-default-hosts_network_out","type":"anomaly-detector"}}
[00:41:02]                   │ debg Creating saved object: {"type":"ml-job","id":"anomaly-detector-kibana-metrics-ui-default-default-hosts_network_in","overwrite":true,"attributes":{"job_id":"kibana-metrics-ui-default-default-hosts_network_in","datafeed_id":"datafeed-kibana-metrics-ui-default-default-hosts_network_in","type":"anomaly-detector"}}
[00:41:02]                   │ debg Creating saved object: {"type":"ml-job","id":"anomaly-detector-kibana-metrics-ui-default-default-k8s_network_out","overwrite":true,"attributes":{"job_id":"kibana-metrics-ui-default-default-k8s_network_out","datafeed_id":"datafeed-kibana-metrics-ui-default-default-k8s_network_out","type":"anomaly-detector"}}
[00:41:02]                   │ debg Creating saved object: {"type":"ml-job","id":"anomaly-detector-kibana-metrics-ui-default-default-k8s_network_in","overwrite":true,"attributes":{"job_id":"kibana-metrics-ui-default-default-k8s_network_in","datafeed_id":"datafeed-kibana-metrics-ui-default-default-k8s_network_in","type":"anomaly-detector"}}
[00:41:02]                   │ debg Creating saved object: {"type":"ml-job","id":"anomaly-detector-kibana-metrics-ui-default-default-k8s_memory_usage","overwrite":true,"attributes":{"job_id":"kibana-metrics-ui-default-default-k8s_memory_usage","datafeed_id":"datafeed-kibana-metrics-ui-default-default-k8s_memory_usage","type":"anomaly-detector"}}
[00:41:02]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana_8.0.0_001/ZGFnHQsZQP-HXnkkWSQUFw] update_mapping [_doc]
[00:41:03]                 └-> renders the anomaly table with anomalies
[00:41:03]                   └-> "before each" hook: global before each for "renders the anomaly table with anomalies"
[00:41:03]                   │ debg TestSubjects.click(openAnomalyFlyoutButton)
[00:41:03]                   │ debg Find.clickByCssSelector('[data-test-subj="openAnomalyFlyoutButton"]') with timeout=10000
[00:41:03]                   │ debg Find.findByCssSelector('[data-test-subj="openAnomalyFlyoutButton"]') with timeout=10000
[00:41:03]                   │ debg TestSubjects.exists(loadMLFlyout)
[00:41:03]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loadMLFlyout"]') with timeout=2500
[00:41:03]                   │ debg TestSubjects.click(anomalyFlyoutAnomaliesTab)
[00:41:03]                   │ debg Find.clickByCssSelector('[data-test-subj="anomalyFlyoutAnomaliesTab"]') with timeout=10000
[00:41:03]                   │ debg Find.findByCssSelector('[data-test-subj="anomalyFlyoutAnomaliesTab"]') with timeout=10000
[00:41:03]                   │ debg TestSubjects.click(anomaliesComboBoxType)
[00:41:03]                   │ debg Find.clickByCssSelector('[data-test-subj="anomaliesComboBoxType"]') with timeout=10000
[00:41:03]                   │ debg Find.findByCssSelector('[data-test-subj="anomaliesComboBoxType"]') with timeout=10000
[00:41:03]                   │ debg TestSubjects.click(anomaliesHostComboBoxItem)
[00:41:03]                   │ debg Find.clickByCssSelector('[data-test-subj="anomaliesHostComboBoxItem"]') with timeout=10000
[00:41:03]                   │ debg Find.findByCssSelector('[data-test-subj="anomaliesHostComboBoxItem"]') with timeout=10000
[00:41:03]                   │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:41:03]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:41:03]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:41:03]                   │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:41:03]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:41:03]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:41:03]                   │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:41:03]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:41:03]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:41:03]                   │ debg TestSubjects.find(superDatePickerAbsoluteDateInput)
[00:41:03]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:41:04]                   │ debg TestSubjects.findAll(anomalyRow)
[00:41:04]                   │ debg Find.allByCssSelector('[data-test-subj="anomalyRow"]') with timeout=10000
[00:41:04]                   │ debg TestSubjects.click(anomaliesComboBoxType)
[00:41:04]                   │ debg Find.clickByCssSelector('[data-test-subj="anomaliesComboBoxType"]') with timeout=10000
[00:41:04]                   │ debg Find.findByCssSelector('[data-test-subj="anomaliesComboBoxType"]') with timeout=10000
[00:41:04]                   │ debg TestSubjects.click(anomaliesK8sComboBoxItem)
[00:41:04]                   │ debg Find.clickByCssSelector('[data-test-subj="anomaliesK8sComboBoxItem"]') with timeout=10000
[00:41:04]                   │ debg Find.findByCssSelector('[data-test-subj="anomaliesK8sComboBoxItem"]') with timeout=10000
[00:41:04]                   │ debg TestSubjects.findAll(anomalyRow)
[00:41:04]                   │ debg Find.allByCssSelector('[data-test-subj="anomalyRow"]') with timeout=10000
[00:41:05]                   │ debg TestSubjects.click(euiFlyoutCloseButton)
[00:41:05]                   │ debg Find.clickByCssSelector('[data-test-subj="euiFlyoutCloseButton"]') with timeout=10000
[00:41:05]                   │ debg Find.findByCssSelector('[data-test-subj="euiFlyoutCloseButton"]') with timeout=10000
[00:41:05]                   └- ✓ pass  (2.0s) "InfraOps App Metrics UI Metrics UI Anomaly Flyout with anomalies present renders the anomaly table with anomalies"
[00:41:05]                 └-> renders the anomaly table after a date change with no anomalies
[00:41:05]                   └-> "before each" hook: global before each for "renders the anomaly table after a date change with no anomalies"
[00:41:05]                   │ debg TestSubjects.click(openAnomalyFlyoutButton)
[00:41:05]                   │ debg Find.clickByCssSelector('[data-test-subj="openAnomalyFlyoutButton"]') with timeout=10000
[00:41:05]                   │ debg Find.findByCssSelector('[data-test-subj="openAnomalyFlyoutButton"]') with timeout=10000
[00:41:05]                   │ debg TestSubjects.exists(loadMLFlyout)
[00:41:05]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loadMLFlyout"]') with timeout=2500
[00:41:05]                   │ debg TestSubjects.click(anomalyFlyoutAnomaliesTab)
[00:41:05]                   │ debg Find.clickByCssSelector('[data-test-subj="anomalyFlyoutAnomaliesTab"]') with timeout=10000
[00:41:05]                   │ debg Find.findByCssSelector('[data-test-subj="anomalyFlyoutAnomaliesTab"]') with timeout=10000
[00:41:05]                   │ debg TestSubjects.click(anomaliesComboBoxType)
[00:41:05]                   │ debg Find.clickByCssSelector('[data-test-subj="anomaliesComboBoxType"]') with timeout=10000
[00:41:05]                   │ debg Find.findByCssSelector('[data-test-subj="anomaliesComboBoxType"]') with timeout=10000
[00:41:05]                   │ debg TestSubjects.click(anomaliesHostComboBoxItem)
[00:41:05]                   │ debg Find.clickByCssSelector('[data-test-subj="anomaliesHostComboBoxItem"]') with timeout=10000
[00:41:05]                   │ debg Find.findByCssSelector('[data-test-subj="anomaliesHostComboBoxItem"]') with timeout=10000
[00:41:05]                   │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:41:05]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:41:05]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:41:05]                   │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:41:05]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:41:05]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:41:05]                   │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:41:05]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:41:05]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:41:05]                   │ debg TestSubjects.find(superDatePickerAbsoluteDateInput)
[00:41:05]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:41:06]                   │ debg TestSubjects.find(noAnomaliesFoundMsg)
[00:41:06]                   │ debg Find.findByCssSelector('[data-test-subj="noAnomaliesFoundMsg"]') with timeout=10000
[00:41:06]                   │ debg TestSubjects.click(anomaliesComboBoxType)
[00:41:06]                   │ debg Find.clickByCssSelector('[data-test-subj="anomaliesComboBoxType"]') with timeout=10000
[00:41:06]                   │ debg Find.findByCssSelector('[data-test-subj="anomaliesComboBoxType"]') with timeout=10000
[00:41:06]                   │ debg TestSubjects.click(anomaliesK8sComboBoxItem)
[00:41:06]                   │ debg Find.clickByCssSelector('[data-test-subj="anomaliesK8sComboBoxItem"]') with timeout=10000
[00:41:06]                   │ debg Find.findByCssSelector('[data-test-subj="anomaliesK8sComboBoxItem"]') with timeout=10000
[00:41:06]                   │ debg TestSubjects.find(noAnomaliesFoundMsg)
[00:41:06]                   │ debg Find.findByCssSelector('[data-test-subj="noAnomaliesFoundMsg"]') with timeout=10000
[00:41:06]                   │ debg TestSubjects.click(euiFlyoutCloseButton)
[00:41:06]                   │ debg Find.clickByCssSelector('[data-test-subj="euiFlyoutCloseButton"]') with timeout=10000
[00:41:06]                   │ debg Find.findByCssSelector('[data-test-subj="euiFlyoutCloseButton"]') with timeout=10000
[00:41:06]                   └- ✓ pass  (1.8s) "InfraOps App Metrics UI Metrics UI Anomaly Flyout with anomalies present renders the anomaly table after a date change with no anomalies"
[00:41:06]                 └-> renders more anomalies on threshold change
[00:41:06]                   └-> "before each" hook: global before each for "renders more anomalies on threshold change"
[00:41:06]                   │ debg TestSubjects.click(infrastructureNavLink_/settings)
[00:41:06]                   │ debg Find.clickByCssSelector('[data-test-subj="infrastructureNavLink_/settings"]') with timeout=10000
[00:41:06]                   │ debg Find.findByCssSelector('[data-test-subj="infrastructureNavLink_/settings"]') with timeout=10000
[00:41:07]                   │ debg Find.findByCssSelector('.euiFieldNumber.euiRangeInput.euiRangeInput--max') with timeout=10000
[00:41:07]                   │ debg TestSubjects.find(~sourceConfigurationContent)
[00:41:07]                   │ debg Find.findByCssSelector('[data-test-subj~="sourceConfigurationContent"]') with timeout=10000
[00:41:07]                   │ debg TestSubjects.findDescendant(~applySettingsButton)
[00:41:07]                   │ debg Find.descendantDisplayedByCssSelector('[data-test-subj~="applySettingsButton"]')
[00:41:07]                   │ debg TestSubjects.find(~sourceConfigurationContent)
[00:41:07]                   │ debg Find.findByCssSelector('[data-test-subj~="sourceConfigurationContent"]') with timeout=10000
[00:41:07]                   │ debg TestSubjects.findDescendant(~applySettingsButton)
[00:41:07]                   │ debg Find.descendantDisplayedByCssSelector('[data-test-subj~="applySettingsButton"]')
[00:41:07]                   │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana_8.0.0_001/ZGFnHQsZQP-HXnkkWSQUFw] update_mapping [_doc]
[00:41:08]                   │ debg TestSubjects.click(infrastructureNavLink_/inventory)
[00:41:08]                   │ debg Find.clickByCssSelector('[data-test-subj="infrastructureNavLink_/inventory"]') with timeout=10000
[00:41:08]                   │ debg Find.findByCssSelector('[data-test-subj="infrastructureNavLink_/inventory"]') with timeout=10000
[00:41:08]                   │ debg TestSubjects.click(openAnomalyFlyoutButton)
[00:41:08]                   │ debg Find.clickByCssSelector('[data-test-subj="openAnomalyFlyoutButton"]') with timeout=10000
[00:41:08]                   │ debg Find.findByCssSelector('[data-test-subj="openAnomalyFlyoutButton"]') with timeout=10000
[00:41:08]                   │ debg TestSubjects.exists(loadMLFlyout)
[00:41:08]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loadMLFlyout"]') with timeout=2500
[00:41:08]                   │ debg TestSubjects.click(anomalyFlyoutAnomaliesTab)
[00:41:08]                   │ debg Find.clickByCssSelector('[data-test-subj="anomalyFlyoutAnomaliesTab"]') with timeout=10000
[00:41:08]                   │ debg Find.findByCssSelector('[data-test-subj="anomalyFlyoutAnomaliesTab"]') with timeout=10000
[00:41:08]                   │ debg TestSubjects.click(anomaliesComboBoxType)
[00:41:08]                   │ debg Find.clickByCssSelector('[data-test-subj="anomaliesComboBoxType"]') with timeout=10000
[00:41:08]                   │ debg Find.findByCssSelector('[data-test-subj="anomaliesComboBoxType"]') with timeout=10000
[00:41:08]                   │ debg TestSubjects.click(anomaliesHostComboBoxItem)
[00:41:08]                   │ debg Find.clickByCssSelector('[data-test-subj="anomaliesHostComboBoxItem"]') with timeout=10000
[00:41:08]                   │ debg Find.findByCssSelector('[data-test-subj="anomaliesHostComboBoxItem"]') with timeout=10000
[00:41:09]                   │ debg TestSubjects.findAll(anomalyRow)
[00:41:09]                   │ debg Find.allByCssSelector('[data-test-subj="anomalyRow"]') with timeout=10000
[00:41:19]                   │ info Taking screenshot "/dev/shm/workspace/parallel/2/kibana/x-pack/test/functional/screenshots/failure/InfraOps App Metrics UI Metrics UI Anomaly Flyout with anomalies present renders more anomalies on threshold change.png"
[00:41:19]                   │ info Current URL is: http://localhost:6121/app/metrics/inventory
[00:41:19]                   │ info Saving page source to: /dev/shm/workspace/parallel/2/kibana/x-pack/test/functional/failure_debug/html/InfraOps App Metrics UI Metrics UI Anomaly Flyout with anomalies present renders more anomalies on threshold change.html
[00:41:19]                   └- ✖ fail: InfraOps App Metrics UI Metrics UI Anomaly Flyout with anomalies present renders more anomalies on threshold change
[00:41:19]                   │      Error: expected 0 to equal 4
[00:41:19]                   │       at Assertion.assert (/dev/shm/workspace/parallel/2/kibana/node_modules/@kbn/expect/expect.js:100:11)
[00:41:19]                   │       at Assertion.be.Assertion.equal (/dev/shm/workspace/parallel/2/kibana/node_modules/@kbn/expect/expect.js:227:8)
[00:41:19]                   │       at Assertion.be (/dev/shm/workspace/parallel/2/kibana/node_modules/@kbn/expect/expect.js:69:22)
[00:41:19]                   │       at Context.<anonymous> (test/functional/apps/infra/metrics_anomalies.ts:96:41)
[00:41:19]                   │       at runMicrotasks (<anonymous>)
[00:41:19]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:41:19]                   │       at Object.apply (/dev/shm/workspace/parallel/2/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:41:19]                   │ 
[00:41:19]                   │ 

Stack Trace

Error: expected 0 to equal 4
    at Assertion.assert (/dev/shm/workspace/parallel/2/kibana/node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.be.Assertion.equal (/dev/shm/workspace/parallel/2/kibana/node_modules/@kbn/expect/expect.js:227:8)
    at Assertion.be (/dev/shm/workspace/parallel/2/kibana/node_modules/@kbn/expect/expect.js:69:22)
    at Context.<anonymous> (test/functional/apps/infra/metrics_anomalies.ts:96:41)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/2/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

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 9 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] added user [ft_ml_poweruser_all_spaces]
[00:00:00]             │ debg created user ft_ml_poweruser_all_spaces
[00:00:00]             │ debg creating user ft_ml_viewer
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] added user [ft_ml_viewer]
[00:00:00]             │ 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] 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-1625694952396766741] [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-1625694952396766741] 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:04]               │ debg Searching for 'index-pattern' with title 'ft_ecommerce'...
[00:00:04]               │ debg  > Not found
[00:00:04]               │ debg Creating index pattern with title 'ft_ecommerce' and time field 'order_date'
[00:00:04]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana_8.0.0_001/DQQqXrcxQhuFpsmmAWqMDw] update_mapping [_doc]
[00:00:04]               │ debg Waiting up to 5000ms for index-pattern with title 'ft_ecommerce' to exist...
[00:00:04]               │ debg Searching for 'index-pattern' with title 'ft_ecommerce'...
[00:00:04]               │ debg  > Found '83ceade0-df75-11eb-97a7-7dcae6495bd5'
[00:00:05]               │ debg  > Created with id '83ceade0-df75-11eb-97a7-7dcae6495bd5'
[00:00:05]               │ debg applying update to kibana config: {"dateFormat:tz":"UTC"}
[00:00:05]               │ debg SecurityPage.forceLogout
[00:00:05]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=100
[00:00:06]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:06]               │ debg Redirecting to /logout to force the logout
[00:00:06]               │ debg Waiting on the login form to appear
[00:00:06]               │ debg Waiting for Login Page to appear.
[00:00:06]               │ debg Waiting up to 100000ms for login page...
[00:00:06]               │ debg browser[INFO] http://localhost:61231/logout?_t=1625698140138 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:06]               │
[00:00:06]               │ debg browser[INFO] http://localhost:61231/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:06]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:09]               │ERROR browser[SEVERE] http://localhost:61231/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:09]               │ERROR browser[SEVERE] http://localhost:61231/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:09]               │ debg browser[INFO] http://localhost:61231/42791/bundles/core/core.entry.js 12:151862 "Detected an unhandled Promise rejection.
[00:00:09]               │      Error: Unauthorized"
[00:00:09]               │ERROR browser[SEVERE] http://localhost:61231/42791/bundles/core/core.entry.js 5:2514 
[00:00:09]               │ debg browser[INFO] http://localhost:61231/42791/bundles/core/core.entry.js 12:151862 "Detected an unhandled Promise rejection.
[00:00:09]               │      Error: Unauthorized"
[00:00:09]               │ERROR browser[SEVERE] http://localhost:61231/42791/bundles/core/core.entry.js 5:2514 
[00:00:09]               │ debg browser[INFO] http://localhost:61231/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:09]               │
[00:00:09]               │ debg browser[INFO] http://localhost:61231/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:09]               │ debg --- retry.tryForTime error: .login-form is not displayed
[00:00:09]               │ERROR browser[SEVERE] http://localhost:61231/internal/spaces/_active_space - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:09]               │ERROR browser[SEVERE] http://localhost:61231/api/alerts/list_alert_types - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:09]               │ debg browser[INFO] http://localhost:61231/42791/bundles/core/core.entry.js 12:151862 "Detected an unhandled Promise rejection.
[00:00:09]               │      Error: Unauthorized"
[00:00:09]               │ERROR browser[SEVERE] http://localhost:61231/42791/bundles/core/core.entry.js 5:2514 
[00:00:09]               │ debg browser[INFO] http://localhost:61231/42791/bundles/core/core.entry.js 12:151862 "Detected an unhandled Promise rejection.
[00:00:09]               │      Error: Unauthorized"
[00:00:09]               │ERROR browser[SEVERE] http://localhost:61231/42791/bundles/core/core.entry.js 5:2514 
[00:00:09]               │ERROR browser[SEVERE] http://localhost:61231/api/licensing/info - Failed to load resource: the server responded with a status of 401 (Unauthorized)
[00:00:10]               │ debg Find.existsByDisplayedByCssSelector('.login-form') with timeout=2500
[00:00:10]               │ debg TestSubjects.exists(loginForm)
[00:00:10]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:00:10]               │ debg Waiting for Login Form to appear.
[00:00:10]               │ debg Waiting up to 100000ms for login form...
[00:00:10]               │ debg TestSubjects.exists(loginForm)
[00:00:10]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="loginForm"]') with timeout=2500
[00:00:10]               │ debg TestSubjects.setValue(loginUsername, ft_ml_poweruser)
[00:00:10]               │ debg TestSubjects.click(loginUsername)
[00:00:10]               │ debg Find.clickByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:10]               │ debg Find.findByCssSelector('[data-test-subj="loginUsername"]') with timeout=10000
[00:00:10]               │ debg TestSubjects.setValue(loginPassword, mlp001)
[00:00:10]               │ debg TestSubjects.click(loginPassword)
[00:00:10]               │ debg Find.clickByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:10]               │ debg Find.findByCssSelector('[data-test-subj="loginPassword"]') with timeout=10000
[00:00:10]               │ debg TestSubjects.click(loginSubmit)
[00:00:10]               │ debg Find.clickByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:10]               │ debg Find.findByCssSelector('[data-test-subj="loginSubmit"]') with timeout=10000
[00:00:10]               │ debg Waiting for login result, expected: chrome.
[00:00:10]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"] .kbnAppWrapper:not(.kbnAppWrapper--hiddenChrome)') with timeout=20000
[00:00:10]               │ proc [kibana]   log   [22:49:04.233] [info][plugins][routes][security] Logging in with provider "basic" (basic)
[00:00:15]               │ debg browser[INFO] http://localhost:61231/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:15]               │
[00:00:15]               │ debg browser[INFO] http://localhost:61231/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:15]               │ debg Finished login process currentUrl = http://localhost:61231/app/home#/
[00:00:15]               │ debg Waiting up to 20000ms for logout button visible...
[00:00:15]               │ debg TestSubjects.exists(userMenuButton)
[00:00:15]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenuButton"]') with timeout=2500
[00:00:15]               │ debg TestSubjects.exists(userMenu)
[00:00:15]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=2500
[00:00:17]               │ERROR browser[SEVERE] http://localhost:61231/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:00:17]               │ debg --- retry.tryForTime error: [data-test-subj="userMenu"] is not displayed
[00:00:18]               │ debg TestSubjects.click(userMenuButton)
[00:00:18]               │ debg Find.clickByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:00:18]               │ debg Find.findByCssSelector('[data-test-subj="userMenuButton"]') with timeout=10000
[00:00:18]               │ debg TestSubjects.exists(userMenu)
[00:00:18]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"]') with timeout=120000
[00:00:18]               │ debg TestSubjects.exists(userMenu > logoutLink)
[00:00:18]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="userMenu"] [data-test-subj="logoutLink"]') with timeout=2500
[00:00:18]               │ debg Creating anomaly detection job with id 'ec-high_sum_total_sales_1625698151901' ...
[00:00:18]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.ml-anomalies-shared] creating index, cause [api], templates [.ml-anomalies-], shards [1]/[1]
[00:00:18]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] updating number_of_replicas to [0] for indices [.ml-anomalies-shared]
[00:00:18]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.ml-annotations-6] creating index, cause [api], templates [], shards [1]/[1]
[00:00:18]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] updating number_of_replicas to [0] for indices [.ml-annotations-6]
[00:00:18]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] 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:18]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.ml-anomalies-shared/oV6MycihScaSHDvCL2fORQ] update_mapping [_doc]
[00:00:18]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.ml-config] creating index, cause [auto(bulk api)], templates [], shards [1]/[1]
[00:00:18]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] updating number_of_replicas to [0] for indices [.ml-config]
[00:00:18]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] 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:18]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.ml-notifications-000002] creating index, cause [auto(bulk api)], templates [.ml-notifications-000002], shards [1]/[1]
[00:00:18]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] updating number_of_replicas to [0] for indices [.ml-notifications-000002]
[00:00:18]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.ml-notifications-000002][0]]])." previous.health="YELLOW" reason="shards started [[.ml-notifications-000002][0]]"
[00:00:18]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.kibana_8.0.0_001/DQQqXrcxQhuFpsmmAWqMDw] update_mapping [_doc]
[00:00:19]               │ debg Waiting up to 5000ms for 'ec-high_sum_total_sales_1625698151901' to exist...
[00:00:19]               │ debg > AD job created.
[00:00:19]               │ debg Opening anomaly detection job 'ec-high_sum_total_sales_1625698151901'...
[00:00:19]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] Opening job [ec-high_sum_total_sales_1625698151901]
[00:00:19]               │ info [o.e.x.c.m.u.MlIndexAndAlias] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] About to create first concrete index [.ml-state-000001] with alias [.ml-state-write]
[00:00:19]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.ml-state-000001] creating index, cause [api], templates [.ml-state], shards [1]/[1]
[00:00:19]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] updating number_of_replicas to [0] for indices [.ml-state-000001]
[00:00:19]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] 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:19]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] moving index [.ml-state-000001] from [null] to [{"phase":"new","action":"complete","name":"complete"}] in policy [ml-size-based-ilm-policy]
[00:00:19]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [ec-high_sum_total_sales_1625698151901] Loading model snapshot [N/A], job latest_record_timestamp [N/A]
[00:00:19]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] 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:19]               │ info [o.e.x.i.IndexLifecycleTransition] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] 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:19]               │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [ec-high_sum_total_sales_1625698151901] [autodetect/159597] [CResourceMonitor.cc@77] Setting model memory limit to 13 MB
[00:00:19]               │ info [o.e.x.m.j.p.a.AutodetectProcessManager] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] Successfully set job state to [opened] for job [ec-high_sum_total_sales_1625698151901]
[00:00:19]               │ debg > AD job opened.
[00:00:19]               │ debg Creating datafeed with id 'datafeed-ec-high_sum_total_sales_1625698151901' ...
[00:00:20]               │ debg Waiting up to 5000ms for 'datafeed-ec-high_sum_total_sales_1625698151901' to exist...
[00:00:20]               │ debg > Datafeed created.
[00:00:20]               │ debg Starting datafeed 'datafeed-ec-high_sum_total_sales_1625698151901' with start: '0', end: 'undefined'...
[00:00:20]               │ debg > Datafeed started.
[00:00:20]               │ debg Waiting up to 120000ms for datafeed state to be started...
[00:00:20]               │ debg Fetching datafeed state for datafeed datafeed-ec-high_sum_total_sales_1625698151901
[00:00:20]               │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [ec-high_sum_total_sales_1625698151901] Datafeed started (from: 1970-01-01T00:00:00.000Z to: real-time) with frequency [600000ms]
[00:00:20]               │ debg Waiting up to 30000ms for results for job ec-high_sum_total_sales_1625698151901 to exist...
[00:00:20]               │ debg --- retry.waitForWithTimeout error: expected results for job 'ec-high_sum_total_sales_1625698151901' to exist
[00:00:20]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.ml-anomalies-shared/oV6MycihScaSHDvCL2fORQ] update_mapping [_doc]
[00:00:20]             └-: overview page alert flyout controls
[00:00:20]               └-> "before all" hook for "can create an anomaly detection alert"
[00:00:20]               └-> can create an anomaly detection alert
[00:00:20]                 └-> "before each" hook: global before each for "can create an anomaly detection alert"
[00:00:20]                 │ debg navigating to triggersActions url: http://localhost:61231/app/management/insightsAndAlerting/triggersActions
[00:00:20]                 │ debg navigate to: http://localhost:61231/app/management/insightsAndAlerting/triggersActions
[00:00:20]                 │ debg browser[INFO] http://localhost:61231/app/management/insightsAndAlerting/triggersActions?_t=1625698154294 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:20]                 │
[00:00:20]                 │ debg browser[INFO] http://localhost:61231/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:20]                 │ debg ... sleep(700) start
[00:00:21]                 │ debg ... sleep(700) end
[00:00:21]                 │ debg returned from get, calling refresh
[00:00:22]                 │ERROR browser[SEVERE] http://localhost:61231/42791/bundles/core/core.entry.js 12:150934 TypeError: Failed to fetch
[00:00:22]                 │          at fetch_Fetch.fetchResponse (http://localhost:61231/42791/bundles/core/core.entry.js:6:26193)
[00:00:22]                 │          at async http://localhost:61231/42791/bundles/core/core.entry.js:6:24090
[00:00:22]                 │          at async http://localhost:61231/42791/bundles/core/core.entry.js:6:23996
[00:00:22]                 │ debg browser[INFO] http://localhost:61231/app/management/insightsAndAlerting/triggersActions?_t=1625698154294 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:22]                 │
[00:00:22]                 │ debg browser[INFO] http://localhost:61231/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:00:22]                 │ debg currentUrl = http://localhost:61231/app/management/insightsAndAlerting/triggersActions
[00:00:22]                 │          appUrl = http://localhost:61231/app/management/insightsAndAlerting/triggersActions
[00:00:22]                 │ debg TestSubjects.find(kibanaChrome)
[00:00:22]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:00:23]                 │ debg ... sleep(501) start
[00:00:23]                 │ERROR browser[SEVERE] http://localhost:61231/api/fleet/epm/packages?experimental=true - Failed to load resource: the server responded with a status of 403 (Forbidden)
[00:00:24]                 │ debg ... sleep(501) end
[00:00:24]                 │ debg in navigateTo url = http://localhost:61231/app/management/insightsAndAlerting/triggersActions/rules
[00:00:24]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[00:00:24]                 │ debg ... sleep(501) start
[00:00:25]                 │ debg ... sleep(501) end
[00:00:25]                 │ debg in navigateTo url = http://localhost:61231/app/management/insightsAndAlerting/triggersActions/rules
[00:00:25]                 │ debg TestSubjects.exists(statusPageContainer)
[00:00:25]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:00:25]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [ec-high_sum_total_sales_1625698151901] [autodetect/159597] [CAnomalyJob.cc@1578] Pruning all models
[00:00:25]                 │ info [o.e.x.m.d.DatafeedJob] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [ec-high_sum_total_sales_1625698151901] Lookback has finished
[00:00:25]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [ec-high_sum_total_sales_1625698151901] [autodetect/159597] [CAnomalyJob.cc@1119] Background persist starting data copy
[00:00:25]                 │ info [o.e.x.m.p.l.CppLogMessageHandler] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [ec-high_sum_total_sales_1625698151901] [autodetect/159597] [CPersistenceManager.cc@266] Background persist starting background thread
[00:00:25]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1625694952396766741] [.ml-anomalies-shared/oV6MycihScaSHDvCL2fORQ] update_mapping [_doc]
[00:00:27]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:00:28]                 │ debg TestSubjects.click(rulesTab)
[00:00:28]                 │ debg Find.clickByCssSelector('[data-test-subj="rulesTab"]') with timeout=10000
[00:00:28]                 │ debg Find.findByCssSelector('[data-test-subj="rulesTab"]') with timeout=10000
[00:00:28]                 │ debg TestSubjects.exists(alertsList)
[00:00:28]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="alertsList"]') with timeout=120000
[00:00:28]                 │ debg Find.findByCssSelector('[data-test-subj="createAlertButton"],[data-test-subj="createFirstAlertButton"]') with timeout=10000
[00:00:28]                 │ debg TestSubjects.click(xpack.ml.anomaly_detection_alert-SelectOption)
[00:00:28]                 │ debg Find.clickByCssSelector('[data-test-subj="xpack.ml.anomaly_detection_alert-SelectOption"]') with timeout=10000
[00:00:28]                 │ 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:29]                 │ debg comboBox.setElement, value: ec-high_sum_total_sales_1625698151901
[00:00:29]                 │ debg comboBox.isOptionSelected, value: ec-high_sum_total_sales_1625698151901
[00:00:31]                 │ debg TestSubjects.exists(~comboBoxOptionsList)
[00:00:31]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj~="comboBoxOptionsList"]') with timeout=2500
[00:00:31]                 │ debg Find.allByCssSelector('.euiFilterSelectItem[title^="ec-high_sum_total_sales_1625698151901"]') 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:34]                 │ 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:35]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[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: 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: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 '55')
[00:00:37]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 55
[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 '45')
[00:00:38]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 45
[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 '35')
[00:00:39]                 │ 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:40]                 │ 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:41]                 │ 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:42]                 │ 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:43]                 │ 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:44]                 │ 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:45]                 │ debg --- retry.tryForTime error: slider value should have changed, but is still 11
[00:00:46]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertScoreSelection, value, tryTimeout=120000, findTimeout=10000)
[00:00:46]                 │ debg TestSubjects.find(mlAnomalyAlertScoreSelection)
[00:00:46]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertScoreSelection"]') with timeout=10000
[00:00:46]                 │ debg === TEST STEP === should populate advanced settings with default values
[00:00:46]                 │ debg Find.existsByDisplayedByCssSelector('#mlAnomalyAlertAdvancedSettings') with timeout=2500
[00:00:46]                 │ debg --- retry.tryForTime error: #mlAnomalyAlertAdvancedSettings is not displayed
[00:00:46]                 │ debg --- retry.tryForTime failed again with the same message...
[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 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:49]                 │ debg TestSubjects.getAttribute(mlAnomalyAlertPreviewInterval, value, tryTimeout=120000, findTimeout=10000)
[00:00:49]                 │ debg TestSubjects.find(mlAnomalyAlertPreviewInterval)
[00:00:49]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewInterval"]') with timeout=10000
[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.click(mlAnomalyAlertPreviewButton)
[00:00:49]                 │ debg Find.clickByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:49]                 │ debg Find.findByCssSelector('[data-test-subj="mlAnomalyAlertPreviewButton"]') with timeout=10000
[00:00:49]                 │ debg TestSubjects.exists(mlAnomalyAlertPreviewCallout)
[00:00:49]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="mlAnomalyAlertPreviewCallout"]') with timeout=120000
[00:00:52]                 │ debg --- retry.tryForTime error: [data-test-subj="mlAnomalyAlertPreviewCallout"] is not displayed
[00:00:55]                 │ debg --- retry.tryForTime failed again with the same message...
[00:00:58]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:01]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:04]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:07]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:10]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:13]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:16]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:19]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:22]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:25]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:28]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:31]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:34]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:37]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:40]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:43]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:46]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:49]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:52]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:55]                 │ debg --- retry.tryForTime failed again with the same message...
[00:01:58]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:01]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:04]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:07]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:10]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:13]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:16]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:19]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:22]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:25]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:28]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:31]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:35]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:38]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:41]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:44]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:47]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:50]                 │ debg --- retry.tryForTime failed again with the same message...
[00:02:50]                 │ debg --- retry.tryForTime error: expected testSubject(mlAnomalyAlertPreviewCallout) to exist
[00:02:51]                 │ info Taking screenshot "/dev/shm/workspace/parallel/23/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:02:51]                 │ info Current URL is: http://localhost:61231/app/management/insightsAndAlerting/triggersActions/rules
[00:02:51]                 │ info Saving page source to: /dev/shm/workspace/parallel/23/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:02:51]                 └- ✖ fail: ML app anomaly detection alert overview page alert flyout controls can create an anomaly detection alert
[00:02:51]                 │      retry.tryForTime timeout: Error: expected testSubject(mlAnomalyAlertPreviewCallout) to exist
[00:02:51]                 │     at TestSubjects.existOrFail (/dev/shm/workspace/parallel/23/kibana/test/functional/services/common/test_subjects.ts:51:15)
[00:02:51]                 │     at /dev/shm/workspace/parallel/23/kibana/x-pack/test/functional/services/ml/alerting.ts:105:9
[00:02:51]                 │     at runAttempt (/dev/shm/workspace/parallel/23/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:02:51]                 │     at retryForSuccess (/dev/shm/workspace/parallel/23/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:02:51]                 │     at Retry.tryForTime (/dev/shm/workspace/parallel/23/kibana/test/common/services/retry/retry.ts:23:14)
[00:02:51]                 │     at Object.assertPreviewCalloutVisible (/dev/shm/workspace/parallel/23/kibana/x-pack/test/functional/services/ml/alerting.ts:104:7)
[00:02:51]                 │     at Object.clickPreviewButton (/dev/shm/workspace/parallel/23/kibana/x-pack/test/functional/services/ml/alerting.ts:94:7)
[00:02:51]                 │     at Object.checkPreview (/dev/shm/workspace/parallel/23/kibana/x-pack/test/functional/services/ml/alerting.ts:98:7)
[00:02:51]                 │     at Context.<anonymous> (/dev/shm/workspace/parallel/23/kibana/x-pack/test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
[00:02:51]                 │     at Object.apply (/dev/shm/workspace/parallel/23/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:02:51]                 │   Error: retry.tryForTime timeout: Error: expected testSubject(mlAnomalyAlertPreviewCallout) to exist
[00:02:51]                 │       at TestSubjects.existOrFail (/dev/shm/workspace/parallel/23/kibana/test/functional/services/common/test_subjects.ts:51:15)
[00:02:51]                 │       at /dev/shm/workspace/parallel/23/kibana/x-pack/test/functional/services/ml/alerting.ts:105:9
[00:02:51]                 │       at runAttempt (/dev/shm/workspace/parallel/23/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:02:51]                 │       at retryForSuccess (/dev/shm/workspace/parallel/23/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:02:51]                 │       at Retry.tryForTime (/dev/shm/workspace/parallel/23/kibana/test/common/services/retry/retry.ts:23:14)
[00:02:51]                 │       at Object.assertPreviewCalloutVisible (test/functional/services/ml/alerting.ts:104:7)
[00:02:51]                 │       at Object.clickPreviewButton (test/functional/services/ml/alerting.ts:94:7)
[00:02:51]                 │       at Object.checkPreview (test/functional/services/ml/alerting.ts:98:7)
[00:02:51]                 │       at Context.<anonymous> (test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
[00:02:51]                 │       at Object.apply (/dev/shm/workspace/parallel/23/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:02:51]                 │       at onFailure (/dev/shm/workspace/parallel/23/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:02:51]                 │       at retryForSuccess (/dev/shm/workspace/parallel/23/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:02:51]                 │       at Retry.tryForTime (/dev/shm/workspace/parallel/23/kibana/test/common/services/retry/retry.ts:23:14)
[00:02:51]                 │       at Object.assertPreviewCalloutVisible (test/functional/services/ml/alerting.ts:104:7)
[00:02:51]                 │       at Object.clickPreviewButton (test/functional/services/ml/alerting.ts:94:7)
[00:02:51]                 │       at Object.checkPreview (test/functional/services/ml/alerting.ts:98:7)
[00:02:51]                 │       at Context.<anonymous> (test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
[00:02:51]                 │       at Object.apply (/dev/shm/workspace/parallel/23/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:02:51]                 │ 
[00:02:51]                 │ 

Stack Trace

Error: retry.tryForTime timeout: Error: expected testSubject(mlAnomalyAlertPreviewCallout) to exist
    at TestSubjects.existOrFail (/dev/shm/workspace/parallel/23/kibana/test/functional/services/common/test_subjects.ts:51:15)
    at /dev/shm/workspace/parallel/23/kibana/x-pack/test/functional/services/ml/alerting.ts:105:9
    at runAttempt (/dev/shm/workspace/parallel/23/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/23/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at Retry.tryForTime (/dev/shm/workspace/parallel/23/kibana/test/common/services/retry/retry.ts:23:14)
    at Object.assertPreviewCalloutVisible (test/functional/services/ml/alerting.ts:104:7)
    at Object.clickPreviewButton (test/functional/services/ml/alerting.ts:94:7)
    at Object.checkPreview (test/functional/services/ml/alerting.ts:98:7)
    at Context.<anonymous> (test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
    at Object.apply (/dev/shm/workspace/parallel/23/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
    at onFailure (/dev/shm/workspace/parallel/23/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/23/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at Retry.tryForTime (/dev/shm/workspace/parallel/23/kibana/test/common/services/retry/retry.ts:23:14)
    at Object.assertPreviewCalloutVisible (test/functional/services/ml/alerting.ts:104:7)
    at Object.clickPreviewButton (test/functional/services/ml/alerting.ts:94:7)
    at Object.checkPreview (test/functional/services/ml/alerting.ts:98:7)
    at Context.<anonymous> (test/functional_with_es_ssl/apps/ml/alert_flyout.ts:122:9)
    at Object.apply (/dev/shm/workspace/parallel/23/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Kibana Pipeline / general / X-Pack API Integration Tests.x-pack/test/api_integration/apis/management/index_lifecycle_management/policies·js.apis management index lifecycle management policies list should have a default policy to manage the Watcher history indices

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: apis
[00:00:00]           └-> "before all" hook in "apis"
[00:05:57]           └-: management
[00:05:57]             └-> "before all" hook in "management"
[00:06:18]             └-: index lifecycle management
[00:06:18]               └-> "before all" hook in "index lifecycle management"
[00:06:18]               └-: policies
[00:06:18]                 └-> "before all" hook in "policies"
[00:06:18]                 └-: list
[00:06:18]                   └-> "before all" hook for "should have a default policy to manage the Watcher history indices"
[00:06:18]                   └-> should have a default policy to manage the Watcher history indices
[00:06:18]                     └-> "before each" hook: global before each for "should have a default policy to manage the Watcher history indices"
[00:06:18]                     └- ✖ fail: apis management index lifecycle management policies list should have a default policy to manage the Watcher history indices
[00:06:18]                     │       Error: expected { version: 1,
[00:06:18]                     │   modified_date: '2019-04-30T14:30:00.000Z',
[00:06:18]                     │   policy: 
[00:06:18]                     │    { phases: { delete: [Object] },
[00:06:18]                     │      _meta: 
[00:06:18]                     │       { managed: true,
[00:06:18]                     │         description: 'default policy for the watcher history indices' } },
[00:06:18]                     │   in_use_by: 
[00:06:18]                     │    { indices: [],
[00:06:18]                     │      data_streams: [],
[00:06:18]                     │      composable_templates: [ '.watch-history-14' ] },
[00:06:18]                     │   name: 'watch-history-ilm-policy' } to sort of equal { version: 1,
[00:06:18]                     │   modified_date: '2019-04-30T14:30:00.000Z',
[00:06:18]                     │   policy: { phases: { delete: [Object] } },
[00:06:18]                     │   name: 'watch-history-ilm-policy' }
[00:06:18]                     │       + expected - actual
[00:06:18]                     │ 
[00:06:18]                     │        {
[00:06:18]                     │       -  "in_use_by": {
[00:06:18]                     │       -    "composable_templates": [
[00:06:18]                     │       -      ".watch-history-14"
[00:06:18]                     │       -    ]
[00:06:18]                     │       -    "data_streams": []
[00:06:18]                     │       -    "indices": []
[00:06:18]                     │       -  }
[00:06:18]                     │          "modified_date": "2019-04-30T14:30:00.000Z"
[00:06:18]                     │          "name": "watch-history-ilm-policy"
[00:06:18]                     │          "policy": {
[00:06:18]                     │       -    "_meta": {
[00:06:18]                     │       -      "description": "default policy for the watcher history indices"
[00:06:18]                     │       -      "managed": true
[00:06:18]                     │       -    }
[00:06:18]                     │            "phases": {
[00:06:18]                     │              "delete": {
[00:06:18]                     │                "actions": {
[00:06:18]                     │                  "delete": {
[00:06:18]                     │       
[00:06:18]                     │       at Assertion.assert (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:100:11)
[00:06:18]                     │       at Assertion.eql (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:244:8)
[00:06:18]                     │       at Context.<anonymous> (test/api_integration/apis/management/index_lifecycle_management/policies.js:47:27)
[00:06:18]                     │       at Object.apply (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:06:18]                     │ 
[00:06:18]                     │ 

Stack Trace

Error: expected { version: 1,
  modified_date: '2019-04-30T14:30:00.000Z',
  policy: 
   { phases: { delete: [Object] },
     _meta: 
      { managed: true,
        description: 'default policy for the watcher history indices' } },
  in_use_by: 
   { indices: [],
     data_streams: [],
     composable_templates: [ '.watch-history-14' ] },
  name: 'watch-history-ilm-policy' } to sort of equal { version: 1,
  modified_date: '2019-04-30T14:30:00.000Z',
  policy: { phases: { delete: [Object] } },
  name: 'watch-history-ilm-policy' }
    at Assertion.assert (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/expect/expect.js:244:8)
    at Context.<anonymous> (test/api_integration/apis/management/index_lifecycle_management/policies.js:47:27)
    at Object.apply (/dev/shm/workspace/parallel/1/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16) {
  actual: '{\n' +
    '  "in_use_by": {\n' +
    '    "composable_templates": [\n' +
    '      ".watch-history-14"\n' +
    '    ]\n' +
    '    "data_streams": []\n' +
    '    "indices": []\n' +
    '  }\n' +
    '  "modified_date": "2019-04-30T14:30:00.000Z"\n' +
    '  "name": "watch-history-ilm-policy"\n' +
    '  "policy": {\n' +
    '    "_meta": {\n' +
    '      "description": "default policy for the watcher history indices"\n' +
    '      "managed": true\n' +
    '    }\n' +
    '    "phases": {\n' +
    '      "delete": {\n' +
    '        "actions": {\n' +
    '          "delete": {\n' +
    '            "delete_searchable_snapshot": true\n' +
    '          }\n' +
    '        }\n' +
    '        "min_age": "7d"\n' +
    '      }\n' +
    '    }\n' +
    '  }\n' +
    '  "version": 1\n' +
    '}',
  expected: '{\n' +
    '  "modified_date": "2019-04-30T14:30:00.000Z"\n' +
    '  "name": "watch-history-ilm-policy"\n' +
    '  "policy": {\n' +
    '    "phases": {\n' +
    '      "delete": {\n' +
    '        "actions": {\n' +
    '          "delete": {\n' +
    '            "delete_searchable_snapshot": true\n' +
    '          }\n' +
    '        }\n' +
    '        "min_age": "7d"\n' +
    '      }\n' +
    '    }\n' +
    '  }\n' +
    '  "version": 1\n' +
    '}',
  showDiff: true
}

and 5 more failures, only showing the first 3.

Metrics [docs]

‼️ ERROR: metrics for 4831826 were not reported

History

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-backport Deprecated: Automatically backport this PR after it's merged release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc v7.14.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants