Skip to content

Commit 37d43d0

Browse files
authored
Merge branch 'main' into create-deploy-cloud-pipeline
2 parents fa17ab7 + a382d35 commit 37d43d0

File tree

8,584 files changed

+41086
-27807
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

8,584 files changed

+41086
-27807
lines changed

.buildkite/ftr_platform_stateful_configs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ enabled:
178178
- x-pack/test/banners_functional/config.ts
179179
- x-pack/test/cases_api_integration/security_and_spaces/config_basic.ts
180180
- x-pack/test/cases_api_integration/security_and_spaces/config_trial.ts
181+
- x-pack/test/cases_api_integration/security_and_spaces/config_trial_common.ts
181182
- x-pack/test/cases_api_integration/security_and_spaces/config_no_public_base_url.ts
182183
- x-pack/test/cases_api_integration/spaces_only/config.ts
183184
- x-pack/test/disable_ems/config.ts

.buildkite/pipeline-resource-definitions/kibana-es-snapshots.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
SLACK_NOTIFICATIONS_CHANNEL: '#kibana-operations-alerts'
2323
ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true'
2424
allow_rebuilds: true
25-
branch_configuration: main 8.x 8.17 8.16 8.15 7.17
25+
branch_configuration: main 8.x 8.17 8.16 7.17
2626
default_branch: main
2727
repository: elastic/kibana
2828
pipeline_file: .buildkite/pipelines/es_snapshots/build.yml
@@ -95,7 +95,7 @@ spec:
9595
SLACK_NOTIFICATIONS_CHANNEL: '#kibana-operations-alerts'
9696
ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true'
9797
allow_rebuilds: true
98-
branch_configuration: main 8.x 8.17 8.16 8.15 7.17
98+
branch_configuration: main 8.x 8.17 8.16 7.17
9999
default_branch: main
100100
repository: elastic/kibana
101101
pipeline_file: .buildkite/pipelines/es_snapshots/promote.yml
@@ -144,7 +144,7 @@ spec:
144144
ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true'
145145
REPORT_FAILED_TESTS_TO_GITHUB: 'true'
146146
allow_rebuilds: true
147-
branch_configuration: main 8.x 8.17 8.16 8.15 7.17
147+
branch_configuration: main 8.x 8.17 8.16 7.17
148148
default_branch: main
149149
repository: elastic/kibana
150150
pipeline_file: .buildkite/pipelines/es_snapshots/verify.yml

.buildkite/pipeline-resource-definitions/kibana-on-merge-unsupported-ftrs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ spec:
2222
SLACK_NOTIFICATIONS_CHANNEL: '#kibana-unsupported-ftrs-alerts'
2323
ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true'
2424
allow_rebuilds: true
25-
branch_configuration: main 8.x 8.17 8.16 8.15 7.17
25+
branch_configuration: main 8.x 8.17 8.16 7.17
2626
default_branch: main
2727
repository: elastic/kibana
2828
pipeline_file: .buildkite/pipelines/on_merge_unsupported_ftrs.yml

.buildkite/pipeline-resource-definitions/kibana-on-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ spec:
2525
REPORT_FAILED_TESTS_TO_GITHUB: 'true'
2626
ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true'
2727
allow_rebuilds: true
28-
branch_configuration: main 8.x 8.17 8.16 8.15 7.17
28+
branch_configuration: main 8.x 8.17 8.16 7.17
2929
default_branch: main
3030
repository: elastic/kibana
3131
pipeline_file: .buildkite/pipelines/on_merge.yml

.buildkite/pipeline-resource-definitions/kibana-package-registry.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ spec:
2121
env:
2222
SLACK_NOTIFICATIONS_CHANNEL: "#kibana-operations-alerts"
2323
ELASTIC_SLACK_NOTIFICATIONS_ENABLED: "true"
24-
REPORT_FAILED_TESTS_TO_GITHUB: 'true'
24+
REPORT_FAILED_TESTS_TO_GITHUB: "true"
25+
FLEET_PACKAGE_REGISTRY_DOCKER_IMAGE: "docker.elastic.co/package-registry/distribution:lite"
2526
repository: elastic/kibana
2627
branch_configuration: main
2728
default_branch: main
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/*
2+
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
3+
* or more contributor license agreements. Licensed under the "Elastic License
4+
* 2.0", the "GNU Affero General Public License v3.0 only", and the "Server Side
5+
* Public License v 1"; you may not use this file except in compliance with, at
6+
* your election, the "Elastic License 2.0", the "GNU Affero General Public
7+
* License v3.0 only", or the "Server Side Public License, v 1".
8+
*/
9+
10+
export function emitPipeline(pipelineSteps: string[]) {
11+
const pipelineStr = [...new Set(pipelineSteps)].join('\n');
12+
console.log(pipelineStr);
13+
}

.buildkite/pipeline-utils/buildkite/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99

1010
export * from './client';
1111
export * from './types';
12+
export * from './emitPipeline';

.buildkite/pipelines/artifacts.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ steps:
66
imageProject: elastic-images-prod
77
provider: gcp
88
machineType: c2-standard-16
9-
diskSizeGb: 125
9+
diskSizeGb: 150
1010
timeout_in_minutes: 120
1111
retry:
1212
automatic:

.buildkite/pipelines/on_merge_unsupported_ftrs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ steps:
3737
machineType: n2-standard-4
3838
preemptible: true
3939
depends_on: build
40+
env:
41+
PING_SLACK_TEAM: "@obs-ux-infra_services-team"
4042
timeout_in_minutes: 120
4143
retry:
4244
automatic:
@@ -54,6 +56,8 @@ steps:
5456
machineType: n2-standard-4
5557
preemptible: true
5658
depends_on: build
59+
env:
60+
PING_SLACK_TEAM: "@obs-ux-infra_services-team"
5761
timeout_in_minutes: 120
5862
retry:
5963
automatic:

.buildkite/scripts/lifecycle/post_command.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,12 @@ if [[ "$IS_TEST_EXECUTION_STEP" == "true" ]]; then
5252
buildkite-agent artifact upload 'target/test_failures/**/*'
5353
ts-node .buildkite/scripts/lifecycle/annotate_test_failures.ts
5454
fi
55+
5556
fi
57+
58+
if [[ $BUILDKITE_COMMAND_EXIT_STATUS -ne 0 ]]; then
59+
# If the slack team environment variable is set, ping the team in slack
60+
if [ -n "${PING_SLACK_TEAM:-}" ]; then
61+
buildkite-agent meta-data set 'slack:ping_team:body' "${PING_SLACK_TEAM}, can you please take a look at the test failures?"
62+
fi
63+
fi

0 commit comments

Comments
 (0)