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

[7.x] Migrate service settings test to jest (#70992) #71026

Merged
merged 1 commit into from
Jul 8, 2020

Conversation

thomasneirynck
Copy link
Contributor

Backports the following commits to 7.x:

Karma tests were no longer being run after NP-migration.
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / kibana-oss-agent / Firefox UI Functional Tests.test/functional/apps/visualize/_tsvb_chart·ts.visualize app visual builder "before each" hook for "should be able to switch between index patterns"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:12:26]         └-: visualize app
[00:12:26]           └-> "before all" hook
[00:12:26]           └-> "before all" hook
[00:12:26]             │ debg Starting visualize before method
[00:12:26]             │ info [logstash_functional] Loading "mappings.json"
[00:12:26]             │ info [logstash_functional] Loading "data.json.gz"
[00:12:26]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:12:26]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]]).
[00:12:26]             │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:12:26]             │ debg [logstash_functional] "logstash-2015.09.22" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:12:26]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:12:26]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]]).
[00:12:26]             │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:12:26]             │ debg [logstash_functional] "logstash-2015.09.20" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:12:26]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:12:27]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]]).
[00:12:27]             │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:12:27]             │ debg [logstash_functional] "logstash-2015.09.21" settings {"index":{"analysis":{"analyzer":{"url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:12:36]             │ info progress: 11738
[00:12:38]             │ info [logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:12:38]             │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:12:38]             │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:12:39]             │ info [long_window_logstash] Loading "mappings.json"
[00:12:39]             │ info [long_window_logstash] Loading "data.json.gz"
[00:12:39]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] [long-window-logstash-0] creating index, cause [api], templates [], shards [1]/[0]
[00:12:39]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[long-window-logstash-0][0]]]).
[00:12:39]             │ info [long_window_logstash] Created index "long-window-logstash-0"
[00:12:39]             │ debg [long_window_logstash] "long-window-logstash-0" settings {"index":{"analysis":{"analyzer":{"makelogs_url":{"max_token_length":"1000","tokenizer":"uax_url_email","type":"standard"}}},"number_of_replicas":"0","number_of_shards":"1"}}
[00:12:49]             │ info progress: 10464
[00:12:52]             │ info [long_window_logstash] Indexed 14005 docs into "long-window-logstash-0"
[00:12:52]             │ info [visualize] Loading "mappings.json"
[00:12:52]             │ info [visualize] Loading "data.json"
[00:12:52]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] [.kibana_1/3Kh7b2dESFi7oBhtISGlqA] deleting index
[00:12:52]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] [.kibana_2/Hzc7DA67R9igRbqFyOMOMA] deleting index
[00:12:52]             │ info [visualize] Deleted existing index [".kibana_2",".kibana_1"]
[00:12:52]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:12:52]             │ info [visualize] Created index ".kibana"
[00:12:52]             │ debg [visualize] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:12:52]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] [.kibana/oPc9hDjSSzaPwn1L7Pna_A] update_mapping [_doc]
[00:12:52]             │ info [visualize] Indexed 12 docs into ".kibana"
[00:12:52]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] [.kibana/oPc9hDjSSzaPwn1L7Pna_A] update_mapping [_doc]
[00:12:52]             │ debg Migrating saved objects
[00:12:52]             │ proc [kibana]   log   [00:43:42.347] [info][savedobjects-service] Creating index .kibana_2.
[00:12:52]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:12:52]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] updating number_of_replicas to [0] for indices [.kibana_2]
[00:12:53]             │ proc [kibana]   log   [00:43:42.401] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:12:53]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:12:53]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] updating number_of_replicas to [0] for indices [.kibana_1]
[00:12:53]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] 9099 finished with response BulkByScrollResponse[took=31ms,timed_out=false,sliceId=null,updated=0,created=12,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:12:53]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] [.kibana/oPc9hDjSSzaPwn1L7Pna_A] deleting index
[00:12:53]             │ proc [kibana]   log   [00:43:42.741] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:12:53]             │ proc [kibana]   log   [00:43:42.757] [error][savedobjects-service] Error: Unable to migrate the corrupt Saved Object document index-pattern:test_index*. To prevent Kibana from performing a migration on every restart, please delete or fix this document by ensuring that the namespace and type in the document's id matches the values in the namespace and type fields.
[00:12:53]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] [.kibana_2/ms1CpIn7TayVN7Ud-UuU9g] update_mapping [_doc]
[00:12:53]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] [.kibana_2/ms1CpIn7TayVN7Ud-UuU9g] update_mapping [_doc]
[00:12:53]             │ proc [kibana]   log   [00:43:42.832] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:12:53]             │ proc [kibana]   log   [00:43:42.874] [info][savedobjects-service] Finished in 529ms.
[00:12:53]             │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:12:53]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xl-1594167247019179094] [.kibana_2/ms1CpIn7TayVN7Ud-UuU9g] update_mapping [_doc]
[00:12:55]             │ debg replacing kibana config doc: {"defaultIndex":"logstash-*","format:bytes:defaultPattern":"0,0.[000]b"}
[00:13:28]           └-: 
[00:13:28]             └-> "before all" hook
[00:13:28]             └-: visual builder
[00:13:28]               └-> "before all" hook

Stack Trace

Error: retry.try timeout: Error: retry.try timeout: TimeoutError: Waiting for element to be located By(css selector, [data-test-subj="createVisualizationPromptButton"])
Wait timed out after 10009ms
    at /dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/webdriver.js:842:17
    at process._tickCallback (internal/process/next_tick.js:68:7)
    at onFailure (test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (test/common/services/retry/retry_for_success.ts:68:13)
    at onFailure (test/common/services/retry/retry_for_success.ts:28:9)
    at retryForSuccess (test/common/services/retry/retry_for_success.ts:68:13)

Build metrics

✅ unchanged

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

@thomasneirynck thomasneirynck merged commit 6bbc857 into elastic:7.x Jul 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants