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] Add support for /api/status before Kibana completes startup (#79012) #98329

Merged
merged 1 commit into from
Apr 26, 2021

Conversation

kibanamachine
Copy link
Contributor

Backports the following commits to 7.x:

@kibanamachine
Copy link
Contributor Author

💛 Build succeeded, but was flaky


Test Failures

Kibana Pipeline / general / Chrome X-Pack UI Plugin Functional Tests.x-pack/test/plugin_functional/test_suites/global_search/global_search_bar·ts.GlobalSearch API GlobalSearchBar search suggestions shows a suggestion when searching for a term matching a type

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:48]         └-: GlobalSearch API
[00:00:48]           └-> "before all" hook in "GlobalSearch API"
[00:01:01]           └-: GlobalSearchBar
[00:01:01]             └-> "before all" hook for "shows the popover on focus"
[00:01:01]             └-> "before all" hook for "shows the popover on focus"
[00:01:01]               │ info [global_search/search_syntax] Loading "mappings.json"
[00:01:01]               │ info [global_search/search_syntax] Loading "data.json"
[00:01:01]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana_7.14.0_001/9lq-MIYpS2alVK-ClFkO_w] deleting index
[00:01:01]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana_pre6.5.0_001/6BFOpEB-SZOcP8PHTowPhg] deleting index
[00:01:01]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana_task_manager_7.14.0_001/VoV-_4XBRQ6bP3iHCNhwIw] deleting index
[00:01:01]               │ info [global_search/search_syntax] Deleted existing index ".kibana_7.14.0_001"
[00:01:01]               │ info [global_search/search_syntax] Deleted existing index ".kibana_pre6.5.0_001"
[00:01:01]               │ info [global_search/search_syntax] Deleted existing index ".kibana_task_manager_7.14.0_001"
[00:01:01]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana] creating index, cause [api], templates [], shards [1]/[0]
[00:01:01]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana][0]]]).
[00:01:01]               │ info [global_search/search_syntax] Created index ".kibana"
[00:01:01]               │ debg [global_search/search_syntax] ".kibana" settings {"index":{"auto_expand_replicas":"0-1","number_of_replicas":"0","number_of_shards":"1"}}
[00:01:01]               │ info [global_search/search_syntax] Indexed 16 docs into ".kibana"
[00:01:01]               │ debg Migrating saved objects
[00:01:01]               │ proc [kibana]   log   [17:33:44.837] [info][savedobjects-service] [.kibana_task_manager] INIT -> CREATE_NEW_TARGET. took: 5ms.
[00:01:01]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana_task_manager_7.14.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:01:01]               │ proc [kibana]   log   [17:33:44.845] [info][savedobjects-service] [.kibana] INIT -> LEGACY_SET_WRITE_BLOCK. took: 16ms.
[00:01:01]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] updating number_of_replicas to [0] for indices [.kibana_task_manager_7.14.0_001]
[00:01:01]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] adding block write to indices [[.kibana/4Cfd5G6cRUOwWUj6C5mUaA]]
[00:01:01]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_task_manager_7.14.0_001][0]]]).
[00:01:01]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] completed adding block write to indices [.kibana]
[00:01:01]               │ proc [kibana]   log   [17:33:44.914] [info][savedobjects-service] [.kibana_task_manager] CREATE_NEW_TARGET -> MARK_VERSION_INDEX_READY. took: 78ms.
[00:01:01]               │ proc [kibana]   log   [17:33:44.930] [info][savedobjects-service] [.kibana] LEGACY_SET_WRITE_BLOCK -> LEGACY_CREATE_REINDEX_TARGET. took: 85ms.
[00:01:01]               │ proc [kibana]   log   [17:33:44.948] [info][savedobjects-service] [.kibana_task_manager] MARK_VERSION_INDEX_READY -> DONE. took: 34ms.
[00:01:01]               │ proc [kibana]   log   [17:33:44.949] [info][savedobjects-service] [.kibana_task_manager] Migration completed after 118ms
[00:01:01]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana_pre6.5.0_001] creating index, cause [api], templates [], shards [1]/[1]
[00:01:01]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] updating number_of_replicas to [0] for indices [.kibana_pre6.5.0_001]
[00:01:01]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_pre6.5.0_001][0]]]).
[00:01:01]               │ proc [kibana]   log   [17:33:45.004] [info][savedobjects-service] [.kibana] LEGACY_CREATE_REINDEX_TARGET -> LEGACY_REINDEX. took: 74ms.
[00:01:01]               │ proc [kibana]   log   [17:33:45.013] [info][savedobjects-service] [.kibana] LEGACY_REINDEX -> LEGACY_REINDEX_WAIT_FOR_TASK. took: 9ms.
[00:01:01]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] 2475 finished with response BulkByScrollResponse[took=45.9ms,timed_out=false,sliceId=null,updated=0,created=16,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:01:01]               │ proc [kibana]   log   [17:33:45.122] [info][savedobjects-service] [.kibana] LEGACY_REINDEX_WAIT_FOR_TASK -> LEGACY_DELETE. took: 109ms.
[00:01:01]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana/4Cfd5G6cRUOwWUj6C5mUaA] deleting index
[00:01:01]               │ proc [kibana]   log   [17:33:45.161] [info][savedobjects-service] [.kibana] LEGACY_DELETE -> SET_SOURCE_WRITE_BLOCK. took: 39ms.
[00:01:01]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] adding block write to indices [[.kibana_pre6.5.0_001/oMY2cMEDT9qpUPlaCKc09w]]
[00:01:01]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] completed adding block write to indices [.kibana_pre6.5.0_001]
[00:01:01]               │ proc [kibana]   log   [17:33:45.201] [info][savedobjects-service] [.kibana] SET_SOURCE_WRITE_BLOCK -> CREATE_REINDEX_TEMP. took: 40ms.
[00:01:01]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana_7.14.0_reindex_temp] creating index, cause [api], templates [], shards [1]/[1]
[00:01:01]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] updating number_of_replicas to [0] for indices [.kibana_7.14.0_reindex_temp]
[00:01:01]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.14.0_reindex_temp][0]]]).
[00:01:01]               │ proc [kibana]   log   [17:33:45.259] [info][savedobjects-service] [.kibana] CREATE_REINDEX_TEMP -> REINDEX_SOURCE_TO_TEMP. took: 58ms.
[00:01:01]               │ proc [kibana]   log   [17:33:45.268] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP -> REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK. took: 9ms.
[00:01:01]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana_7.14.0_reindex_temp/kR24AOwQSYGNL2SiD2RWwg] update_mapping [_doc]
[00:01:01]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] 2514 finished with response BulkByScrollResponse[took=56.3ms,timed_out=false,sliceId=null,updated=0,created=16,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:01:01]               │ proc [kibana]   log   [17:33:45.378] [info][savedobjects-service] [.kibana] REINDEX_SOURCE_TO_TEMP_WAIT_FOR_TASK -> SET_TEMP_WRITE_BLOCK. took: 110ms.
[00:01:01]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] adding block write to indices [[.kibana_7.14.0_reindex_temp/kR24AOwQSYGNL2SiD2RWwg]]
[00:01:01]               │ info [o.e.c.m.MetadataIndexStateService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] completed adding block write to indices [.kibana_7.14.0_reindex_temp]
[00:01:02]               │ proc [kibana]   log   [17:33:45.426] [info][savedobjects-service] [.kibana] SET_TEMP_WRITE_BLOCK -> CLONE_TEMP_TO_TARGET. took: 48ms.
[00:01:02]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] applying create index request using existing index [.kibana_7.14.0_reindex_temp] metadata
[00:01:02]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana_7.14.0_001] creating index, cause [clone_index], templates [], shards [1]/[1]
[00:01:02]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] updating number_of_replicas to [0] for indices [.kibana_7.14.0_001]
[00:01:02]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana_7.14.0_001/S6qY5jUlSWKOfVt-1EnhrQ] create_mapping [_doc]
[00:01:02]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_7.14.0_001][0]]]).
[00:01:02]               │ proc [kibana]   log   [17:33:45.544] [info][savedobjects-service] [.kibana] CLONE_TEMP_TO_TARGET -> OUTDATED_DOCUMENTS_SEARCH. took: 118ms.
[00:01:02]               │ proc [kibana]   log   [17:33:45.561] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> OUTDATED_DOCUMENTS_TRANSFORM. took: 17ms.
[00:01:02]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana_7.14.0_001/S6qY5jUlSWKOfVt-1EnhrQ] update_mapping [_doc]
[00:01:02]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana_7.14.0_001/S6qY5jUlSWKOfVt-1EnhrQ] update_mapping [_doc]
[00:01:02]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana_7.14.0_001/S6qY5jUlSWKOfVt-1EnhrQ] update_mapping [_doc]
[00:01:03]               │ proc [kibana]   log   [17:33:46.479] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_TRANSFORM -> OUTDATED_DOCUMENTS_SEARCH. took: 918ms.
[00:01:03]               │ proc [kibana]   log   [17:33:46.492] [info][savedobjects-service] [.kibana] OUTDATED_DOCUMENTS_SEARCH -> UPDATE_TARGET_MAPPINGS. took: 13ms.
[00:01:03]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana_7.14.0_001/S6qY5jUlSWKOfVt-1EnhrQ] update_mapping [_doc]
[00:01:03]               │ proc [kibana]   log   [17:33:46.578] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS -> UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK. took: 86ms.
[00:01:03]               │ info [o.e.t.LoggingTaskListener] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] 2581 finished with response BulkByScrollResponse[took=44.7ms,timed_out=false,sliceId=null,updated=16,created=0,deleted=0,batches=1,versionConflicts=0,noops=0,retries=0,throttledUntil=0s,bulk_failures=[],search_failures=[]]
[00:01:03]               │ proc [kibana]   log   [17:33:46.689] [info][savedobjects-service] [.kibana] UPDATE_TARGET_MAPPINGS_WAIT_FOR_TASK -> MARK_VERSION_INDEX_READY. took: 111ms.
[00:01:03]               │ info [o.e.c.m.MetadataDeleteIndexService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana_7.14.0_reindex_temp/kR24AOwQSYGNL2SiD2RWwg] deleting index
[00:01:03]               │ proc [kibana]   log   [17:33:46.735] [info][savedobjects-service] [.kibana] MARK_VERSION_INDEX_READY -> DONE. took: 46ms.
[00:01:03]               │ proc [kibana]   log   [17:33:46.736] [info][savedobjects-service] [.kibana] Migration completed after 1907ms
[00:01:03]               │ debg [global_search/search_syntax] Migrated Kibana index after loading Kibana data
[00:01:03]               │ debg [global_search/search_syntax] Ensured that default space exists in .kibana
[00:01:03]               │ debg applying update to kibana config: {"accessibility:disableAnimations":true,"dateFormat:tz":"UTC","visualization:visualize:legacyChartsLibrary":true}
[00:01:03]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-ubuntu-16-tests-xxl-1619452934671683922] [.kibana_7.14.0_001/S6qY5jUlSWKOfVt-1EnhrQ] update_mapping [_doc]
[00:01:05]               │ debg navigating to home url: http://localhost:6141/app/home#/
[00:01:05]               │ debg navigate to: http://localhost:6141/app/home#/
[00:01:05]               │ debg browser[INFO] http://localhost:6141/app/home?_t=1619458428501#/ 341 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:01:05]               │
[00:01:05]               │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:05]               │ debg ... sleep(700) start
[00:01:06]               │ debg ... sleep(700) end
[00:01:06]               │ debg returned from get, calling refresh
[00:01:06]               │ERROR browser[SEVERE] http://localhost:6141/40658/bundles/core/core.entry.js 12:150657 TypeError: Failed to fetch
[00:01:06]               │          at fetch_Fetch.fetchResponse (http://localhost:6141/40658/bundles/core/core.entry.js:6:26193)
[00:01:06]               │          at async http://localhost:6141/40658/bundles/core/core.entry.js:6:24090
[00:01:06]               │          at async http://localhost:6141/40658/bundles/core/core.entry.js:6:23996
[00:01:07]               │ debg browser[INFO] http://localhost:6141/app/home?_t=1619458428501#/ 341 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:01:07]               │
[00:01:07]               │ debg browser[INFO] http://localhost:6141/bootstrap.js 41:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:01:07]               │ debg currentUrl = http://localhost:6141/app/home#/
[00:01:07]               │          appUrl = http://localhost:6141/app/home#/
[00:01:07]               │ debg TestSubjects.find(kibanaChrome)
[00:01:07]               │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:01:07]               │ debg ... sleep(501) start
[00:01:07]               │ERROR browser[SEVERE] http://localhost:6141/api/licensing/info - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:01:07]               │ERROR browser[SEVERE] http://localhost:6141/api/fleet/epm/packages?experimental=true - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:01:07]               │ERROR browser[SEVERE] http://localhost:6141/internal/global_search/searchable_types - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:01:07]               │ERROR browser[SEVERE] http://localhost:6141/api/_newsfeed-FTS-external-service-simulators/kibana/v7.14.0.json - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:01:07]               │ERROR browser[SEVERE] http://localhost:6141/40658/bundles/plugin/newsfeed/kibana/newsfeed.plugin.js 0:18527 TypeError: Failed to fetch
[00:01:07]               │          at fetch_Fetch.fetchResponse (http://localhost:6141/40658/bundles/core/core.entry.js:6:26193)
[00:01:07]               │          at async http://localhost:6141/40658/bundles/core/core.entry.js:6:24090
[00:01:07]               │          at async http://localhost:6141/40658/bundles/core/core.entry.js:6:23996
[00:01:07]               │ERROR browser[SEVERE] http://localhost:6141/api/alerts/list_alert_types - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:01:07]               │ debg browser[INFO] http://localhost:6141/40658/bundles/core/core.entry.js 12:151585 "Detected an unhandled Promise rejection.
[00:01:07]               │      TypeError: Failed to fetch"
[00:01:07]               │ERROR browser[SEVERE] http://localhost:6141/40658/bundles/core/core.entry.js 5:2514 
[00:01:07]               │ debg browser[INFO] http://localhost:6141/40658/bundles/core/core.entry.js 12:151585 "Detected an unhandled Promise rejection.
[00:01:07]               │      TypeError: Failed to fetch"
[00:01:07]               │ERROR browser[SEVERE] http://localhost:6141/40658/bundles/core/core.entry.js 5:2514 
[00:01:08]               │ debg ... sleep(501) end
[00:01:08]               │ debg in navigateTo url = http://localhost:6141/app/home#/
[00:01:08]               │ debg TestSubjects.exists(statusPageContainer)
[00:01:08]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="statusPageContainer"]') with timeout=2500
[00:01:10]               │ debg --- retry.tryForTime error: [data-test-subj="statusPageContainer"] is not displayed
[00:01:11]             └-> shows the popover on focus
[00:01:11]               └-> "before each" hook: global before each for "shows the popover on focus"
[00:01:11]               │ debg TestSubjects.find(nav-search-input)
[00:01:11]               │ debg Find.findByCssSelector('[data-test-subj="nav-search-input"]') with timeout=10000
[00:01:11]               │ debg Find.existsByCssSelector('.navSearch__panel') with timeout=2500
[00:01:11]               │ debg TestSubjects.click(helpMenuButton)
[00:01:11]               │ debg Find.clickByCssSelector('[data-test-subj="helpMenuButton"]') with timeout=10000
[00:01:11]               │ debg Find.findByCssSelector('[data-test-subj="helpMenuButton"]') with timeout=10000
[00:01:11]               │ debg TestSubjects.click(helpMenuButton)
[00:01:11]               │ debg Find.clickByCssSelector('[data-test-subj="helpMenuButton"]') with timeout=10000
[00:01:11]               │ debg Find.findByCssSelector('[data-test-subj="helpMenuButton"]') with timeout=10000
[00:01:11]               │ debg Find.waitForDeletedByCssSelector('.navSearch__panel') with timeout=10000
[00:01:12]               │ debg Find.existsByCssSelector('.navSearch__panel') with timeout=2500
[00:01:15]               └- ✓ pass  (3.6s) "GlobalSearch API GlobalSearchBar shows the popover on focus"
[00:01:15]             └-> "after each" hook for "shows the popover on focus"
[00:01:15]               │ debg TestSubjects.click(helpMenuButton)
[00:01:15]               │ debg Find.clickByCssSelector('[data-test-subj="helpMenuButton"]') with timeout=10000
[00:01:15]               │ debg Find.findByCssSelector('[data-test-subj="helpMenuButton"]') with timeout=10000
[00:01:15]               │ debg TestSubjects.click(helpMenuButton)
[00:01:15]               │ debg Find.clickByCssSelector('[data-test-subj="helpMenuButton"]') with timeout=10000
[00:01:15]               │ debg Find.findByCssSelector('[data-test-subj="helpMenuButton"]') with timeout=10000
[00:01:15]               │ debg Find.waitForDeletedByCssSelector('.navSearch__panel') with timeout=10000
[00:01:15]             └-> redirects to the correct page
[00:01:15]               └-> "before each" hook: global before each for "redirects to the correct page"
[00:01:15]               │ debg TestSubjects.find(nav-search-input)
[00:01:15]               │ debg Find.findByCssSelector('[data-test-subj="nav-search-input"]') with timeout=10000
[00:01:15]               │ debg TestSubjects.find(nav-search-input)
[00:01:15]               │ debg Find.findByCssSelector('[data-test-subj="nav-search-input"]') with timeout=10000
[00:01:16]               │ debg TestSubjects.exists(nav-search-option)
[00:01:16]               │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="nav-search-option"]') with timeout=2500
[00:01:19]               │ debg TestSubjects.findAll(nav-search-option)
[00:01:19]               │ debg Find.allByCssSelector('[data-test-subj="nav-search-option"]') with timeout=10000
[00:01:19]               └- ✓ pass  (4.0s) "GlobalSearch API GlobalSearchBar redirects to the correct page"
[00:01:19]             └-> "after each" hook for "redirects to the correct page"
[00:01:19]               │ debg TestSubjects.click(helpMenuButton)
[00:01:19]               │ debg Find.clickByCssSelector('[data-test-subj="helpMenuButton"]') with timeout=10000
[00:01:19]               │ debg Find.findByCssSelector('[data-test-subj="helpMenuButton"]') with timeout=10000
[00:01:19]               │ debg TestSubjects.click(helpMenuButton)
[00:01:19]               │ debg Find.clickByCssSelector('[data-test-subj="helpMenuButton"]') with timeout=10000
[00:01:19]               │ debg Find.findByCssSelector('[data-test-subj="helpMenuButton"]') with timeout=10000
[00:01:19]               │ debg Find.waitForDeletedByCssSelector('.navSearch__panel') with timeout=10000
[00:01:20]               │ERROR browser[SEVERE] http://localhost:6141/api/index_patterns/_fields_for_wildcard?pattern=logstash-*&meta_fields=_source&meta_fields=_id&meta_fields=_type&meta_fields=_index&meta_fields=_score - Failed to load resource: the server responded with a status of 404 (Not Found)
[00:01:20]             └-: search suggestions
[00:01:20]               └-> "before all" hook for "shows a suggestion when searching for a term matching a type"
[00:01:20]               └-> shows a suggestion when searching for a term matching a type
[00:01:20]                 └-> "before each" hook: global before each for "shows a suggestion when searching for a term matching a type"
[00:01:20]                 │ debg TestSubjects.find(nav-search-input)
[00:01:20]                 │ debg Find.findByCssSelector('[data-test-subj="nav-search-input"]') with timeout=10000
[00:01:20]                 │ debg TestSubjects.find(nav-search-input)
[00:01:20]                 │ debg Find.findByCssSelector('[data-test-subj="nav-search-input"]') with timeout=10000
[00:01:21]                 │ debg TestSubjects.exists(nav-search-option)
[00:01:21]                 │ debg Find.existsByDisplayedByCssSelector('[data-test-subj="nav-search-option"]') with timeout=2500
[00:01:24]                 │ debg TestSubjects.findAll(nav-search-option)
[00:01:24]                 │ debg Find.allByCssSelector('[data-test-subj="nav-search-option"]') with timeout=10000
[00:01:24]                 │ debg Find.allDescendantDisplayedByCssSelector('.euiSelectableTemplateSitewide__listItemTitle')
[00:01:24]                 │ debg Find.allDescendantDisplayedByCssSelector('.euiSelectableTemplateSitewide__listItemTitle')
[00:01:24]                 │ debg Find.allDescendantDisplayedByCssSelector('.euiSelectableTemplateSitewide__listItemTitle')
[00:01:24]                 │ debg Find.allDescendantDisplayedByCssSelector('.euiSelectableTemplateSitewide__listItemTitle')
[00:01:24]                 │ debg Find.allDescendantDisplayedByCssSelector('.euiSelectableTemplateSitewide__listItemTitle')
[00:01:24]                 │ info Taking screenshot "/dev/shm/workspace/parallel/4/kibana/x-pack/test/plugin_functional/screenshots/failure/GlobalSearch API GlobalSearchBar search suggestions shows a suggestion when searching for a term matching a type.png"
[00:01:24]                 │ info Current URL is: http://localhost:6141/app/discover#/?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(columns:!(),filters:!(),index:%27logstash-*%27,interval:auto,query:(language:kuery,query:%27%27),sort:!())
[00:01:24]                 │ info Saving page source to: /dev/shm/workspace/parallel/4/kibana/x-pack/test/plugin_functional/failure_debug/html/GlobalSearch API GlobalSearchBar search suggestions shows a suggestion when searching for a term matching a type.html
[00:01:24]                 └- ✖ fail: GlobalSearch API GlobalSearchBar search suggestions shows a suggestion when searching for a term matching a type
[00:01:24]                 │       Error: expected 'Dashboard' to sort of equal 'type: dashboard'
[00:01:24]                 │       + expected - actual
[00:01:24]                 │ 
[00:01:24]                 │       -Dashboard
[00:01:24]                 │       +type: dashboard
[00:01:24]                 │       
[00:01:24]                 │       at Assertion.assert (/dev/shm/workspace/parallel/4/kibana/node_modules/@kbn/expect/expect.js:100:11)
[00:01:24]                 │       at Assertion.eql (/dev/shm/workspace/parallel/4/kibana/node_modules/@kbn/expect/expect.js:244:8)
[00:01:24]                 │       at Context.<anonymous> (test/plugin_functional/test_suites/global_search/global_search_bar.ts:52:37)
[00:01:24]                 │       at runMicrotasks (<anonymous>)
[00:01:24]                 │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:01:24]                 │       at Object.apply (/dev/shm/workspace/parallel/4/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:01:24]                 │ 
[00:01:24]                 │ 

Stack Trace

Error: expected 'Dashboard' to sort of equal 'type: dashboard'
    at Assertion.assert (/dev/shm/workspace/parallel/4/kibana/node_modules/@kbn/expect/expect.js:100:11)
    at Assertion.eql (/dev/shm/workspace/parallel/4/kibana/node_modules/@kbn/expect/expect.js:244:8)
    at Context.<anonymous> (test/plugin_functional/test_suites/global_search/global_search_bar.ts:52:37)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at Object.apply (/dev/shm/workspace/parallel/4/kibana/node_modules/@kbn/test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16) {
  actual: 'Dashboard',
  expected: 'type: dashboard',
  showDiff: true
}

Metrics [docs]

Unknown metric groups

API count

id before after diff
core 2180 2182 +2

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

cc @joshdover

@kibanamachine kibanamachine merged commit 814de08 into elastic:7.x Apr 26, 2021
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