refact(NA): rename .buildkite/pipeline-resource-definitions/kibana-es-forward-testing-v9.yml to 9-fot-0

This commit is contained in:
Tiago Costa 2024-12-13 00:07:11 +00:00
parent 52dd7e17c4
commit e46f0b608d
No known key found for this signature in database
GPG key ID: BAECC2D04A04C6EA
4 changed files with 14 additions and 14 deletions

View file

@ -2,10 +2,10 @@
apiVersion: backstage.io/v1alpha1
kind: Resource
metadata:
name: bk-kibana-es-forward-compatibility-testing-v9
name: bk-kibana-es-forward-compatibility-testing-9-dot-0
description: Forward compatibility testing between Kibana 8.18 and ES 9+
links:
- url: 'https://buildkite.com/elastic/kibana-es-forward-compatibility-testing-v9'
- url: 'https://buildkite.com/elastic/kibana-es-forward-compatibility-testing-9-dot-0'
title: Pipeline link
spec:
type: buildkite-pipeline
@ -26,7 +26,7 @@ spec:
branch_configuration: main
default_branch: main
repository: elastic/kibana
pipeline_file: .buildkite/pipelines/es_forward_v9.yml # Note: this file exists in 8.x only and should be moved into 8.18 once the branch is cut
pipeline_file: .buildkite/pipelines/es_forward_9_dot_0.yml # Note: this file exists in 8.x only and should be moved into 8.18 once the branch is cut
provider_settings:
prefix_pull_request_fork_branch_names: false
trigger_mode: none

View file

@ -18,7 +18,7 @@ spec:
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-console-definitions-sync.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-coverage-daily.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-deploy-project.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-es-forward-testing-v9.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-es-forward-testing-9-dot-0.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-es-forward-testing.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-es-serverless-snapshots.yml
- https://github.com/elastic/kibana/blob/main/.buildkite/pipeline-resource-definitions/kibana-es-snapshots.yml

View file

@ -51,11 +51,11 @@ spec:
message: Trigger ES forward compatibility tests
env:
TRIGGER_PIPELINE_SET: es-forward
Trigger ES forward compatibility tests v9:
Trigger ES forward compatibility tests 9.0:
cronline: 0 5 * * *
message: Trigger ES forward compatibility tests v9
message: Trigger ES forward compatibility tests 9.0
env:
TRIGGER_PIPELINE_SET: es-forward-v9
TRIGGER_PIPELINE_SET: es-forward-9-dot-0
Trigger artifact staging builds:
cronline: 0 7 * * * America/New_York
message: Trigger artifact staging builds

View file

@ -12,7 +12,7 @@ import { getVersionsFile, BuildkiteTriggerStep } from '#pipeline-utils';
const pipelineSets = {
'es-forward': 'kibana-es-forward-compatibility-testing',
'es-forward-v9': 'kibana-es-forward-compatibility-testing-v9',
'es-forward-9-dot-0': 'kibana-es-forward-compatibility-testing-9-dot-0',
'artifacts-snapshot': 'kibana-artifacts-snapshot',
'artifacts-staging': 'kibana-artifacts-staging',
'artifacts-trigger': 'kibana-artifacts-trigger',
@ -41,8 +41,8 @@ async function main() {
pipelineSteps.push(...getESForwardPipelineTriggers());
break;
}
case 'es-forward-v9': {
pipelineSteps.push(...getESForwardV9PipelineTriggers());
case 'es-forward-9-dot-0': {
pipelineSteps.push(...getESForward9Dot0PipelineTriggers());
break;
}
case 'artifacts-snapshot': {
@ -96,22 +96,22 @@ export function getESForwardPipelineTriggers(): BuildkiteTriggerStep[] {
}
/**
* This pipeline is testing the forward compatibility of Kibana with different versions of Elasticsearch for v9.
* This pipeline is testing the forward compatibility of Kibana with different versions of Elasticsearch for 9.0.
* Should be triggered for combinations of (Kibana@8.18 + ES@9.x {current open branches on the same major})
*/
export function getESForwardV9PipelineTriggers(): BuildkiteTriggerStep[] {
export function getESForward9Dot0PipelineTriggers(): BuildkiteTriggerStep[] {
const versions = getVersionsFile();
const KIBANA_8_X = versions.versions.find((v) => v.branch === '8.x');
if (!KIBANA_8_X) {
throw new Error(
'Update ES forward compatibility v9 pipeline to remove 8.x and add version 8.18'
'Update ES forward compatibility 9.0 pipeline to remove 8.x and add version 8.18'
);
}
const targetESVersions = versions.versions.filter((v) => v.branch.startsWith('9.'));
return targetESVersions.map(({ version }) => {
return {
trigger: pipelineSets['es-forward-v9'],
trigger: pipelineSets['es-forward-9-dot-0'],
async: true,
label: `Triggering Kibana ${KIBANA_8_X.version} + ES ${version} forward compatibility`,
build: {