forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BK] Migrate batch 6 (api-docs, fleet-packages, secsol-qg-api) (elast…
…ic#180784) ## Summary Migrates 3 pipelines: - kibana / api-docs / daily [kibana-api-docs.yml](https://buildkite.com/elastic/kibana-api-docs-daily) - kibana / serverless / security-solution-quality-gate / api-integration [kibana-serverless-security-solution-quality-gate-api-integration.yml](https://buildkite.com/elastic/kibana-serverless-security-solution-quality-gate-api-integration) - kibana / fleet-packages [kibana-fleet-packages-daily.yml](https://buildkite.com/elastic/kibana-fleet-packages) Verification: - [x] locally tested the RREs for validity - [x] pipelines tested through the migration staging pipeline: - [x] API-docs - https://buildkite.com/elastic/kibana-migration-pipeline-staging/builds/80 ✅ - [x] serverless security solution api-integration - https://buildkite.com/elastic/kibana-migration-pipeline-staging/builds/48#018ef1ed-853d-4649-b008-3a38b9f97923 ✅ - [x] fleet packages - https://buildkite.com/elastic/kibana-migration-pipeline-staging/builds/49 ✅ Part of: elastic/kibana-operations#79
- Loading branch information
Showing
11 changed files
with
437 additions
and
93 deletions.
There are no files selected for viewing
51 changes: 51 additions & 0 deletions
51
.buildkite/pipeline-resource-definitions/kibana-api-docs.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,51 @@ | ||
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/rre.schema.json | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Resource | ||
metadata: | ||
name: bk-kibana-api-docs-daily | ||
description: Builds api_docs daily and creates a PR with the changes | ||
links: | ||
- url: 'https://buildkite.com/elastic/kibana-api-docs-daily' | ||
title: Pipeline link | ||
spec: | ||
type: buildkite-pipeline | ||
owner: 'group:kibana-operations' | ||
system: buildkite | ||
implementation: | ||
apiVersion: buildkite.elastic.dev/v1 | ||
kind: Pipeline | ||
metadata: | ||
name: kibana / api-docs / daily | ||
description: Builds api_docs daily and creates a PR with the changes | ||
spec: | ||
env: | ||
SLACK_NOTIFICATIONS_CHANNEL: '#kibana-operations-alerts' | ||
ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true' | ||
allow_rebuilds: true | ||
branch_configuration: main | ||
cancel_intermediate_builds: true | ||
default_branch: main | ||
repository: elastic/kibana | ||
pipeline_file: .buildkite/pipelines/build_api_docs.yml | ||
skip_intermediate_builds: false | ||
provider_settings: | ||
build_branches: false | ||
build_pull_requests: false | ||
publish_commit_status: false | ||
trigger_mode: none | ||
prefix_pull_request_fork_branch_names: false | ||
skip_pull_request_builds_for_existing_commits: false | ||
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 | ||
schedules: | ||
Daily build: | ||
cronline: 0 0 * * * America/New_York | ||
message: Daily build | ||
branch: main |
48 changes: 48 additions & 0 deletions
48
.buildkite/pipeline-resource-definitions/kibana-fleet-packages-daily.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,48 @@ | ||
# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/rre.schema.json | ||
apiVersion: backstage.io/v1alpha1 | ||
kind: Resource | ||
metadata: | ||
name: bk-kibana-fleet-packages | ||
description: Installs all fleet packages into Kibana to ensure the install step works | ||
links: | ||
- url: 'https://buildkite.com/elastic/kibana-fleet-packages' | ||
title: Pipeline link | ||
spec: | ||
type: buildkite-pipeline | ||
owner: 'group:kibana-operations' | ||
system: buildkite | ||
implementation: | ||
apiVersion: buildkite.elastic.dev/v1 | ||
kind: Pipeline | ||
metadata: | ||
name: kibana / fleet-packages | ||
description: Installs all fleet packages into Kibana to ensure the install step works | ||
spec: | ||
env: | ||
SLACK_NOTIFICATIONS_CHANNEL: '#fleet-notifications' | ||
ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true' | ||
allow_rebuilds: true | ||
branch_configuration: main | ||
default_branch: main | ||
repository: elastic/kibana | ||
pipeline_file: .buildkite/pipelines/fleet/packages_daily.yml | ||
skip_intermediate_builds: false | ||
provider_settings: | ||
publish_commit_status: false | ||
prefix_pull_request_fork_branch_names: false | ||
skip_pull_request_builds_for_existing_commits: false | ||
teams: | ||
everyone: | ||
access_level: BUILD_AND_READ | ||
kibana-operations: | ||
access_level: MANAGE_BUILD_AND_READ | ||
fleet: | ||
access_level: MANAGE_BUILD_AND_READ | ||
kibana-tech-leads: | ||
access_level: MANAGE_BUILD_AND_READ | ||
schedules: | ||
Single user daily test: | ||
cronline: 0 9 * * * America/New_York | ||
message: Single user daily test | ||
env: {} | ||
branch: main |
46 changes: 46 additions & 0 deletions
46
...resource-definitions/kibana-serverless-security-solution-quality-gate-api-integration.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-secsol-qg-api-integration | ||
description: Runs the serverless security solution api integration tests for the Quality Gate | ||
links: | ||
- url: 'https://buildkite.com/elastic/kibana-serverless-security-solution-quality-gate-api-integration' | ||
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 / security-solution-quality-gate / api-integration | ||
description: Runs the serverless security solution api integration tests for the Quality Gate | ||
spec: | ||
env: {} | ||
allow_rebuilds: true | ||
branch_configuration: '' | ||
default_branch: main | ||
repository: elastic/kibana | ||
pipeline_file: .buildkite/pipelines/security_solution/api_integration.yml | ||
skip_intermediate_builds: false | ||
provider_settings: | ||
build_branches: false | ||
build_pull_requests: false | ||
publish_commit_status: false | ||
trigger_mode: none | ||
build_tags: false | ||
prefix_pull_request_fork_branch_names: false | ||
skip_pull_request_builds_for_existing_commits: false | ||
teams: | ||
everyone: | ||
access_level: BUILD_AND_READ | ||
security-engineering-productivity: | ||
access_level: MANAGE_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 |
---|---|---|
@@ -1,13 +1,46 @@ | ||
env: | ||
PUBLISH_API_DOCS_CHANGES: 'true' | ||
steps: | ||
- command: .buildkite/scripts/steps/build_api_docs.sh | ||
- command: .buildkite/scripts/steps/api_docs/type_check_with_status.sh | ||
label: Run scripts/type_check | ||
key: type_check | ||
agents: | ||
image: family/kibana-ubuntu-2004 | ||
imageProject: elastic-images-qa | ||
provider: gcp | ||
machineType: n2-standard-4 | ||
preemptible: true | ||
timeout_in_minutes: 50 | ||
|
||
- command: .buildkite/scripts/steps/api_docs/build_api_docs.sh | ||
label: 'Build API Docs' | ||
agents: | ||
queue: n2-4-spot | ||
image: family/kibana-ubuntu-2004 | ||
imageProject: elastic-images-qa | ||
provider: gcp | ||
machineType: n2-standard-4 | ||
preemptible: true | ||
key: build_api_docs | ||
timeout_in_minutes: 60 | ||
timeout_in_minutes: 50 | ||
retry: | ||
automatic: | ||
- exit_status: '-1' | ||
limit: 3 | ||
|
||
- wait: ~ | ||
|
||
- command: .buildkite/scripts/steps/api_docs/publish_api_docs.sh | ||
label: 'Publish API Docs' | ||
agents: | ||
image: family/kibana-ubuntu-2004 | ||
imageProject: elastic-images-qa | ||
provider: gcp | ||
machineType: n2-standard-4 | ||
preemptible: true | ||
key: publish_api_docs | ||
timeout_in_minutes: 50 | ||
retry: | ||
automatic: | ||
- exit_status: '-1' | ||
limit: 3 | ||
if: env('PUBLISH_API_DOCS_CHANGES') == 'true' |
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.