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] [Security Solution][Detections] Convert EQL validation to use search strategy (#79538) #79806

Merged
merged 1 commit into from
Oct 7, 2020

Conversation

rylnd
Copy link
Contributor

@rylnd rylnd commented Oct 7, 2020

Backports the following commits to 7.x:

…strategy (elastic#79538)

* Rename types from the top-level plugin

These are the same types with a different name. However, the benefit is
that they exist in a non-restricted path (the top level of the plugin).

* Convert our validation function to use the EQL search strategy

Rather than calling our custom EQL validation endpoint, we can instead
leverage the EQL search strategy. The downside is that we have to move
our response parsing logic to the frontend, but the benefit is that
there's no backend to maintain.

* Remove server code related to our EQL validation endpoint

We're keeping our io-ts schemas for now since they're still being used
to type the I/O of our client function.

* Add the data contract to our KibanaServices

I'm not aware of a way to pass react context to the form lib validator
functions, so for now we have to pass this the ugly way :(

* Remove io-ts types corresponding to our defunct validation endpoint

We were keeping these around for the types, but they're so simple that
it's really not worth the overhead. The tests are similarly for
functionality that is no longer used, so no hard feelings there.

* Ensure that our validation does not bother generating hits

We only care about the query's validity, so we can tell the response
handler to do less work here.

* Pass transport options when retrieving an existing search

Without passing transport options to .get, a query with an `ignore`
would succeed if it completed in the `waitForCompletionTimeout` window,
but fail (with the ignored error) on the subsequent request if it became
async.

* Use constant for our strategy key

* Export search strategy constants for client consumption

Common values cannot be consumed directly by client code (compilation
error), so we need to re-export them from data_enhanced's public module.
@rylnd rylnd added the backport label Oct 7, 2020
@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

Firefox UI Functional Tests.test/functional/apps/visualize/_tsvb_chart·ts.visualize app visual builder browser history changes should activate previous/next chart tab and panel config

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:13:23]         └-: visualize app
[00:13:23]           └-> "before all" hook
[00:13:23]           └-> "before all" hook
[00:13:23]             │ debg Starting visualize before method
[00:13:23]             │ info [logstash_functional] Loading "mappings.json"
[00:13:23]             │ info [logstash_functional] Loading "data.json.gz"
[00:13:23]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:13:23]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]]).
[00:13:23]             │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:13:23]             │ 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:13:23]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:13:23]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]]).
[00:13:23]             │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:13:23]             │ 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:13:23]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:13:23]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]]).
[00:13:23]             │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:13:23]             │ 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:13:33]             │ info progress: 11694
[00:13:35]             │ info [logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:13:35]             │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:13:35]             │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:13:35]             │ info [long_window_logstash] Loading "mappings.json"
[00:13:35]             │ info [long_window_logstash] Loading "data.json.gz"
[00:13:35]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] [long-window-logstash-0] creating index, cause [api], templates [], shards [1]/[0]
[00:13:35]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[long-window-logstash-0][0]]]).
[00:13:35]             │ info [long_window_logstash] Created index "long-window-logstash-0"
[00:13:35]             │ 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:13:45]             │ info progress: 10466
[00:13:49]             │ info [long_window_logstash] Indexed 14005 docs into "long-window-logstash-0"
[00:13:49]             │ info [visualize] Loading "mappings.json"
[00:13:49]             │ info [visualize] Loading "data.json"
[00:13:49]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] [.kibana_1/4TCvEw53SEOY8NA27ayeGg] deleting index
[00:13:49]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] [.kibana_2/1Qo7mJx0QuyzkUNGDHGQCA] deleting index
[00:13:49]             │ info [visualize] Deleted existing index [".kibana_2",".kibana_1"]
[00:13:49]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:13:49]             │ info [visualize] Created index ".kibana"
[00:13:49]             │ debg [visualize] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:13:49]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] [.kibana/i4wP6k7KTiaSCIWCZGHxHA] update_mapping [_doc]
[00:13:49]             │ info [visualize] Indexed 12 docs into ".kibana"
[00:13:49]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] [.kibana/i4wP6k7KTiaSCIWCZGHxHA] update_mapping [_doc]
[00:13:49]             │ debg Migrating saved objects
[00:13:49]             │ proc [kibana]   log   [02:20:54.838] [info][savedobjects-service] Creating index .kibana_2.
[00:13:49]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:13:49]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] updating number_of_replicas to [0] for indices [.kibana_2]
[00:13:49]             │ proc [kibana]   log   [02:20:54.886] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:13:49]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:13:49]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] updating number_of_replicas to [0] for indices [.kibana_1]
[00:13:50]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] 11085 finished with response BulkByScrollResponse[took=38.2ms,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:13:50]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] [.kibana/i4wP6k7KTiaSCIWCZGHxHA] deleting index
[00:13:50]             │ proc [kibana]   log   [02:20:55.231] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:13:50]             │ proc [kibana]   log   [02:20:55.248] [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:13:50]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] [.kibana_2/-StVKY1YR1akqibjSxqz-w] update_mapping [_doc]
[00:13:50]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] [.kibana_2/-StVKY1YR1akqibjSxqz-w] update_mapping [_doc]
[00:13:50]             │ proc [kibana]   log   [02:20:55.353] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:13:50]             │ proc [kibana]   log   [02:20:55.395] [info][savedobjects-service] Finished in 559ms.
[00:13:50]             │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:13:50]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1602035242529385419] [.kibana_2/-StVKY1YR1akqibjSxqz-w] update_mapping [_doc]
[00:13:51]             │ debg replacing kibana config doc: {"defaultIndex":"logstash-*","format:bytes:defaultPattern":"0,0.[000]b"}
[00:14:21]           └-: 
[00:14:21]             └-> "before all" hook
[00:14:21]             └-: visual builder
[00:14:21]               └-> "before all" hook
[00:18:45]               └-: browser history changes
[00:18:45]                 └-> "before all" hook
[00:18:45]                 └-> should activate previous/next chart tab and panel config
[00:18:45]                   └-> "before each" hook: global before each
[00:18:45]                   └-> "before each" hook
[00:18:45]                     │ debg navigating to visualize url: http://localhost:61191/app/visualize#/
[00:18:45]                     │ debg navigate to: http://localhost:61191/app/visualize#/
[00:18:45]                     │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:18:45]                     │ debg ... sleep(700) start
[00:18:46]                     │ debg ... sleep(700) end
[00:18:46]                     │ debg returned from get, calling refresh
[00:18:46]                     │ERROR browser[error] (new TypeError("NetworkError when attempting to fetch resource.", "http://localhost:61191/35592/bundles/core/core.entry.js", 6))
[00:18:46]                     │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:18:47]                     │ debg currentUrl = http://localhost:61191/app/visualize#/
[00:18:47]                     │          appUrl = http://localhost:61191/app/visualize#/
[00:18:47]                     │ debg TestSubjects.find(kibanaChrome)
[00:18:47]                     │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:18:48]                     │ debg ... sleep(501) start
[00:18:48]                     │ debg ... sleep(501) end
[00:18:48]                     │ debg in navigateTo url = http://localhost:61191/app/visualize#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:18:48]                     │ debg --- retry.try error: URL changed, waiting for it to settle
[00:18:49]                     │ debg ... sleep(501) start
[00:18:49]                     │ debg ... sleep(501) end
[00:18:49]                     │ debg in navigateTo url = http://localhost:61191/app/visualize#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:18:49]                     │ debg TestSubjects.exists(statusPageContainer)
[00:18:49]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:18:52]                     │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:18:52]                     │ debg isGlobalLoadingIndicatorVisible
[00:18:52]                     │ debg TestSubjects.exists(globalLoadingIndicator)
[00:18:52]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:18:54]                     │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:18:54]                     │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:18:54]                     │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:18:54]                     │ debg TestSubjects.exists(newItemButton)
[00:18:54]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:18:55]                     │ debg TestSubjects.click(newItemButton)
[00:18:55]                     │ debg Find.clickByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:18:55]                     │ debg Find.findByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:18:55]                     │ debg TestSubjects.find(visNewDialogTypes)
[00:18:55]                     │ debg Find.findByCssSelector('[data-test-subj="visNewDialogTypes"]') with timeout=10000
[00:18:55]                     │ debg TestSubjects.click(visType-metrics)
[00:18:55]                     │ debg Find.clickByCssSelector('[data-test-subj="visType-metrics"]') with timeout=10000
[00:18:55]                     │ debg Find.findByCssSelector('[data-test-subj="visType-metrics"]') with timeout=10000
[00:18:56]                     │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:18:56]                     │ debg isGlobalLoadingIndicatorVisible
[00:18:56]                     │ debg TestSubjects.exists(globalLoadingIndicator)
[00:18:56]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:18:57]                     │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:18:57]                     │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:18:58]                     │ debg TestSubjects.exists(tvbVisEditor)
[00:18:58]                     │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="tvbVisEditor"]') with timeout=20000
[00:18:58]                   │ debg navigateToActualUrl http://localhost:61191/app/visualize#create?type=metrics
[00:18:58]                   │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:18:59]                   │ debg currentUrl = http://localhost:61191/app/visualize#create?type=metrics
[00:18:59]                   │          appUrl = http://localhost:61191/app/visualize#create?type=metrics
[00:18:59]                   │ debg TestSubjects.find(kibanaChrome)
[00:18:59]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:19:00]                   │ debg Wait for initializing TSVB editor
[00:19:00]                   │ debg TestSubjects.exists(tvbVisEditor)
[00:19:00]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="tvbVisEditor"]') with timeout=20000
[00:19:01]                   │ debg Set absolute time range from "Sep 19, 2015 @ 06:31:44.000" to "Sep 22, 2015 @ 18:31:44.000"
[00:19:01]                   │ debg Setting absolute range to Sep 19, 2015 @ 06:31:44.000 to Sep 22, 2015 @ 18:31:44.000
[00:19:01]                   │ debg TestSubjects.exists(superDatePickerToggleQuickMenuButton)
[00:19:01]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerToggleQuickMenuButton"]') with timeout=20000
[00:19:01]                   │ debg TestSubjects.exists(superDatePickerShowDatesButton)
[00:19:01]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=2500
[00:19:01]                   │ debg TestSubjects.click(superDatePickerShowDatesButton)
[00:19:01]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:19:01]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerShowDatesButton"]') with timeout=10000
[00:19:01]                   │ debg TestSubjects.exists(superDatePickerstartDatePopoverButton)
[00:19:01]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=2500
[00:19:01]                   │ debg TestSubjects.click(superDatePickerendDatePopoverButton)
[00:19:01]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:19:01]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerendDatePopoverButton"]') with timeout=10000
[00:19:02]                   │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:19:02]                   │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:19:02]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:19:02]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:19:02]                   │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:19:02]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:19:02]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:19:03]                   │ debg TestSubjects.find(superDatePickerAbsoluteDateInput)
[00:19:03]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:19:04]                   │ debg TestSubjects.click(superDatePickerstartDatePopoverButton)
[00:19:04]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:19:04]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerstartDatePopoverButton"]') with timeout=10000
[00:19:05]                   │ debg Find.waitForElementStale with timeout=10000
[00:19:05]                   │ debg Find.findByCssSelector('div.euiPopover__panel-isOpen') with timeout=10000
[00:19:05]                   │ debg TestSubjects.click(superDatePickerAbsoluteTab)
[00:19:05]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:19:05]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteTab"]') with timeout=10000
[00:19:05]                   │ debg TestSubjects.click(superDatePickerAbsoluteDateInput)
[00:19:05]                   │ debg Find.clickByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:19:05]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:19:05]                   │ debg TestSubjects.find(superDatePickerAbsoluteDateInput)
[00:19:05]                   │ debg Find.findByCssSelector('[data-test-subj="superDatePickerAbsoluteDateInput"]') with timeout=10000
[00:19:06]                   │ debg TestSubjects.exists(superDatePickerApplyTimeButton)
[00:19:06]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="superDatePickerApplyTimeButton"]') with timeout=2500
[00:19:08]                   │ debg --- retry.tryForTime error: [data-test-subj="superDatePickerApplyTimeButton"] is not displayed
[00:19:09]                   │ debg TestSubjects.click(querySubmitButton)
[00:19:09]                   │ debg Find.clickByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:19:09]                   │ debg Find.findByCssSelector('[data-test-subj="querySubmitButton"]') with timeout=10000
[00:19:09]                   │ debg Find.waitForElementStale with timeout=10000
[00:19:09]                   │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:19:09]                   │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:19:09]                   │ debg ... sleep(2000) start
[00:19:11]                   │ debg ... sleep(2000) end
[00:19:11]                   │ debg Click metric chart
[00:19:11]                   │ debg TestSubjects.find(metricTsvbTypeBtn)
[00:19:11]                   │ debg Find.findByCssSelector('[data-test-subj="metricTsvbTypeBtn"]') with timeout=10000
[00:19:11]                   │ debg TestSubjects.exists(tsvbMetricValue)
[00:19:11]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="tsvbMetricValue"]') with timeout=20000
[00:19:12]                   │ debg TestSubjects.find(metricTsvbTypeBtn)
[00:19:12]                   │ debg Find.findByCssSelector('[data-test-subj="metricTsvbTypeBtn"]') with timeout=10000
[00:19:12]                   │ debg Click Top N chart
[00:19:12]                   │ debg TestSubjects.click(top_nTsvbTypeBtn)
[00:19:12]                   │ debg Find.clickByCssSelector('[data-test-subj="top_nTsvbTypeBtn"]') with timeout=10000
[00:19:12]                   │ debg Find.findByCssSelector('[data-test-subj="top_nTsvbTypeBtn"]') with timeout=10000
[00:19:12]                   │ debg TestSubjects.exists(tvbVisTopNTable)
[00:19:12]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="tvbVisTopNTable"]') with timeout=20000
[00:19:13]                   │ debg TestSubjects.find(top_nTsvbTypeBtn)
[00:19:13]                   │ debg Find.findByCssSelector('[data-test-subj="top_nTsvbTypeBtn"]') with timeout=10000
[00:19:13]                   │ debg Go back in browser history
[00:19:13]                   │ debg Check metric chart and panel config is rendered
[00:19:13]                   │ debg TestSubjects.exists(tsvbMetricValue)
[00:19:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="tsvbMetricValue"]') with timeout=20000
[00:19:13]                   │ debg TestSubjects.find(metricTsvbTypeBtn)
[00:19:13]                   │ debg Find.findByCssSelector('[data-test-subj="metricTsvbTypeBtn"]') with timeout=10000
[00:19:13]                   │ debg TestSubjects.exists(tvbPanelConfig__metric)
[00:19:13]                   │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="tvbPanelConfig__metric"]') with timeout=120000
[00:19:14]                   │ debg Go back in browser history
[00:19:14]                   │ debg Check timeseries chart and panel config is rendered
[00:19:14]                   │ debg Find.existsByCssSelector('.tvbVisTimeSeries') with timeout=2500
[00:19:17]                   │ info Taking screenshot "/dev/shm/workspace/parallel/19/kibana/test/functional/screenshots/failure/visualize app  visual builder browser history changes should activate previous_next chart tab and panel config.png"
[00:19:18]                   │ info Current URL is: http://localhost:61191/app/visualize#/create?type=metrics&_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:%272015-09-19T06:31:44.000Z%27,to:%272015-09-22T18:31:44.000Z%27))&_a=(filters:!(),linked:!f,query:(language:kuery,query:%27%27),uiState:(),vis:(aggs:!(),params:(axis_formatter:number,axis_position:left,axis_scale:normal,id:%2761ca57f0-469d-11e7-af02-69e470af7417%27,index_pattern:%27%27,interval:%27%27,series:!((axis_position:right,chart_type:line,color:%2368BC00,fill:0.5,formatter:number,id:%2761ca57f1-469d-11e7-af02-69e470af7417%27,line_width:1,metrics:!((id:%2761ca57f2-469d-11e7-af02-69e470af7417%27,type:count)),point_size:1,separate_axis:0,split_color_mode:kibana,split_mode:everything,stacked:none)),show_grid:1,show_legend:1,time_field:%27%27,tooltip_mode:show_all,type:timeseries),title:%27%27,type:metrics))
[00:19:18]                   │ info Saving page source to: /dev/shm/workspace/parallel/19/kibana/test/functional/failure_debug/html/visualize app  visual builder browser history changes should activate previous_next chart tab and panel config.html
[00:19:18]                   └- ✖ fail: visualize app  visual builder browser history changes should activate previous/next chart tab and panel config
[00:19:18]                   │      Error: TimeSeries chart is not loaded
[00:19:18]                   │       at VisualBuilderPage.checkTimeSeriesChartIsPresent (test/functional/page_objects/visual_builder_page.ts:90:15)
[00:19:18]                   │       at process._tickCallback (internal/process/next_tick.js:68:7)
[00:19:18]                   │ 
[00:19:18]                   │ 

Stack Trace

Error: TimeSeries chart is not loaded
    at VisualBuilderPage.checkTimeSeriesChartIsPresent (test/functional/page_objects/visual_builder_page.ts:90:15)
    at process._tickCallback (internal/process/next_tick.js:68:7)

Metrics [docs]

@kbn/optimizer bundle module count

id before after diff
securitySolution 2040 2043 +3

async chunks size

id before after diff
securitySolution 10.5MB 10.5MB +1.4KB

distributable file count

id before after diff
default 48120 48118 -2

page load bundle size

id before after diff
dataEnhanced 34.4KB 34.6KB +228.0B
securitySolution 593.1KB 593.2KB +70.0B
total +298.0B

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

@spong spong merged commit 3956cbd into elastic:7.x Oct 7, 2020
@rylnd rylnd deleted the backport/7.x/pr-79538 branch October 7, 2020 03:37
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.

3 participants