-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[kbn-journey] add journeys running Kibana server with http2 (#194732)
## Summary This PR introduces two performance journey-replicas of the existing `ecommerce_dashboard` and `data_stress_test_lens` executed with the Kibana server running HTTP/2. The goal is to monitor and compare performance between HTTP/1.1 and HTTP/2 perf pipeline is triggered https://buildkite.com/elastic/kibana-single-user-performance/builds/14561 --------- Co-authored-by: kibanamachine <[email protected]> (cherry picked from commit 77102c1)
- Loading branch information
1 parent
7f04a67
commit 8c46aae
Showing
6 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import type { FtrConfigProviderContext } from '@kbn/test'; | ||
import { configureHTTP2 } from '@kbn/test-suites-src/common/configure_http2'; | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default async function ({ readConfigFile }: FtrConfigProviderContext) { | ||
const xpackFunctionalConfig = await readConfigFile( | ||
require.resolve('@kbn/test-suites-xpack/functional/config.base') | ||
); | ||
|
||
return configureHTTP2({ | ||
...xpackFunctionalConfig.getAll(), | ||
}); | ||
} |
18 changes: 18 additions & 0 deletions
18
x-pack/performance/journeys_e2e/data_stress_test_lens_http2.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { Journey } from '@kbn/journeys'; | ||
|
||
export const journey = new Journey({ | ||
kbnArchives: ['test/functional/fixtures/kbn_archiver/stress_test'], | ||
esArchives: ['test/functional/fixtures/es_archiver/stress_test'], | ||
ftrConfigPath: 'x-pack/performance/configs/http2_config.ts', | ||
}).step('Go to dashboard', async ({ page, kbnUrl, kibanaServer, kibanaPage }) => { | ||
await kibanaServer.uiSettings.update({ 'histogram:maxBars': 100 }); | ||
await page.goto(kbnUrl.get(`/app/dashboards#/view/92b143a0-2e9c-11ed-b1b6-a504560b392c`)); | ||
await kibanaPage.waitForVisualizations({ count: 1 }); | ||
}); |
25 changes: 25 additions & 0 deletions
25
x-pack/performance/journeys_e2e/ecommerce_dashboard_http2.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License | ||
* 2.0; you may not use this file except in compliance with the Elastic License | ||
* 2.0. | ||
*/ | ||
|
||
import { Journey } from '@kbn/journeys'; | ||
import { subj } from '@kbn/test-subj-selector'; | ||
|
||
export const journey = new Journey({ | ||
esArchives: ['x-pack/performance/es_archives/sample_data_ecommerce'], | ||
kbnArchives: ['x-pack/performance/kbn_archives/ecommerce_no_map_dashboard'], | ||
ftrConfigPath: 'x-pack/performance/configs/http2_config.ts', | ||
}) | ||
|
||
.step('Go to Dashboards Page', async ({ page, kbnUrl, kibanaPage }) => { | ||
await page.goto(kbnUrl.get(`/app/dashboards`)); | ||
await kibanaPage.waitForListViewTable(); | ||
}) | ||
|
||
.step('Go to Ecommerce Dashboard', async ({ page, kibanaPage }) => { | ||
await page.click(subj('dashboardListingTitleLink-[eCommerce]-Revenue-Dashboard')); | ||
await kibanaPage.waitForVisualizations({ count: 13 }); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,5 +22,6 @@ | |
"@kbn/expect", | ||
"@kbn/dev-utils", | ||
"@kbn/apm-synthtrace-client", | ||
"@kbn/test-suites-src", | ||
] | ||
} |