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

[APM] Upgrade ES client #86594

Merged
merged 21 commits into from
Jan 27, 2021
Merged

Conversation

dgieselaar
Copy link
Member

@dgieselaar dgieselaar commented Dec 19, 2020

Closes #83913.

Update: I'm going to remove the auto-instrumentation of ES calls and handle instrumentation separately.

Update #2: I've also added some information about the underlying ES error if there is one:

I'm still displaying it as a 500 because that is what it is to the user. There is more information, but I want to be cautious about displaying too much information here.

Removed the Elasticsearch error message, as we are hiding the error from the logger/APM agent and core had some security concerns.

@dgieselaar dgieselaar added Team:APM All issues that need APM UI Team support v7.12.0 labels Dec 19, 2020
@dgieselaar dgieselaar requested a review from a team as a code owner December 19, 2020 20:48
@elasticmachine
Copy link
Contributor

Pinging @elastic/apm-ui (Team:apm)

@dgieselaar dgieselaar added release_note:enhancement release_note:skip Skip the PR/issue when compiling release notes and removed release_note:enhancement labels Dec 20, 2020
@dgieselaar dgieselaar marked this pull request as draft December 21, 2020 07:43
@dgieselaar
Copy link
Member Author

@elasticmachine merge upstream

Copy link
Contributor

@smith smith left a comment

Choose a reason for hiding this comment

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

Seems to all be working. Thanks for doing this.


promise.then(
() => subscription.unsubscribe(),
() => subscription.unsubscribe()
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we do this twice? It looks intentional but a comment explaining would help me understand.

Copy link
Member Author

Choose a reason for hiding this comment

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

The second argument to .then() is a failure callback. The difference between .then(onSuccess, onFailure) and .then(onSuccess).catch(onFailure) is that the former calls onFailure only when the original promise is rejected, the second is also called when the onSuccess handler throws. I will add a comment.

Copy link
Member

@sorenlouv sorenlouv Jan 6, 2021

Choose a reason for hiding this comment

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

Isn't this what finally is for (available since Node 10).

promise.finally(() => subscription.unsubscribe())

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it's what I used initially but it failed on CI (with the API tests). Admittedly I was too lazy to figure out why that happened 😀 I'll have another look.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh duh I knew that I was just reading it as two chained thens for some reason. Thanks.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

bummer. Okay, thanks for trying.

import { contextServiceMock } from 'src/core/server/mocks';
import supertest from 'supertest';
import { createApmEventClient } from '.';
import { createHttpServer } from '../../../../../../../../src/core/server/test_utils';
Copy link
Contributor

Choose a reason for hiding this comment

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

You don't need a relative path if you're importing from src/core.

import { createApmEventClient } from '.';
import { createHttpServer } from '../../../../../../../../src/core/server/test_utils';

describe('create_apm_event_client', () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

I'd name this createApmEventClient after the function, not after the module file name.

@@ -49,18 +58,32 @@ export function createInternalESClient({
>(
params: TSearchRequest
): Promise<ESSearchResponse<TDocument, TSearchRequest>> => {
return callEs('search', params);
return callEs({
operationName: 'search',
Copy link
Contributor

Choose a reason for hiding this comment

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

Are these values defined as constants anywhere? It's clear as-is, but just wondering.

Copy link
Member Author

Choose a reason for hiding this comment

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

No, it's used for logging only as well, the actual ES client call is separate from it.

request.route.path
}`;

const { title, body } = getMessage();
Copy link
Member

Choose a reason for hiding this comment

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

Nit: for clarity

Suggested change
const { title, body } = getMessage();
const { title, body } = getDebugMessage();

Comment on lines 62 to 71
export const getSearchDebugBody = (params: Record<string, any>) =>
`GET ${params.index}/_search\n${formatObj(params.body)}`;

export const getDefaultDebugBody = (
params: Record<string, any>,
operationName: string
) =>
`${chalk.bold('ES operation:')} ${operationName}\n${chalk.bold(
'ES query:'
)}\n${formatObj(params)}`;
Copy link
Member

Choose a reason for hiding this comment

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

nit: perhaps a co-locating the debug message in a single function will make it easier to understand when one is used over the other:

Suggested change
export const getSearchDebugBody = (params: Record<string, any>) =>
`GET ${params.index}/_search\n${formatObj(params.body)}`;
export const getDefaultDebugBody = (
params: Record<string, any>,
operationName: string
) =>
`${chalk.bold('ES operation:')} ${operationName}\n${chalk.bold(
'ES query:'
)}\n${formatObj(params)}`;
export const getDebugBody = (
params: Record<string, any>,
operationName: string
) => {
if (operationName === 'search') {
return `GET ${params.index}/_search\n${formatObj(params.body)}`;
}
// message for all but 'search' operatins
return `${chalk.bold('ES operation:')} ${operationName}\n${chalk.bold(
'ES query:'
)}\n${formatObj(params)}`;
}

@dgieselaar
Copy link
Member Author

@elasticmachine merge upstream

@kibanamachine
Copy link
Contributor

💛 Build succeeded, but was flaky


Test Failures

X-Pack Saved Object Tagging Functional Tests.x-pack/test/saved_object_tagging/functional/tests/maps_integration·ts.saved objects tagging - functional tests maps integration creating "before each" hook for "allows to select tags for a new map"

Link to Jenkins

Standard Out

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

[00:00:00]       │
[00:00:00]         └-: saved objects tagging - functional tests
[00:00:00]           └-> "before all" hook
[00:00:00]           └-> "before all" hook
[00:00:00]             │ debg creating role kibana_rbac_default_space_read_user
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added role [kibana_rbac_default_space_read_user]
[00:00:00]             │ debg creating role kibana_rbac_default_space_write_user
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added role [kibana_rbac_default_space_write_user]
[00:00:00]             │ debg creating role kibana_rbac_default_space_so_management_write_user
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added role [kibana_rbac_default_space_so_management_write_user]
[00:00:00]             │ debg creating role kibana_rbac_default_space_so_management_read_user
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added role [kibana_rbac_default_space_so_management_read_user]
[00:00:00]             │ debg creating role kibana_rbac_default_space_so_tagging_read_user
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added role [kibana_rbac_default_space_so_tagging_read_user]
[00:00:00]             │ debg creating role kibana_rbac_default_space_so_tagging_write_user
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added role [kibana_rbac_default_space_so_tagging_write_user]
[00:00:00]             │ debg creating role kibana_rbac_default_space_dashboard_read_user
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added role [kibana_rbac_default_space_dashboard_read_user]
[00:00:00]             │ debg creating role kibana_rbac_default_space_dashboard_write_user
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added role [kibana_rbac_default_space_dashboard_write_user]
[00:00:00]             │ debg creating role kibana_rbac_default_space_visualize_read_user
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added role [kibana_rbac_default_space_visualize_read_user]
[00:00:00]             │ debg creating role kibana_rbac_default_space_visualize_write_user
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added role [kibana_rbac_default_space_visualize_write_user]
[00:00:00]             │ debg creating role kibana_rbac_default_space_advanced_settings_read_user
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added role [kibana_rbac_default_space_advanced_settings_read_user]
[00:00:00]             │ debg creating role kibana_rbac_default_space_maps_read_user
[00:00:00]             │ info [o.e.x.s.a.r.TransportPutRoleAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added role [kibana_rbac_default_space_maps_read_user]
[00:00:00]             │ debg creating user not_a_kibana_user
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added user [not_a_kibana_user]
[00:00:00]             │ debg created user not_a_kibana_user
[00:00:00]             │ debg creating user a_kibana_rbac_default_space_read_user
[00:00:00]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added user [a_kibana_rbac_default_space_read_user]
[00:00:00]             │ debg created user a_kibana_rbac_default_space_read_user
[00:00:00]             │ debg creating user a_kibana_rbac_default_space_write_user
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added user [a_kibana_rbac_default_space_write_user]
[00:00:01]             │ debg created user a_kibana_rbac_default_space_write_user
[00:00:01]             │ debg creating user a_kibana_rbac_default_space_so_management_write_user
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added user [a_kibana_rbac_default_space_so_management_write_user]
[00:00:01]             │ debg created user a_kibana_rbac_default_space_so_management_write_user
[00:00:01]             │ debg creating user a_kibana_rbac_default_space_so_tagging_read_user
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added user [a_kibana_rbac_default_space_so_tagging_read_user]
[00:00:01]             │ debg created user a_kibana_rbac_default_space_so_tagging_read_user
[00:00:01]             │ debg creating user a_kibana_rbac_default_space_so_tagging_read_so_management_read_user
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added user [a_kibana_rbac_default_space_so_tagging_read_so_management_read_user]
[00:00:01]             │ debg created user a_kibana_rbac_default_space_so_tagging_read_so_management_read_user
[00:00:01]             │ debg creating user a_kibana_rbac_default_space_so_tagging_write_user
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added user [a_kibana_rbac_default_space_so_tagging_write_user]
[00:00:01]             │ debg created user a_kibana_rbac_default_space_so_tagging_write_user
[00:00:01]             │ debg creating user a_kibana_rbac_default_space_dashboard_read_user
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added user [a_kibana_rbac_default_space_dashboard_read_user]
[00:00:01]             │ debg created user a_kibana_rbac_default_space_dashboard_read_user
[00:00:01]             │ debg creating user a_kibana_rbac_default_space_visualize_read_user
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added user [a_kibana_rbac_default_space_visualize_read_user]
[00:00:01]             │ debg created user a_kibana_rbac_default_space_visualize_read_user
[00:00:01]             │ debg creating user a_kibana_rbac_default_space_dashboard_write_user
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added user [a_kibana_rbac_default_space_dashboard_write_user]
[00:00:01]             │ debg created user a_kibana_rbac_default_space_dashboard_write_user
[00:00:01]             │ debg creating user a_kibana_rbac_default_space_visualize_write_user
[00:00:01]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added user [a_kibana_rbac_default_space_visualize_write_user]
[00:00:01]             │ debg created user a_kibana_rbac_default_space_visualize_write_user
[00:00:01]             │ debg creating user a_kibana_rbac_default_space_advanced_settings_read_user
[00:00:02]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added user [a_kibana_rbac_default_space_advanced_settings_read_user]
[00:00:02]             │ debg created user a_kibana_rbac_default_space_advanced_settings_read_user
[00:00:02]             │ debg creating user a_kibana_rbac_default_space_maps_read_user
[00:00:02]             │ info [o.e.x.s.a.u.TransportPutUserAction] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] added user [a_kibana_rbac_default_space_maps_read_user]
[00:00:02]             │ debg created user a_kibana_rbac_default_space_maps_read_user
[00:13:42]           └-: maps integration
[00:13:42]             └-> "before all" hook
[00:13:42]             └-> "before all" hook
[00:13:42]               │ info [maps] Loading "data.json"
[00:13:42]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] [.kibana_2/Y9JHOEMeS7Ge3LEjg10tRw] update_mapping [_doc]
[00:13:42]               │ info [maps] Indexed 9 docs into ".kibana"
[00:13:42]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] [.kibana_2/Y9JHOEMeS7Ge3LEjg10tRw] update_mapping [_doc]
[00:13:42]               │ debg Migrating saved objects
[00:13:42]               │ proc [kibana]   log   [10:33:24.752] [info][savedobjects-service] Creating index .kibana_task_manager_13.
[00:13:42]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] [.kibana_task_manager_13] creating index, cause [api], templates [], shards [1]/[1]
[00:13:42]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] updating number_of_replicas to [0] for indices [.kibana_task_manager_13]
[00:13:42]               │ proc [kibana]   log   [10:33:24.762] [info][savedobjects-service] Creating index .kibana_3.
[00:13:42]               │ info [o.e.c.m.MetadataCreateIndexService] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] [.kibana_3] creating index, cause [api], templates [], shards [1]/[1]
[00:13:42]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] updating number_of_replicas to [0] for indices [.kibana_3]
[00:13:42]               │ info [o.e.c.r.a.AllocationService] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] current.health="GREEN" message="Cluster health status changed from [YELLOW] to [GREEN] (reason: [shards started [[.kibana_task_manager_13][0], [.kibana_3][0]]])." previous.health="YELLOW" reason="shards started [[.kibana_task_manager_13][0], [.kibana_3][0]]"
[00:13:42]               │ proc [kibana]   log   [10:33:24.872] [info][savedobjects-service] Migrating .kibana_2 saved objects to .kibana_3
[00:13:42]               │ proc [kibana]   log   [10:33:24.874] [info][savedobjects-service] Migrating .kibana_task_manager_12 saved objects to .kibana_task_manager_13
[00:13:42]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] [.kibana_task_manager_13/2IcOqnH9T1Gnni_4rXfpXw] update_mapping [_doc]
[00:13:42]               │ proc [kibana]   log   [10:33:24.930] [info][savedobjects-service] Pointing alias .kibana_task_manager to .kibana_task_manager_13.
[00:13:42]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] [.kibana_3/CO65jp-JSa-wzPP3QokU_Q] update_mapping [_doc]
[00:13:42]               │ proc [kibana]   log   [10:33:25.021] [info][savedobjects-service] Finished in 269ms.
[00:13:42]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] [.kibana_3/CO65jp-JSa-wzPP3QokU_Q] update_mapping [_doc]
[00:13:43]               │ info [o.e.c.m.MetadataMappingService] [kibana-ci-immutable-debian-tests-xxl-1611738425068122663] [.kibana_3/CO65jp-JSa-wzPP3QokU_Q] update_mapping [_doc]
[00:13:43]               │ proc [kibana]   log   [10:33:25.154] [info][savedobjects-service] Pointing alias .kibana to .kibana_3.
[00:13:43]               │ proc [kibana]   log   [10:33:25.205] [info][savedobjects-service] Finished in 446ms.
[00:13:56]             └-: creating
[00:13:56]               └-> "before all" hook
[00:13:56]               └-> allows to select tags for a new map
[00:13:56]                 └-> "before each" hook: global before each
[00:13:56]                 └-> "before each" hook
[00:13:56]                   │ debg Open new Map
[00:13:56]                   │ debg navigateToActualUrl http://localhost:61201/app/maps/map
[00:13:56]                   │ debg browser[INFO] http://localhost:61201/app/maps/map?_t=1611743618514 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:13:56]                   │
[00:13:56]                   │ debg browser[INFO] http://localhost:61201/bootstrap.js 42:19 "^ A single error about an inline script not firing due to content security policy is expected!"
[00:13:56]                   │ debg currentUrl = http://localhost:61201/app/maps/map
[00:13:56]                   │          appUrl = http://localhost:61201/app/maps/map
[00:13:56]                   │ debg TestSubjects.find(kibanaChrome)
[00:13:56]                   │ debg Find.findByCssSelector('[data-test-subj="kibanaChrome"]') with timeout=60000
[00:13:57]                   │ debg Renderable.waitForRender for 1 elements
[00:13:57]                   │ debg Find.allByCssSelector('[data-render-complete="true"]') with timeout=10000
[00:14:07]                   │ debg Find.allByCssSelector('[data-render-complete="false"]') with timeout=10000
[00:14:07]                   │ERROR browser[SEVERE] https://tiles.maps.elastic.co/v7.11/manifest?elastic_tile_service_tos=agree&my_app_name=kibana&my_app_version=8.0.0-SNAPSHOT&license=33bd5a13-db93-44b5-9d22-a4f128d8c88c - Failed to load resource: net::ERR_NETWORK_CHANGED
[00:14:07]                   │ debg --- retry.try error: 0 elements completed rendering, still waiting on a total of 1
[00:14:07]                   │                      specifically:
[00:14:07]                   │
[00:14:08]                   │ debg Find.allByCssSelector('[data-render-complete="true"]') with timeout=10000
[00:14:18]                   │ debg Find.allByCssSelector('[data-render-complete="false"]') with timeout=10000
[00:14:18]                   │ debg --- retry.try failed again with the same message...
[00:14:18]                   │ debg Find.allByCssSelector('[data-render-complete="true"]') with timeout=10000
[00:14:28]                   │ debg Find.allByCssSelector('[data-render-complete="false"]') with timeout=10000
[00:14:28]                   │ debg --- retry.try failed again with the same message...
[00:14:29]                   │ debg Find.allByCssSelector('[data-render-complete="true"]') with timeout=10000
[00:14:39]                   │ debg Find.allByCssSelector('[data-render-complete="false"]') with timeout=10000
[00:14:39]                   │ debg --- retry.try failed again with the same message...
[00:14:40]                   │ debg Find.allByCssSelector('[data-render-complete="true"]') with timeout=10000
[00:14:50]                   │ debg Find.allByCssSelector('[data-render-complete="false"]') with timeout=10000
[00:14:50]                   │ debg --- retry.try failed again with the same message...
[00:14:50]                   │ debg Find.allByCssSelector('[data-render-complete="true"]') with timeout=10000
[00:15:00]                   │ debg Find.allByCssSelector('[data-render-complete="false"]') with timeout=10000
[00:15:00]                   │ debg --- retry.try failed again with the same message...
[00:15:01]                   │ debg Find.allByCssSelector('[data-render-complete="true"]') with timeout=10000
[00:15:11]                   │ debg Find.allByCssSelector('[data-render-complete="false"]') with timeout=10000
[00:15:11]                   │ debg --- retry.try failed again with the same message...
[00:15:11]                   │ debg Find.allByCssSelector('[data-render-complete="true"]') with timeout=10000
[00:15:21]                   │ debg Find.allByCssSelector('[data-render-complete="false"]') with timeout=10000
[00:15:21]                   │ debg --- retry.try failed again with the same message...
[00:15:22]                   │ debg Find.allByCssSelector('[data-render-complete="true"]') with timeout=10000
[00:15:32]                   │ debg Find.allByCssSelector('[data-render-complete="false"]') with timeout=10000
[00:15:32]                   │ debg --- retry.try failed again with the same message...
[00:15:32]                   │ debg Find.allByCssSelector('[data-render-complete="true"]') with timeout=10000
[00:15:42]                   │ debg Find.allByCssSelector('[data-render-complete="false"]') with timeout=10000
[00:15:42]                   │ debg --- retry.try failed again with the same message...
[00:15:43]                   │ debg Find.allByCssSelector('[data-render-complete="true"]') with timeout=10000
[00:15:53]                   │ debg Find.allByCssSelector('[data-render-complete="false"]') with timeout=10000
[00:15:53]                   │ debg --- retry.try failed again with the same message...
[00:15:53]                   │ debg Find.allByCssSelector('[data-render-complete="true"]') with timeout=10000
[00:16:03]                   │ debg Find.allByCssSelector('[data-render-complete="false"]') with timeout=10000
[00:16:03]                   │ debg --- retry.try failed again with the same message...
[00:16:04]                   │ info Taking screenshot "/dev/shm/workspace/parallel/20/kibana/x-pack/test/saved_object_tagging/functional/screenshots/failure/saved objects tagging - functional tests maps integration creating _before each_ hook.png"
[00:16:04]                   │ info Current URL is: http://localhost:61201/app/maps/map#?_g=(filters:!(),refreshInterval:(pause:!t,value:0),time:(from:now-15m,to:now))&_a=(filters:!(),query:(language:kuery,query:%27%27))
[00:16:04]                   │ info Saving page source to: /dev/shm/workspace/parallel/20/kibana/x-pack/test/saved_object_tagging/functional/failure_debug/html/saved objects tagging - functional tests maps integration creating _before each_ hook.html
[00:16:04]                   └- ✖ fail: saved objects tagging - functional tests maps integration creating "before each" hook for "allows to select tags for a new map"
[00:16:04]                   │      retry.try timeout: Error: 0 elements completed rendering, still waiting on a total of 1
[00:16:04]                   │                 specifically:
[00:16:04]                   │ 
[00:16:04]                   │     at /dev/shm/workspace/parallel/20/kibana/test/functional/services/renderable.ts:39:17
[00:16:04]                   │     at runMicrotasks (<anonymous>)
[00:16:04]                   │     at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:16:04]                   │     at runAttempt (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:16:04]                   │     at retryForSuccess (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:16:04]                   │     at Retry.try (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry.ts:32:14)
[00:16:04]                   │     at Renderable.waitForRender (/dev/shm/workspace/parallel/20/kibana/test/functional/services/renderable.ts:30:7)
[00:16:04]                   │     at GisPage.openNewMap (/dev/shm/workspace/parallel/20/kibana/x-pack/test/functional/page_objects/gis_page.ts:148:7)
[00:16:04]                   │     at Context.<anonymous> (/dev/shm/workspace/parallel/20/kibana/x-pack/test/saved_object_tagging/functional/tests/maps_integration.ts:77:9)
[00:16:04]                   │     at Object.apply (/dev/shm/workspace/parallel/20/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:16:04]                   │   Error: retry.try timeout: Error: 0 elements completed rendering, still waiting on a total of 1
[00:16:04]                   │                   specifically:
[00:16:04]                   │   
[00:16:04]                   │       at /dev/shm/workspace/parallel/20/kibana/test/functional/services/renderable.ts:39:17
[00:16:04]                   │       at runMicrotasks (<anonymous>)
[00:16:04]                   │       at processTicksAndRejections (internal/process/task_queues.js:93:5)
[00:16:04]                   │       at runAttempt (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:27:15)
[00:16:04]                   │       at retryForSuccess (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:66:21)
[00:16:04]                   │       at Retry.try (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry.ts:32:14)
[00:16:04]                   │       at Renderable.waitForRender (/dev/shm/workspace/parallel/20/kibana/test/functional/services/renderable.ts:30:7)
[00:16:04]                   │       at GisPage.openNewMap (test/functional/page_objects/gis_page.ts:148:7)
[00:16:04]                   │       at Context.<anonymous> (test/saved_object_tagging/functional/tests/maps_integration.ts:77:9)
[00:16:04]                   │       at Object.apply (/dev/shm/workspace/parallel/20/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:16:04]                   │       at onFailure (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:17:9)
[00:16:04]                   │       at retryForSuccess (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:57:13)
[00:16:04]                   │       at Retry.try (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry.ts:32:14)
[00:16:04]                   │       at Renderable.waitForRender (/dev/shm/workspace/parallel/20/kibana/test/functional/services/renderable.ts:30:7)
[00:16:04]                   │       at GisPage.openNewMap (test/functional/page_objects/gis_page.ts:148:7)
[00:16:04]                   │       at Context.<anonymous> (test/saved_object_tagging/functional/tests/maps_integration.ts:77:9)
[00:16:04]                   │       at Object.apply (/dev/shm/workspace/parallel/20/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
[00:16:04]                   │ 
[00:16:04]                   │ 

Stack Trace

Error: retry.try timeout: Error: 0 elements completed rendering, still waiting on a total of 1
                specifically:

    at /dev/shm/workspace/parallel/20/kibana/test/functional/services/renderable.ts:39:17
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at runAttempt (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:27:15)
    at retryForSuccess (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:66:21)
    at Retry.try (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry.ts:32:14)
    at Renderable.waitForRender (/dev/shm/workspace/parallel/20/kibana/test/functional/services/renderable.ts:30:7)
    at GisPage.openNewMap (test/functional/page_objects/gis_page.ts:148:7)
    at Context.<anonymous> (test/saved_object_tagging/functional/tests/maps_integration.ts:77:9)
    at Object.apply (/dev/shm/workspace/parallel/20/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)
    at onFailure (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:17:9)
    at retryForSuccess (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry_for_success.ts:57:13)
    at Retry.try (/dev/shm/workspace/parallel/20/kibana/test/common/services/retry/retry.ts:32:14)
    at Renderable.waitForRender (/dev/shm/workspace/parallel/20/kibana/test/functional/services/renderable.ts:30:7)
    at GisPage.openNewMap (test/functional/page_objects/gis_page.ts:148:7)
    at Context.<anonymous> (test/saved_object_tagging/functional/tests/maps_integration.ts:77:9)
    at Object.apply (/dev/shm/workspace/parallel/20/kibana/packages/kbn-test/src/functional_test_runner/lib/mocha/wrap_function.js:73:16)

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
apm 5.2MB 5.2MB +327.0B

History

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

@dgieselaar dgieselaar merged commit 9e68975 into elastic:master Jan 27, 2021
@dgieselaar dgieselaar deleted the upgrade-es-client branch January 27, 2021 11:35
dgieselaar added a commit to dgieselaar/kibana that referenced this pull request Jan 27, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
jloleysens added a commit to jloleysens/kibana that referenced this pull request Jan 27, 2021
…y-tests

* 'master' of github.com:elastic/kibana: (276 commits)
  [Telemetry] Settings Collector: redact sensitive reported values (elastic#88675)
  [CI] Combines Jest test jobs (elastic#85850)
  [Upgrade Assistant] Migrate server to new es-js client (elastic#89207)
  Migrate maps_legacy, maps_oss, region_map, and tile_map plugions to TS projects (elastic#89351)
  [Vega Docs] Add experimental flag on the vega maps title (elastic#89402)
  Increase the time needed to locate the save viz toast (elastic#89301)
  [Enterprise Search] Add links to doc links service (elastic#89260)
  Fixed regex bug in Safari (elastic#89399)
  [Lens] Fix indexpattern checks for missing references (elastic#88840)
  [Lens] Clean up usage collector (elastic#89109)
  update apm index pattern (elastic#89395)
  [APM] Upgrade ES client (elastic#86594)
  Enable v2 so migrations, disable in FTR tests (elastic#89297)
  [Search Sessions] Make search session indicator UI opt-in, refactor per-app capabilities (elastic#88699)
  Cleanup OSS code from visualizations wizard (elastic#89092)
  [APM] Optimize API test order (elastic#88654)
  Rename conversion function, extract to module scope and add tests. (elastic#89018)
  [core.logging] Add ops logs to the KP logging system (elastic#88070)
  chore(NA): improve ts build refs performance on kbn bootstrap (elastic#89333)
  skip flaky suite (elastic#89379)
  ...

# Conflicts:
#	x-pack/plugins/index_lifecycle_management/public/application/sections/edit_policy/components/timeline/timeline.tsx
#	x-pack/test/accessibility/config.ts
gmmorris added a commit to gmmorris/kibana that referenced this pull request Jan 27, 2021
…ana into task-manager/shift-on-trend

* 'task-manager/shift-on-trend' of github.com:gmmorris/kibana: (74 commits)
  [Metrics UI] Fix Host Overview boxes in Host Detail page (elastic#89299)
  [Telemetry] Settings Collector: redact sensitive reported values (elastic#88675)
  [CI] Combines Jest test jobs (elastic#85850)
  [Upgrade Assistant] Migrate server to new es-js client (elastic#89207)
  Migrate maps_legacy, maps_oss, region_map, and tile_map plugions to TS projects (elastic#89351)
  [Vega Docs] Add experimental flag on the vega maps title (elastic#89402)
  Increase the time needed to locate the save viz toast (elastic#89301)
  [Enterprise Search] Add links to doc links service (elastic#89260)
  Fixed regex bug in Safari (elastic#89399)
  [Lens] Fix indexpattern checks for missing references (elastic#88840)
  [Lens] Clean up usage collector (elastic#89109)
  update apm index pattern (elastic#89395)
  [APM] Upgrade ES client (elastic#86594)
  Enable v2 so migrations, disable in FTR tests (elastic#89297)
  [Search Sessions] Make search session indicator UI opt-in, refactor per-app capabilities (elastic#88699)
  Cleanup OSS code from visualizations wizard (elastic#89092)
  [APM] Optimize API test order (elastic#88654)
  Rename conversion function, extract to module scope and add tests. (elastic#89018)
  [core.logging] Add ops logs to the KP logging system (elastic#88070)
  chore(NA): improve ts build refs performance on kbn bootstrap (elastic#89333)
  ...
dgieselaar added a commit that referenced this pull request Jan 28, 2021
Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:APM All issues that need APM UI Team support v7.12.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[APM] Migrate to new Elasticsearch client
5 participants