-
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 api-doc-suggestions
- Loading branch information
Showing
3,373 changed files
with
111,853 additions
and
46,060 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
46 changes: 46 additions & 0 deletions
46
.buildkite/pipeline-resource-definitions/kibana-serverless-release-testing.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,46 @@ | ||
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/rre.schema.json | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Resource | ||
metadata: | ||
name: bk-kibana-serverless-emergency-release-branch-testing | ||
description: Runs testing for emergency release / hotfix branches | ||
links: | ||
- url: 'https://buildkite.com/elastic/kibana-serverless-emergency-release-branch-testing' | ||
title: Pipeline link | ||
spec: | ||
type: buildkite-pipeline | ||
owner: 'group:kibana-operations' | ||
system: buildkite | ||
implementation: | ||
apiVersion: buildkite.elastic.dev/v1 | ||
kind: Pipeline | ||
metadata: | ||
name: kibana / serverless / emergency release branch testing | ||
description: Runs testing for emergency release / hotfix branches | ||
spec: | ||
env: | ||
SLACK_NOTIFICATIONS_CHANNEL: '#kibana-mission-control' | ||
ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true' | ||
allow_rebuilds: true | ||
branch_configuration: deploy-fix@* | ||
default_branch: main | ||
repository: elastic/kibana | ||
pipeline_file: .buildkite/pipelines/es_serverless/emergency_release_branch_testing.yml | ||
skip_intermediate_builds: false | ||
provider_settings: | ||
build_branches: true | ||
build_pull_requests: false | ||
publish_commit_status: true | ||
trigger_mode: code | ||
build_tags: false | ||
prefix_pull_request_fork_branch_names: false | ||
skip_pull_request_builds_for_existing_commits: true | ||
teams: | ||
everyone: | ||
access_level: BUILD_AND_READ | ||
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 |
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,55 @@ | ||
/* | ||
* 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 and the Server Side Public License, v 1; you may not use this file except | ||
* in compliance with, at your election, the Elastic License 2.0 or the Server | ||
* Side Public License, v 1. | ||
*/ | ||
|
||
import { dump } from 'js-yaml'; | ||
import { BuildkiteClient, BuildkiteCommandStep } from './buildkite'; | ||
|
||
type AgentImageConfig = BuildkiteCommandStep['agents']; | ||
|
||
const DEFAULT_AGENT_IMAGE_CONFIG: AgentImageConfig = { | ||
provider: 'gcp', | ||
image: 'family/kibana-ubuntu-2004', | ||
imageProject: 'elastic-images-prod', | ||
}; | ||
|
||
const FIPS_AGENT_IMAGE_CONFIG: AgentImageConfig = { | ||
provider: 'gcp', | ||
image: 'family/kibana-fips-ubuntu-2004', | ||
imageProject: 'elastic-images-prod', | ||
}; | ||
|
||
const GITHUB_PR_LABELS = process.env.GITHUB_PR_LABELS ?? ''; | ||
const FTR_ENABLE_FIPS_AGENT = process.env.FTR_ENABLE_FIPS_AGENT?.toLowerCase() === 'true'; | ||
|
||
// Narrow the return type with overloads | ||
function getAgentImageConfig(): AgentImageConfig; | ||
function getAgentImageConfig(options: { returnYaml: true }): string; | ||
function getAgentImageConfig({ returnYaml = false } = {}): string | AgentImageConfig { | ||
const bk = new BuildkiteClient(); | ||
let config: AgentImageConfig; | ||
|
||
if (FTR_ENABLE_FIPS_AGENT || GITHUB_PR_LABELS.includes('ci:enable-fips-agent')) { | ||
config = FIPS_AGENT_IMAGE_CONFIG; | ||
|
||
bk.setAnnotation( | ||
'agent image config', | ||
'info', | ||
'#### FIPS Agents Enabled<br />\nFIPS mode can produce new test failures. If you did not intend this remove ```KBN_ENABLE_FIPS``` environment variable and/or the ```ci:enable-fips-agent``` Github label.' | ||
); | ||
} else { | ||
config = DEFAULT_AGENT_IMAGE_CONFIG; | ||
} | ||
|
||
if (returnYaml) { | ||
return dump({ agents: config }); | ||
} | ||
|
||
return config; | ||
} | ||
|
||
export { getAgentImageConfig }; |
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 |
---|---|---|
@@ -1,32 +1,63 @@ | ||
env: | ||
DISABLE_CI_STATS_SHIPPING: "true" | ||
DISABLE_CI_STATS_SHIPPING: 'true' | ||
KBN_ENABLE_FIPS: 'true' | ||
TEST_BROWSER_HEADLESS: 1 | ||
agents: | ||
provider: 'gcp' | ||
image: 'family/kibana-fips-ubuntu-2004' | ||
imageProject: 'elastic-images-prod' | ||
steps: | ||
- command: .buildkite/scripts/lifecycle/pre_build.sh | ||
label: Pre-Build | ||
key: pre-build | ||
timeout_in_minutes: 10 | ||
agents: | ||
machineType: n2-standard-2 | ||
|
||
- wait | ||
|
||
- command: .buildkite/scripts/steps/build_kibana.sh | ||
label: Build Kibana Distribution and Plugins | ||
agents: | ||
image: family/kibana-ubuntu-2004 | ||
imageProject: elastic-images-prod | ||
provider: gcp | ||
machineType: n2-standard-16 | ||
preemptible: true | ||
key: build | ||
if: "build.env('KIBANA_BUILD_ID') == null || build.env('KIBANA_BUILD_ID') == ''" | ||
depends_on: pre-build | ||
timeout_in_minutes: 60 | ||
retry: | ||
automatic: | ||
- exit_status: "-1" | ||
- exit_status: '-1' | ||
limit: 3 | ||
|
||
- wait | ||
|
||
- command: TEST_PACKAGE=fips .buildkite/scripts/steps/package_testing/test.sh | ||
label: "Smoke testing for FIPS" | ||
- command: .buildkite/scripts/steps/checks/verify_fips_enabled.sh | ||
label: 'Verify FIPS Enabled' | ||
depends_on: build | ||
timeout_in_minutes: 10 | ||
agents: | ||
machineType: n2-standard-2 | ||
preemptible: true | ||
|
||
- command: .buildkite/scripts/steps/fips/smoke_test.sh | ||
label: 'Pick Smoke Test Group Run Order' | ||
depends_on: build | ||
timeout_in_minutes: 10 | ||
env: | ||
FTR_CONFIGS_SCRIPT: '.buildkite/scripts/steps/test/ftr_configs.sh' | ||
FTR_EXTRA_ARGS: '$FTR_EXTRA_ARGS' | ||
LIMIT_CONFIG_TYPE: 'functional' | ||
retry: | ||
automatic: | ||
- exit_status: '*' | ||
limit: 1 | ||
|
||
- wait: ~ | ||
continue_on_failure: true | ||
|
||
- command: .buildkite/scripts/lifecycle/post_build.sh | ||
label: Post-Build | ||
timeout_in_minutes: 10 | ||
agents: | ||
image: family/kibana-ubuntu-2004 | ||
imageProject: elastic-images-prod | ||
provider: gcp | ||
enableNestedVirtualization: true | ||
localSsds: 1 | ||
localSsdInterface: nvme | ||
machineType: n2-standard-4 | ||
timeout_in_minutes: 600 | ||
machineType: n2-standard-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
Oops, something went wrong.