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

[Security Solution][Case] Create comment types #82715

Merged
merged 10 commits into from Nov 20, 2020

Conversation

cnasikas
Copy link
Member

@cnasikas cnasikas commented Nov 5, 2020

Summary

This PR introduces comments' types. Specifically:

  1. The user type.
  2. The alert type.

This will allow alerts or other features to be attached to a case.

Dev docs

To create or update a comment you need to provide the type of comment along with all needed attributes of each type. Specifically:

Property Description Type
type The type of the comment user | alert
comment The comment. Valid only when type is user. string
alertId The alert ID. Valid only when the type is alert string
index The index where the alert is saved. Valid only when the type is alert string

Note: Only alerts (signals) of Security Solution are supported.

Checklist

Delete any items that are not applicable to this PR.

For maintainers

@cnasikas cnasikas added release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. v8.0.0 v7.11.0 Team:Threat Hunting Security Solution Threat Hunting Team Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. labels Nov 5, 2020
@cnasikas cnasikas requested review from a team as code owners November 5, 2020 13:45
@cnasikas cnasikas self-assigned this Nov 5, 2020
@cnasikas
Copy link
Member Author

cnasikas commented Nov 7, 2020

@elasticmachine merge upstream

1 similar comment
@cnasikas
Copy link
Member Author

cnasikas commented Nov 9, 2020

@elasticmachine merge upstream

@cnasikas cnasikas force-pushed the case_change_comments branch 3 times, most recently from 309cb53 to 907387c Compare November 19, 2020 20:25
@cnasikas cnasikas changed the title [Security Solution][Case] Add savedObjectId to comment [Security Solution][Case] Create comment types Nov 19, 2020
@kibanamachine
Copy link
Contributor

kibanamachine commented Jan 11, 2021

💔 Build Failed

Failed CI Steps


Test Failures

Firefox UI Functional Tests.test/functional/apps/dashboard/dashboard_save·js.dashboard app using legacy data dashboard save warns on duplicate name for new dashboard

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:16]         └-: dashboard app
[00:00:16]           └-> "before all" hook
[00:08:23]           └-: using legacy data
[00:08:23]             └-> "before all" hook
[00:08:23]             └-> "before all" hook: loadLogstash
[00:08:23]               │ info [logstash_functional] Loading "mappings.json"
[00:08:23]               │ info [logstash_functional] Loading "data.json.gz"
[00:08:23]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:08:23]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.22][0]]"
[00:08:23]               │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:08: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:08:23]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:08:23]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.20][0]]"
[00:08:23]               │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:08: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:08:23]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:08:23]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.21][0]]"
[00:08:23]               │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:08: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:08:33]               │ info progress: 12634
[00:08:34]               │ info [logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:08:34]               │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:08:34]               │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:08:35]             └-: dashboard save
[00:08:35]               └-> "before all" hook
[00:08:35]               └-> "before all" hook
[00:08:35]                 │ debg load kibana index with visualizations and log data
[00:08:35]                 │ info [dashboard/legacy] Loading "mappings.json"
[00:08:35]                 │ info [dashboard/legacy] Loading "data.json.gz"
[00:08:35]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana_1/I7kkRrAESoOsV3spPa9I7g] deleting index
[00:08:35]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana_2/aHw4hyydQRa0PYSSjKeaNw] deleting index
[00:08:35]                 │ info [dashboard/legacy] Deleted existing index [".kibana_2",".kibana_1"]
[00:08:35]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:08:35]                 │ info [dashboard/legacy] Created index ".kibana"
[00:08:35]                 │ debg [dashboard/legacy] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:08:35]                 │ info [dashboard/legacy] Indexed 9 docs into ".kibana"
[00:08:35]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana/7pBz1bz4QyaEFMsiB2S9hw] update_mapping [_doc]
[00:08:35]                 │ debg Migrating saved objects
[00:08:35]                 │ proc [kibana]   log   [11:11:39.504] [info][savedobjects-service] Creating index .kibana_2.
[00:08:35]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:08:35]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] updating number_of_replicas to [0] for indices [.kibana_2]
[00:08:35]                 │ proc [kibana]   log   [11:11:39.569] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:08:35]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:08:35]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] updating number_of_replicas to [0] for indices [.kibana_1]
[00:08:35]                 │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1]
[00:08:35]                 │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] updating number_of_replicas to [0] for indices [.tasks]
[00:08:35]                 │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] 7501 finished with response BulkByScrollResponse[took=54.8ms,timed_out=false,sliceId=null,updated=0,created=9,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:08:35]                 │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana/7pBz1bz4QyaEFMsiB2S9hw] deleting index
[00:08:35]                 │ proc [kibana]   log   [11:11:39.967] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:08:35]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana_2/GGIZnH71Ruy4uo0DQWsUrQ] update_mapping [_doc]
[00:08:35]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana_2/GGIZnH71Ruy4uo0DQWsUrQ] update_mapping [_doc]
[00:08:35]                 │ proc [kibana]   log   [11:11:40.094] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:08:35]                 │ proc [kibana]   log   [11:11:40.140] [info][savedobjects-service] Finished in 638ms.
[00:08:35]                 │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:08:35]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana_2/GGIZnH71Ruy4uo0DQWsUrQ] update_mapping [_doc]
[00:08:37]                 │ debg replacing kibana config doc: {"defaultIndex":"logstash-*"}
[00:08:38]                 │ debg navigating to dashboard url: http://localhost:61181/app/dashboards#/list
[00:08:38]                 │ debg navigate to: http://localhost:61181/app/dashboards#/list
[00:08:38]                 │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:08:38]                 │ debg ... sleep(700) start
[00:08:39]                 │ debg ... sleep(700) end
[00:08:39]                 │ debg returned from get, calling refresh
[00:08:40]                 │ debg browser[log] "^ A single error about an inline script not firing due to content security policy is expected!"
[00:08:41]                 │ debg currentUrl = http://localhost:61181/app/dashboards#/list
[00:08:41]                 │          appUrl = http://localhost:61181/app/dashboards#/list
[00:08:41]                 │ debg TestSubjects.find(kibanaChrome)
[00:08:41]                 │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:08:41]                 │ debg ... sleep(501) start
[00:08:42]                 │ debg ... sleep(501) end
[00:08:42]                 │ debg in navigateTo url = http://localhost:61181/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:08:42]                 │ debg --- retry.try error: URL changed, waiting for it to settle
[00:08:42]                 │ debg ... sleep(501) start
[00:08:43]                 │ debg ... sleep(501) end
[00:08:43]                 │ debg in navigateTo url = http://localhost:61181/app/dashboards#/list?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))
[00:08:43]                 │ debg TestSubjects.exists(statusPageContainer)
[00:08:43]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:08:45]                 │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:08:46]               └-> warns on duplicate name for new dashboard
[00:08:46]                 └-> "before each" hook: global before each
[00:08:46]                 │ debg TestSubjects.exists(newItemButton)
[00:08:46]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:08:48]                 │ debg --- retry.tryForTime error: [data-test-subj="newItemButton"] is not displayed
[00:08:51]                 │ debg --- retry.tryForTime failed again with the same message...
[00:08:54]                 │ debg --- retry.tryForTime failed again with the same message...
[00:08:57]                 │ debg --- retry.tryForTime failed again with the same message...
[00:08:58]                 │ debg TestSubjects.click(createDashboardPromptButton)
[00:08:58]                 │ debg Find.clickByCssSelector('[data-test-subj="createDashboardPromptButton"]') with timeout=10000
[00:08:58]                 │ debg Find.findByCssSelector('[data-test-subj="createDashboardPromptButton"]') with timeout=10000
[00:08:58]                 │ debg waitForRenderComplete
[00:08:58]                 │ debg in getSharedItemsCount
[00:08:58]                 │ debg Find.findByCssSelector('[data-shared-items-count]') with timeout=10000
[00:08:58]                 │ debg Renderable.waitForRender for 0 elements
[00:08:58]                 │ debg Find.allByCssSelector('[data-render-complete="true"]') with timeout=10000
[00:09:08]                 │ debg Find.allByCssSelector('[data-loading]') with timeout=1000
[00:09:09]                 │ debg TestSubjects.click(dashboardSaveMenuItem)
[00:09:09]                 │ debg Find.clickByCssSelector('[data-test-subj="dashboardSaveMenuItem"]') with timeout=10000
[00:09:09]                 │ debg Find.findByCssSelector('[data-test-subj="dashboardSaveMenuItem"]') with timeout=10000
[00:09:10]                 │ debg TestSubjects.find(savedObjectSaveModal)
[00:09:10]                 │ debg Find.findByCssSelector('[data-test-subj="savedObjectSaveModal"]') with timeout=10000
[00:09:10]                 │ debg entering new title
[00:09:10]                 │ debg TestSubjects.setValue(savedObjectTitle, Dashboard Save Test)
[00:09:10]                 │ debg TestSubjects.click(savedObjectTitle)
[00:09:10]                 │ debg Find.clickByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:09:10]                 │ debg Find.findByCssSelector('[data-test-subj="savedObjectTitle"]') with timeout=10000
[00:09:10]                 │ debg DashboardPage.clickSave
[00:09:10]                 │ debg TestSubjects.click(confirmSaveSavedObjectButton)
[00:09:10]                 │ debg Find.clickByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:09:10]                 │ debg Find.findByCssSelector('[data-test-subj="confirmSaveSavedObjectButton"]') with timeout=10000
[00:09:10]                 │ debg Find.waitForElementStale with timeout=10000
[00:09:10]                 │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana_2/GGIZnH71Ruy4uo0DQWsUrQ] update_mapping [_doc]
[00:09:11]                 │ debg TestSubjects.exists(saveDashboardSuccess)
[00:09:11]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="saveDashboardSuccess"]') with timeout=120000
[00:09:11]                 │ debg Find.findByCssSelector('.euiToast') with timeout=20000
[00:09:12]                 │ debg Find.findByCssSelector('.euiToastHeader__title') with timeout=10000
[00:09:12]                 │ debg Find.clickByCssSelector('.euiToast__closeButton') with timeout=10000
[00:09:12]                 │ debg Find.findByCssSelector('.euiToast__closeButton') with timeout=10000
[00:09:12]                 │ debg isGlobalLoadingIndicatorVisible
[00:09:12]                 │ debg TestSubjects.exists(globalLoadingIndicator)
[00:09:12]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="globalLoadingIndicator"]') with timeout=1500
[00:09:14]                 │ debg --- retry.tryForTime error: [data-test-subj="globalLoadingIndicator"] is not displayed
[00:09:14]                 │ debg TestSubjects.exists(globalLoadingIndicator-hidden)
[00:09:14]                 │ debg Find.existsByCssSelector('[data-test-subj="globalLoadingIndicator-hidden"]') with timeout=100000
[00:09:14]                 │ debg Waiting for save modal to close
[00:09:14]                 │ debg TestSubjects.exists(savedObjectSaveModal)
[00:09:14]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="savedObjectSaveModal"]') with timeout=2500
[00:09:17]                 │ debg --- retry.tryForTime error: [data-test-subj="savedObjectSaveModal"] is not displayed
[00:09:17]                 │ debg TestSubjects.missingOrFail(titleDupicateWarnMsg)
[00:09:17]                 │ debg Find.waitForDeletedByCssSelector('[data-test-subj="titleDupicateWarnMsg"]') with timeout=2500
[00:09:18]                 │ debg gotoDashboardLandingPage
[00:09:18]                 │ debg onDashboardLandingPage
[00:09:18]                 │ debg TestSubjects.exists(dashboardLandingPage)
[00:09:18]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardLandingPage"]') with timeout=5000
[00:09:20]                 │ debg --- retry.tryForTime error: [data-test-subj="dashboardLandingPage"] is not displayed
[00:09:23]                 │ debg --- retry.tryForTime failed again with the same message...
[00:09:24]                 │ debg clickDashboardBreadcrumbLink
[00:09:24]                 │ debg Find.clickByCssSelector('a[href="#/list"]') with timeout=10000
[00:09:24]                 │ debg Find.findByCssSelector('a[href="#/list"]') with timeout=10000
[00:11:46]                 │ info [o.e.h.AbstractHttpServerTransport] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] handling request [null][GET][/_nodes?filter_path=nodes.*.version%2Cnodes.*.http.publish_address%2Cnodes.*.ip][Netty4HttpChannel{localAddress=/127.0.0.1:61182, remoteAddress=/127.0.0.1:53844}] took [21942ms] which is above the warn threshold of [5000ms]
[00:11:46]                 │ info [o.e.m.f.FsHealthService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] health check of [/dev/shm/workspace/parallel/18/kibana/.es/job-oss-firefox-retry-worker-18-es-test-cluster/data] took [23907ms] which is above the warn threshold of [5s]
[00:11:47]                 │ debg expectExistsDashboardLandingPage
[00:11:47]                 │ debg TestSubjects.exists(dashboardLandingPage)
[00:11:47]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="dashboardLandingPage"]') with timeout=120000
[00:11:47]                 │ debg TestSubjects.exists(newItemButton)
[00:11:47]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:11:47]                 │ debg TestSubjects.click(newItemButton)
[00:11:47]                 │ debg Find.clickByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:11:47]                 │ debg Find.findByCssSelector('[data-test-subj="newItemButton"]') with timeout=10000
[00:11:48]                 │ debg waitForRenderComplete
[00:11:48]                 │ debg in getSharedItemsCount
[00:11:48]                 │ debg Find.findByCssSelector('[data-shared-items-count]') with timeout=10000
[00:11:48]                 │ debg Renderable.waitForRender for 0 elements
[00:11:48]                 │ debg Find.allByCssSelector('[data-render-complete="true"]') with timeout=10000
[00:15:48]                 └- ✖ fail: dashboard app using legacy data dashboard save warns on duplicate name for new dashboard
[00:15:48]                 │      Error: Timeout of 360000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/dev/shm/workspace/parallel/18/kibana/test/functional/apps/dashboard/dashboard_save.js)
[00:15:48]                 │       at listOnTimeout (internal/timers.js:554:17)
[00:15:48]                 │       at processTimers (internal/timers.js:497:7)
[00:15:48]                 │ 
[00:15:48]                 │ 

Stack Trace

Error: Timeout of 360000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves. (/dev/shm/workspace/parallel/18/kibana/test/functional/apps/dashboard/dashboard_save.js)
    at listOnTimeout (internal/timers.js:554:17)
    at processTimers (internal/timers.js:497:7)

Firefox UI Functional Tests.test/functional/apps/dashboard/index·js.dashboard app using legacy data "after all" hook: unloadLogstash in "using legacy data"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:16]         └-: dashboard app
[00:00:16]           └-> "before all" hook
[00:08:23]           └-: using legacy data
[00:08:23]             └-> "before all" hook
[00:08:23]             └-> "before all" hook: loadLogstash
[00:08:23]               │ info [logstash_functional] Loading "mappings.json"
[00:08:23]               │ info [logstash_functional] Loading "data.json.gz"
[00:08:23]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:08:23]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.22][0]]"
[00:08:23]               │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:08: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:08:23]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:08:23]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.20][0]]"
[00:08:23]               │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:08: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:08:23]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [logstash-2015.09.21] creating index, cause [api], templates [], shards [1]/[0]
[00:08:23]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.21][0]]"
[00:08:23]               │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:08: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:08:33]               │ info progress: 12634
[00:08:34]               │ info [logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:08:34]               │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:08:34]               │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:15:50]             └-> "after all" hook: unloadLogstash
[00:15:50]               │ debg TestSubjects.click(dashboardSaveMenuItem)
[00:15:50]               │ debg Find.clickByCssSelector('[data-test-subj="dashboardSaveMenuItem"]') with timeout=10000
[00:15:50]               │ debg Find.findByCssSelector('[data-test-subj="dashboardSaveMenuItem"]') with timeout=10000
[00:15:50]               │ info [logstash_functional] Unloading indices from "mappings.json"
[00:15:50]               │ info Taking screenshot "/dev/shm/workspace/parallel/18/kibana/test/functional/screenshots/failure/dashboard app using legacy data _after all_ hook_ unloadLogstash.png"
[00:15:50]               │ info Current URL is: http://localhost:61181/app/dashboards#/create?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(description:%27%27,filters:!(),fullScreenMode:!f,options:(hidePanelTitles:!f,useMargins:!t),panels:!(),query:(language:kuery,query:%27%27),tags:!(),timeRestore:!f,title:%27%27,viewMode:edit)
[00:15:50]               │ info Saving page source to: /dev/shm/workspace/parallel/18/kibana/test/functional/failure_debug/html/dashboard app using legacy data _after all_ hook_ unloadLogstash.html
[00:15:50]               └- ✖ fail: dashboard app using legacy data "after all" hook: unloadLogstash in "using legacy data"
[00:15:50]               │      Error: No Living connections
[00:15:50]               │       at sendReqWithConnection (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:266:15)
[00:15:50]               │       at next (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/connection_pool.js:243:7)
[00:15:50]               │       at processTicksAndRejections (internal/process/task_queues.js:79:11)
[00:15:50]               │ 
[00:15:50]               │ 

Stack Trace

NoConnections [Error]: No Living connections
    at sendReqWithConnection (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/transport.js:266:15)
    at next (/dev/shm/workspace/kibana/node_modules/elasticsearch/src/lib/connection_pool.js:243:7)
    at processTicksAndRejections (internal/process/task_queues.js:79:11) {
  body: undefined,
  status: undefined
}

Chrome UI Functional Tests.test/functional/apps/visualize/index·ts.visualize app "before all" hook in ""

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: visualize app
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ debg Starting visualize before method
[00:00:00]             │ info [logstash_functional] Loading "mappings.json"
[00:00:00]             │ info [logstash_functional] Loading "data.json.gz"
[00:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [logstash-2015.09.22] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.22][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.22][0]]"
[00:00:00]             │ info [logstash_functional] Created index "logstash-2015.09.22"
[00:00:00]             │ 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:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [logstash-2015.09.20] creating index, cause [api], templates [], shards [1]/[0]
[00:00:00]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.20][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.20][0]]"
[00:00:00]             │ info [logstash_functional] Created index "logstash-2015.09.20"
[00:00:00]             │ 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:00:00]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [logstash-2015.09.21] 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-1610361679655739014] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[logstash-2015.09.21][0]]])." previous.health="YELLOW" reason="shards started [[logstash-2015.09.21][0]]"
[00:00:01]             │ info [logstash_functional] Created index "logstash-2015.09.21"
[00:00:01]             │ 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:00:10]             │ info progress: 5111
[00:00:20]             │ info progress: 10823
[00:00:24]             │ info [logstash_functional] Indexed 4633 docs into "logstash-2015.09.22"
[00:00:24]             │ info [logstash_functional] Indexed 4757 docs into "logstash-2015.09.20"
[00:00:24]             │ info [logstash_functional] Indexed 4614 docs into "logstash-2015.09.21"
[00:00:25]             │ info [long_window_logstash] Loading "mappings.json"
[00:00:25]             │ info [long_window_logstash] Loading "data.json.gz"
[00:00:25]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [long-window-logstash-0] creating index, cause [api], templates [], shards [1]/[0]
[00:00:25]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[long-window-logstash-0][0]]])." previous.health="YELLOW" reason="shards started [[long-window-logstash-0][0]]"
[00:00:25]             │ info [long_window_logstash] Created index "long-window-logstash-0"
[00:00:25]             │ 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:00:35]             │ info progress: 6866
[00:00:44]             │ info [long_window_logstash] Indexed 14005 docs into "long-window-logstash-0"
[00:00:45]             │ info [visualize] Loading "mappings.json"
[00:00:45]             │ info [visualize] Loading "data.json"
[00:00:45]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana_1/ZkOfj486Sn-wxGzfFtby3w] deleting index
[00:00:45]             │ info [visualize] Deleted existing index [".kibana_1"]
[00:00:45]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana] creating index, cause [api], templates [], shards [1]/[1]
[00:00:45]             │ info [visualize] Created index ".kibana"
[00:00:45]             │ debg [visualize] ".kibana" settings {"index":{"number_of_replicas":"1","number_of_shards":"1"}}
[00:00:45]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana/ZEQm44vHREeScSPGFDdcmg] update_mapping [_doc]
[00:00:45]             │ info [visualize] Indexed 12 docs into ".kibana"
[00:00:45]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana/ZEQm44vHREeScSPGFDdcmg] update_mapping [_doc]
[00:00:45]             │ debg Migrating saved objects
[00:00:45]             │ proc [kibana]   log   [11:02:57.524] [info][savedobjects-service] Creating index .kibana_2.
[00:00:45]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana_2] creating index, cause [api], templates [], shards [1]/[1]
[00:00:45]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] updating number_of_replicas to [0] for indices [.kibana_2]
[00:00:45]             │ proc [kibana]   log   [11:02:57.690] [info][savedobjects-service] Reindexing .kibana to .kibana_1
[00:00:45]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana_1] creating index, cause [api], templates [], shards [1]/[1]
[00:00:45]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] updating number_of_replicas to [0] for indices [.kibana_1]
[00:00:46]             │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.tasks] creating index, cause [auto(task api)], templates [], shards [1]/[1]
[00:00:46]             │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] updating number_of_replicas to [0] for indices [.tasks]
[00:00:46]             │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] 1540 finished with response BulkByScrollResponse[took=142.6ms,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:00:46]             │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana/ZEQm44vHREeScSPGFDdcmg] deleting index
[00:00:46]             │ proc [kibana]   log   [11:02:58.452] [info][savedobjects-service] Migrating .kibana_1 saved objects to .kibana_2
[00:00:46]             │ proc [kibana]   log   [11:02:58.493] [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:00:46]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana_2/CfpQVKrCQR28vx-W53adwQ] update_mapping [_doc]
[00:00:46]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana_2/CfpQVKrCQR28vx-W53adwQ] update_mapping [_doc]
[00:00:46]             │ proc [kibana]   log   [11:02:58.651] [info][savedobjects-service] Pointing alias .kibana to .kibana_2.
[00:00:46]             │ proc [kibana]   log   [11:02:58.703] [info][savedobjects-service] Finished in 1183ms.
[00:00:46]             │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC"}
[00:00:46]             │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-18-tests-xxl-1610361679655739014] [.kibana_2/CfpQVKrCQR28vx-W53adwQ] update_mapping [_doc]
[00:00:48]             │ debg replacing kibana config doc: {"defaultIndex":"logstash-*","format:bytes:defaultPattern":"0,0.[000]b"}
[00:00:49]           └-: 
[00:00:49]             └-> "before all" hook
[00:00:49]               │ info Taking screenshot "/dev/shm/workspace/parallel/19/kibana/test/functional/screenshots/failure/visualize app  _before all_ hook.png"
[00:00:49]               │ERROR browser[SEVERE] ERROR FETCHING BROWSR LOGS: invalid session id
[00:00:49]               │ERROR SCREENSHOT FAILED
[00:00:49]               │ERROR NoSuchSessionError: invalid session id
[00:00:49]               │          at Object.throwDecodedError (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/error.js:550:15)
[00:00:49]               │          at parseHttpResponse (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:565:13)
[00:00:49]               │          at Executor.execute (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:491:26)
[00:00:49]               │          at runMicrotasks (<anonymous>)
[00:00:49]               │          at processTicksAndRejections (internal/process/task_queues.js:97:5)
[00:00:49]               │          at Task.exec (/dev/shm/workspace/parallel/19/kibana/test/functional/services/remote/prevent_parallel_calls.ts:40:22)
[00:00:49]               └- ✖ fail: visualize app  "before all" hook in ""
[00:00:49]               │      NoSuchSessionError: invalid session id
[00:00:49]               │       at Object.throwDecodedError (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/error.js:550:15)
[00:00:49]               │       at parseHttpResponse (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:565:13)
[00:00:49]               │       at Executor.execute (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:491:26)
[00:00:49]               │       at runMicrotasks (<anonymous>)
[00:00:49]               │       at processTicksAndRejections (internal/process/task_queues.js:97:5)
[00:00:49]               │       at Task.exec (test/functional/services/remote/prevent_parallel_calls.ts:40:22)
[00:00:49]               │ 
[00:00:49]               │ 

Stack Trace

NoSuchSessionError: invalid session id
    at Object.throwDecodedError (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/error.js:550:15)
    at parseHttpResponse (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:565:13)
    at Executor.execute (/dev/shm/workspace/kibana/node_modules/selenium-webdriver/lib/http.js:491:26)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at Task.exec (test/functional/services/remote/prevent_parallel_calls.ts:40:22) {
  remoteStacktrace: '#0 0x562b8fdcbe79 <unknown>\n'
}

and 9 more failures, only showing the first 3.

Metrics [docs]

‼️ ERROR: metrics for f741c63 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
release_note:plugin_api_changes Contains a Plugin API changes section for the breaking plugin API changes section. Team: SecuritySolution Security Solutions Team working on SIEM, Endpoint, Timeline, Resolver, etc. Team:Threat Hunting Security Solution Threat Hunting Team v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants