-
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.
Merge branch 'main' into 203597-fix-logs-stream-minimap
- Loading branch information
Showing
8,082 changed files
with
111,734 additions
and
51,986 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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
43 changes: 43 additions & 0 deletions
43
.buildkite/pipeline-resource-definitions/kibana-es-forward-testing-9-dot-0.yml
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,43 @@ | ||
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/rre.schema.json | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Resource | ||
metadata: | ||
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-9-dot-0' | ||
title: Pipeline link | ||
spec: | ||
type: buildkite-pipeline | ||
system: buildkite | ||
owner: 'group:kibana-operations' | ||
implementation: | ||
apiVersion: buildkite.elastic.dev/v1 | ||
kind: Pipeline | ||
metadata: | ||
name: kibana / ES Forward Compatibility Testing 9.0 | ||
description: Forward compatibility testing between Kibana 8.18 and ES 9+ | ||
spec: | ||
env: | ||
SLACK_NOTIFICATIONS_CHANNEL: '#kibana-operations-alerts' | ||
ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true' | ||
REPORT_FAILED_TESTS_TO_GITHUB: 'true' | ||
allow_rebuilds: false | ||
branch_configuration: main | ||
default_branch: main | ||
repository: elastic/kibana | ||
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 | ||
teams: | ||
kibana-operations: | ||
access_level: MANAGE_BUILD_AND_READ | ||
appex-qa: | ||
access_level: MANAGE_BUILD_AND_READ | ||
kibana-tech-leads: | ||
access_level: MANAGE_BUILD_AND_READ | ||
everyone: | ||
access_level: BUILD_AND_READ | ||
tags: | ||
- kibana |
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,18 @@ | ||
steps: | ||
- command: .buildkite/scripts/steps/functional/scout_ui_tests.sh | ||
label: 'Scout UI Tests' | ||
agents: | ||
machineType: n2-standard-4 | ||
preemptible: true | ||
depends_on: | ||
- build | ||
- quick_checks | ||
- checks | ||
- linting | ||
- linting_with_types | ||
- check_types | ||
timeout_in_minutes: 30 | ||
retry: | ||
automatic: | ||
- exit_status: '-1' | ||
limit: 2 |
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 |
---|---|---|
|
@@ -12,6 +12,7 @@ import { getVersionsFile, BuildkiteTriggerStep } from '#pipeline-utils'; | |
|
||
const pipelineSets = { | ||
'es-forward': 'kibana-es-forward-compatibility-testing', | ||
'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', | ||
|
@@ -40,6 +41,10 @@ async function main() { | |
pipelineSteps.push(...getESForwardPipelineTriggers()); | ||
break; | ||
} | ||
case 'es-forward-9-dot-0': { | ||
pipelineSteps.push(...getESForward9Dot0PipelineTriggers()); | ||
break; | ||
} | ||
case 'artifacts-snapshot': { | ||
pipelineSteps.push(...getArtifactSnapshotPipelineTriggers()); | ||
break; | ||
|
@@ -90,6 +95,40 @@ export function getESForwardPipelineTriggers(): BuildkiteTriggerStep[] { | |
}); | ||
} | ||
|
||
/** | ||
* This pipeline is testing the forward compatibility of Kibana with different versions of Elasticsearch for 9.0. | ||
* Should be triggered for combinations of ([email protected] + [email protected] {current open branches on the same major}) | ||
*/ | ||
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 9.0 pipeline to remove 8.x and add version 8.18' | ||
); | ||
} | ||
const targetESVersions = versions.versions.filter( | ||
(v) => v.branch.startsWith('9.') || (v.branch.includes('main') && v.version.startsWith('9.0.0')) | ||
); | ||
|
||
return targetESVersions.map(({ version }) => { | ||
return { | ||
trigger: pipelineSets['es-forward-9-dot-0'], | ||
async: true, | ||
label: `Triggering Kibana ${KIBANA_8_X.version} + ES ${version} forward compatibility`, | ||
build: { | ||
message: process.env.MESSAGE || `ES forward-compatibility test for ES ${version}`, | ||
branch: KIBANA_8_X.branch, | ||
commit: 'HEAD', | ||
env: { | ||
ES_SNAPSHOT_MANIFEST: `https://storage.googleapis.com/kibana-ci-es-snapshots-daily/${version}/manifest-latest-verified.json`, | ||
DRY_RUN: process.env.DRY_RUN, | ||
}, | ||
}, | ||
} as BuildkiteTriggerStep; | ||
}); | ||
} | ||
|
||
/** | ||
* This pipeline creates Kibana artifact snapshots for all open branches. | ||
* Should be triggered for all open branches in the versions.json | ||
|
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,34 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -euo pipefail | ||
|
||
source .buildkite/scripts/steps/functional/common.sh | ||
|
||
export JOB=kibana-scout-ui-tests | ||
|
||
TEST_CONFIG="x-pack/plugins/discover_enhanced/ui_tests/playwright.config.ts" | ||
KIBANA_DIR="$KIBANA_BUILD_LOCATION" | ||
|
||
declare -A TESTS=( | ||
["Stateful"]="--stateful" | ||
["Serverless Elasticsearch"]="--serverless=es" | ||
["Serverless Observability"]="--serverless=oblt" | ||
["Serverless Security"]="--serverless=security" | ||
) | ||
|
||
ORDER=("Stateful" "Serverless Elasticsearch" "Serverless Observability" "Serverless Security") | ||
|
||
EXIT_CODE=0 | ||
|
||
for TEST_NAME in "${ORDER[@]}"; do | ||
RUN_MODE="${TESTS[$TEST_NAME]}" | ||
echo "--- $TEST_NAME: 'discover_enhanced' plugin UI Tests" | ||
if ! node scripts/scout run-tests "$RUN_MODE" --config "$TEST_CONFIG" --kibana-install-dir "$KIBANA_DIR"; then | ||
echo "$TEST_NAME: failed" | ||
EXIT_CODE=1 | ||
else | ||
echo "$TEST_NAME: passed" | ||
fi | ||
done | ||
|
||
exit $EXIT_CODE |
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
Oops, something went wrong.