-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Using @elastic/synthetics to run uptime e2e tests #90673
Closed
Closed
Changes from 15 commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
6c4222f
Added server and runner script
shahzad31 c26d77b
Added server and runner script
shahzad31 70ce302
revert
shahzad31 33c535e
revert
shahzad31 8054b8e
remove fixture
shahzad31 978b6d1
update tsconfig
shahzad31 7c03734
update json file
shahzad31 5bb1d08
Merge branch 'master' into playwright-ftr-e2e
kibanamachine bc83e06
Merge branch 'master' into playwright-ftr-e2e
shahzad31 2cf8be0
Merge branch 'playwright-ftr-e2e' of https://github.com/shahzad31/kib…
shahzad31 3ff35c5
update ts config
shahzad31 3988f1e
update unit test
shahzad31 75497cf
update ts
shahzad31 237ef3d
[CI] support uptime ui and apm-ui analysis
v1v 9846b5e
Support uptime and apm e2e in parallel stages
v1v 6681a73
Look for changes for the uptime sub-folder
v1v 4cf0b08
Refactor
v1v 3011e56
Support GitHub checks for the uptime e2e
v1v 9a256c4
Merge branch 'master' into playwright-ftr-e2e
kibanamachine 1adbaa0
fix signature
v1v dd35c42
Merge branch 'playwright-ftr-e2e' of github.com:shahzad31/kibana into…
v1v 7b4916a
Initial attempt to support the uptime e2e in the CI
v1v 98c4432
fix syntax
shahzad31 fb8ba17
Merge branch 'playwright-ftr-e2e' of https://github.com/shahzad31/kib…
shahzad31 e60c82b
Use the internal ES port for the healthcheck
v1v 8932eba
Use the kibana port for the uptime e2e
v1v c1cd9bd
Checkout in the new stage
v1v dccb092
fix linting
v1v 9497ebc
fix credentials, location and waitfor
v1v 518df1c
added kibana wait in runner
shahzad31 818e0a8
Merge branch 'playwright-ftr-e2e' of https://github.com/shahzad31/kib…
shahzad31 108786b
delegate the wait for to the consumer
v1v 82c3844
store docker context
v1v 7c91ab0
fix the must be owned by the user identifier
v1v 4f619dc
no watch
shahzad31 b75aede
headless mode
shahzad31 2d4da12
Merge branch 'master' into playwright-ftr-e2e
shahzad31 6dd9bd1
update journey
shahzad31 b44cc44
timeout
shahzad31 bcdd44a
ci: kill previous running builds
v1v 8040fa2
test timeout
shahzad31 badb9eb
Merge branch 'playwright-ftr-e2e' of https://github.com/shahzad31/kib…
shahzad31 1dbcb04
Merge branch 'master' into playwright-ftr-e2e
shahzad31 984a3c9
update loading
shahzad31 282d943
update selector
shahzad31 92a8f85
sandbox false
shahzad31 30d4af5
Merge branch 'master' into playwright-ftr-e2e
shahzad31 2b87d01
update
shahzad31 ffae5f1
update
shahzad31 fd69e6e
update
shahzad31 0befc3d
revert
shahzad31 47a7dfb
Merge branch 'master' into playwright-ftr-e2e
shahzad31 ce0d72e
try different stuff
shahzad31 1ff39d5
ci: set env variable to run the build
v1v f4402ef
update
shahzad31 fa65022
Merge branch 'playwright-ftr-e2e' of https://github.com/shahzad31/kib…
shahzad31 57283c0
Merge branch 'master' into playwright-ftr-e2e
shahzad31 20ce6dc
Merge branch 'master' into playwright-ftr-e2e
shahzad31 38e5ad5
wip
shahzad31 c032b11
revert
shahzad31 92f3b41
Delete run_elasticsearch.js
shahzad31 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,50 @@ | ||
/* | ||
* 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 { FtrConfigProviderContext } from '@kbn/test/types/ftr'; | ||
|
||
import { CA_CERT_PATH } from '@kbn/dev-utils'; | ||
async function config({ readConfigFile }: FtrConfigProviderContext) { | ||
const kibanaCommonTestsConfig = await readConfigFile( | ||
require.resolve('../../../../test/common/config.js') | ||
); | ||
const xpackFunctionalTestsConfig = await readConfigFile( | ||
require.resolve('../../../test/functional/config.js') | ||
); | ||
|
||
return { | ||
...kibanaCommonTestsConfig.getAll(), | ||
|
||
esTestCluster: { | ||
skipEsCluster: true, | ||
...xpackFunctionalTestsConfig.get('esTestCluster'), | ||
serverArgs: [ | ||
...xpackFunctionalTestsConfig.get('esTestCluster.serverArgs'), | ||
// define custom es server here | ||
// API Keys is enabled at the top level | ||
'xpack.security.enabled=true', | ||
], | ||
}, | ||
|
||
kbnTestServer: { | ||
...xpackFunctionalTestsConfig.get('kbnTestServer'), | ||
serverArgs: [ | ||
...xpackFunctionalTestsConfig.get('kbnTestServer.serverArgs'), | ||
'--csp.strict=false', | ||
// define custom kibana server args here | ||
`--elasticsearch.ssl.certificateAuthorities=${CA_CERT_PATH}`, | ||
`--elasticsearch.ignoreVersionMismatch=true`, | ||
`--uiSettings.overrides.theme:darkMode=true`, | ||
`--elasticsearch.username=kibana_system`, | ||
`--elasticsearch.password=changeme`, | ||
], | ||
}, | ||
}; | ||
} | ||
|
||
// eslint-disable-next-line import/no-default-export | ||
export default config; |
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,48 @@ | ||
# 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. | ||
|
||
version: '3.7' | ||
services: | ||
elasticsearch: | ||
image: docker.elastic.co/elasticsearch/elasticsearch:${STACK_VERSION} | ||
container_name: uptime-e2e-es | ||
healthcheck: | ||
test: | ||
['CMD-SHELL', 'curl -s http://localhost:9220/_cluster/health | grep -vq ''"status":"red"'''] | ||
retries: 10 | ||
interval: 20s | ||
environment: | ||
- node.name=elasticsearch | ||
- cluster.name=es-docker-cluster | ||
- cluster.initial_master_nodes=elasticsearch | ||
- bootstrap.memory_lock=true | ||
- 'ES_JAVA_OPTS=-Xms512m -Xmx512m' | ||
- ELASTICSEARCH_PORT=9220 | ||
- xpack.security.enabled=true | ||
- ELASTIC_PASSWORD=changeme | ||
ulimits: | ||
memlock: | ||
soft: -1 | ||
hard: -1 | ||
ports: | ||
- '9220:9200' | ||
- '9320:9300' | ||
expose: | ||
- '9220' | ||
networks: | ||
- elastic | ||
heartbeat: | ||
image: docker.elastic.co/beats/heartbeat:${STACK_VERSION} | ||
container_name: uptime-e2e-heartbeat | ||
depends_on: | ||
- elasticsearch | ||
volumes: | ||
- ./heartbeat.docker.yml:/usr/share/heartbeat/heartbeat.yml:ro | ||
networks: | ||
- elastic | ||
|
||
networks: | ||
elastic: | ||
driver: bridge |
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,12 @@ | ||
/* | ||
* 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 { GenericFtrProviderContext } from '@kbn/test/types/ftr'; | ||
|
||
import { services } from './services'; | ||
|
||
export type FtrProviderContext = GenericFtrProviderContext<typeof services, {}>; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the new section after restructuring the CI pipeline to support two parallel stages, one for the existing e2e for the APM-UI and a new stage (this one) for the Uptime e2e.