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

Try kbn-alert-load ci steps #126058

Closed
wants to merge 32 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
8dfa518
Try kbn-alert-load ci steps
nkhristinin Feb 21, 2022
313a1df
Try one more time
nkhristinin Feb 21, 2022
41e440d
Try other folder
nkhristinin Feb 21, 2022
a17672e
Disabele build
nkhristinin Feb 21, 2022
40eaf16
remove on build dependendices
nkhristinin Feb 21, 2022
41fffba
Try npm
nkhristinin Feb 22, 2022
b618496
remove on build deos
nkhristinin Feb 22, 2022
cc7db19
add deps
nkhristinin Feb 22, 2022
a0fe265
add build back
nkhristinin Feb 22, 2022
8675c48
Keep only meta-data
nkhristinin Feb 22, 2022
8b56742
Try to run some tests
nkhristinin Feb 22, 2022
7078db1
Fix artifacts upload
nkhristinin Feb 22, 2022
971ad13
Add variablres
nkhristinin Feb 22, 2022
2a42408
add log
nkhristinin Feb 22, 2022
4c12706
Keep credentilas silent
nkhristinin Feb 23, 2022
3719777
try to use vault
nkhristinin Feb 23, 2022
a537f76
comment meta info
nkhristinin Feb 23, 2022
9e67c94
add utils
nkhristinin Feb 23, 2022
4c621cc
try to login in vault
nkhristinin Feb 23, 2022
90ba357
remove vault token generation
nkhristinin Feb 23, 2022
47d1877
Merge branch 'main' into kbn-alert-load-ci
kibanamachine Feb 24, 2022
08d24f1
Try new vault
nkhristinin Feb 24, 2022
16a8269
Return build
nkhristinin Feb 24, 2022
694e837
Try on more time
nkhristinin Feb 24, 2022
b1ba724
bump version
nkhristinin Feb 28, 2022
f08b0ca
export vars
nkhristinin Feb 28, 2022
00cb345
echo url
nkhristinin Feb 28, 2022
d6d6239
Try one more time
nkhristinin Feb 28, 2022
a78346c
bump version
nkhristinin Feb 28, 2022
b7374b5
Bump version
nkhristinin Mar 1, 2022
14f7425
Merge branch 'main' into kbn-alert-load-ci
kibanamachine Mar 2, 2022
d0fe8e1
fix ci script
nkhristinin Mar 2, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
322 changes: 161 additions & 161 deletions .buildkite/pipelines/pull_request/base.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,164 +13,164 @@ steps:
if: "build.env('KIBANA_BUILD_ID') == null || build.env('KIBANA_BUILD_ID') == ''"
timeout_in_minutes: 60

- command: .buildkite/scripts/steps/functional/xpack_cigroup.sh
label: 'Default CI Group'
parallelism: 27
agents:
queue: n2-4
depends_on: build
timeout_in_minutes: 150
key: default-cigroup
retry:
automatic:
- exit_status: '*'
limit: 1

- command: CI_GROUP=Docker .buildkite/scripts/steps/functional/xpack_cigroup.sh
label: 'Docker CI Group'
agents:
queue: n2-4
depends_on: build
timeout_in_minutes: 120
key: default-cigroup-docker
retry:
automatic:
- exit_status: '*'
limit: 1

- command: .buildkite/scripts/steps/functional/oss_cigroup.sh
label: 'OSS CI Group'
parallelism: 11
agents:
queue: ci-group-4d
depends_on: build
timeout_in_minutes: 120
key: oss-cigroup
retry:
automatic:
- exit_status: '*'
limit: 1

- command: .buildkite/scripts/steps/functional/oss_accessibility.sh
label: 'OSS Accessibility Tests'
agents:
queue: ci-group-4d
depends_on: build
timeout_in_minutes: 120
retry:
automatic:
- exit_status: '*'
limit: 1

- command: .buildkite/scripts/steps/functional/xpack_accessibility.sh
label: 'Default Accessibility Tests'
agents:
queue: n2-4
depends_on: build
timeout_in_minutes: 120
retry:
automatic:
- exit_status: '*'
limit: 1

- command: .buildkite/scripts/steps/functional/oss_firefox.sh
label: 'OSS Firefox Tests'
agents:
queue: ci-group-4d
depends_on: build
timeout_in_minutes: 120
retry:
automatic:
- exit_status: '*'
limit: 1

- command: .buildkite/scripts/steps/functional/xpack_firefox.sh
label: 'Default Firefox Tests'
agents:
queue: n2-4
depends_on: build
timeout_in_minutes: 120
retry:
automatic:
- exit_status: '*'
limit: 1

- command: .buildkite/scripts/steps/functional/oss_misc.sh
label: 'OSS Misc Functional Tests'
agents:
queue: n2-4
depends_on: build
timeout_in_minutes: 120
retry:
automatic:
- exit_status: '*'
limit: 1

- command: .buildkite/scripts/steps/functional/xpack_saved_object_field_metrics.sh
label: 'Saved Object Field Metrics'
agents:
queue: n2-4
depends_on: build
timeout_in_minutes: 120
retry:
automatic:
- exit_status: '*'
limit: 1

- command: .buildkite/scripts/steps/test/jest.sh
label: 'Jest Tests'
parallelism: 8
agents:
queue: n2-4
timeout_in_minutes: 90
key: jest

- command: .buildkite/scripts/steps/test/jest_integration.sh
label: 'Jest Integration Tests'
parallelism: 2
agents:
queue: n2-4
timeout_in_minutes: 90
key: jest-integration

- command: .buildkite/scripts/steps/test/api_integration.sh
label: 'API Integration Tests'
agents:
queue: n2-2
timeout_in_minutes: 120
key: api-integration

- command: .buildkite/scripts/steps/lint.sh
label: 'Linting'
agents:
queue: n2-2
key: linting
timeout_in_minutes: 90

- command: .buildkite/scripts/steps/lint_with_types.sh
label: 'Linting (with types)'
agents:
queue: c2-16
key: linting_with_types
timeout_in_minutes: 90

- command: .buildkite/scripts/steps/checks.sh
label: 'Checks'
agents:
queue: c2-8
key: checks
timeout_in_minutes: 120

- command: .buildkite/scripts/steps/storybooks/build_and_upload.sh
label: 'Build Storybooks'
agents:
queue: c2-4
key: storybooks
timeout_in_minutes: 60

- command: .buildkite/scripts/steps/webpack_bundle_analyzer/build_and_upload.sh
label: 'Build Webpack Bundle Analyzer reports'
agents:
queue: n2-2
key: webpack_bundle_analyzer
timeout_in_minutes: 60
# - command: .buildkite/scripts/steps/functional/xpack_cigroup.sh
# label: 'Default CI Group'
# parallelism: 27
# agents:
# queue: n2-4
# depends_on: build
# timeout_in_minutes: 150
# key: default-cigroup
# retry:
# automatic:
# - exit_status: '*'
# limit: 1

# - command: CI_GROUP=Docker .buildkite/scripts/steps/functional/xpack_cigroup.sh
# label: 'Docker CI Group'
# agents:
# queue: n2-4
# depends_on: build
# timeout_in_minutes: 120
# key: default-cigroup-docker
# retry:
# automatic:
# - exit_status: '*'
# limit: 1

# - command: .buildkite/scripts/steps/functional/oss_cigroup.sh
# label: 'OSS CI Group'
# parallelism: 11
# agents:
# queue: ci-group-4d
# depends_on: build
# timeout_in_minutes: 120
# key: oss-cigroup
# retry:
# automatic:
# - exit_status: '*'
# limit: 1

# - command: .buildkite/scripts/steps/functional/oss_accessibility.sh
# label: 'OSS Accessibility Tests'
# agents:
# queue: ci-group-4d
# depends_on: build
# timeout_in_minutes: 120
# retry:
# automatic:
# - exit_status: '*'
# limit: 1

# - command: .buildkite/scripts/steps/functional/xpack_accessibility.sh
# label: 'Default Accessibility Tests'
# agents:
# queue: n2-4
# depends_on: build
# timeout_in_minutes: 120
# retry:
# automatic:
# - exit_status: '*'
# limit: 1

# - command: .buildkite/scripts/steps/functional/oss_firefox.sh
# label: 'OSS Firefox Tests'
# agents:
# queue: ci-group-4d
# depends_on: build
# timeout_in_minutes: 120
# retry:
# automatic:
# - exit_status: '*'
# limit: 1

# - command: .buildkite/scripts/steps/functional/xpack_firefox.sh
# label: 'Default Firefox Tests'
# agents:
# queue: n2-4
# depends_on: build
# timeout_in_minutes: 120
# retry:
# automatic:
# - exit_status: '*'
# limit: 1

# - command: .buildkite/scripts/steps/functional/oss_misc.sh
# label: 'OSS Misc Functional Tests'
# agents:
# queue: n2-4
# depends_on: build
# timeout_in_minutes: 120
# retry:
# automatic:
# - exit_status: '*'
# limit: 1

# - command: .buildkite/scripts/steps/functional/xpack_saved_object_field_metrics.sh
# label: 'Saved Object Field Metrics'
# agents:
# queue: n2-4
# depends_on: build
# timeout_in_minutes: 120
# retry:
# automatic:
# - exit_status: '*'
# limit: 1

# - command: .buildkite/scripts/steps/test/jest.sh
# label: 'Jest Tests'
# parallelism: 8
# agents:
# queue: n2-4
# timeout_in_minutes: 90
# key: jest

# - command: .buildkite/scripts/steps/test/jest_integration.sh
# label: 'Jest Integration Tests'
# parallelism: 2
# agents:
# queue: n2-4
# timeout_in_minutes: 90
# key: jest-integration

# - command: .buildkite/scripts/steps/test/api_integration.sh
# label: 'API Integration Tests'
# agents:
# queue: n2-2
# timeout_in_minutes: 120
# key: api-integration

# - command: .buildkite/scripts/steps/lint.sh
# label: 'Linting'
# agents:
# queue: n2-2
# key: linting
# timeout_in_minutes: 90

# - command: .buildkite/scripts/steps/lint_with_types.sh
# label: 'Linting (with types)'
# agents:
# queue: c2-16
# key: linting_with_types
# timeout_in_minutes: 90

# - command: .buildkite/scripts/steps/checks.sh
# label: 'Checks'
# agents:
# queue: c2-8
# key: checks
# timeout_in_minutes: 120

# - command: .buildkite/scripts/steps/storybooks/build_and_upload.sh
# label: 'Build Storybooks'
# agents:
# queue: c2-4
# key: storybooks
# timeout_in_minutes: 60

# - command: .buildkite/scripts/steps/webpack_bundle_analyzer/build_and_upload.sh
# label: 'Build Webpack Bundle Analyzer reports'
# agents:
# queue: n2-2
# key: webpack_bundle_analyzer
# timeout_in_minutes: 60
1 change: 1 addition & 0 deletions .buildkite/pipelines/pull_request/deploy_cloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ steps:
queue: n2-2
depends_on: build
timeout_in_minutes: 30
key: deploy_cloud
8 changes: 8 additions & 0 deletions .buildkite/pipelines/pull_request/kbn-alert-load.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
steps:
- command: .buildkite/scripts/steps/performance/kbn-alert-load.sh
label: 'KBN-ALERT-LOAD'
agents:
queue: n2-2
# depends_on: build
depends_on: deploy_cloud
timeout_in_minutes: 60
4 changes: 4 additions & 0 deletions .buildkite/scripts/pipelines/pull_request/pipeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ const uploadPipeline = (pipelineContent) => {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/deploy_cloud.yml'));
}

if (process.env.GITHUB_PR_LABELS.includes('ci:kbn-alert-load')) {
pipeline.push(getPipeline('.buildkite/pipelines/pull_request/kbn-alert-load.yml'));
}

pipeline.push(getPipeline('.buildkite/pipelines/pull_request/post_build.yml'));

uploadPipeline(pipeline.join('\n'));
Expand Down
2 changes: 2 additions & 0 deletions .buildkite/scripts/steps/cloud/build_and_deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,4 +90,6 @@ cat << EOF | buildkite-agent annotate --style "info" --context cloud
Image: $CLOUD_IMAGE
EOF

buildkite-agent meta-data set "META_CLOUD_DEPLOYMENT_KIBANA_URL" ${CLOUD_DEPLOYMENT_KIBANA_URL}
buildkite-agent meta-data set "META_CLOUD_DEPLOYMENT_ELASTICSEARCH_URL" ${CLOUD_DEPLOYMENT_ELASTICSEARCH_URL}
buildkite-agent meta-data set pr_comment:deploy_cloud:head "* [Cloud Deployment](${CLOUD_DEPLOYMENT_KIBANA_URL})"
Loading