Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changes to serverless pipelines #2909

Merged
merged 8 commits into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .buildkite/pipeline.fleet-server-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# This pipeline serves as the entry point for your service's quality gates definitions. When
# properly configured, it will be invoked automatically as part of the automated
# promotion process once a new version was rolled out in one of the various cloud stages.
#
# The updated environment is provided via ENVIRONMENT variable. The seedling
# step will branch and execute pipeline snippets at the following location:
# .buildkite/pipeline.tests-qa.yaml
# .buildkite/pipeline.tests-staging.yaml
# .buildkite/pipeline.tests-production.yaml
#
# Docs: https://docs.elastic.dev/serverless/qualitygates

env:
ENVIRONMENT: ${ENVIRONMENT?}
TEAM_CHANNEL: "#fleet-cloud-services"

steps:
- label: ":pipeline::grey_question::seedling: Trigger service tests for ${ENVIRONMENT}"
command: "make -C /agent run-environment-tests"
agents:
image: "docker.elastic.co/ci-agent-images/quality-gate-seedling:0.0.2"

notify:
- slack: "${TEAM_CHANNEL}"
if: build.branch == "main" && build.state == "failed"
16 changes: 0 additions & 16 deletions .buildkite/pipeline.service-tests.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .buildkite/pipeline.test-dev.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .buildkite/pipeline.test-qa.yml

This file was deleted.

12 changes: 12 additions & 0 deletions .buildkite/pipeline.tests-qa.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These pipeline steps constitute the quality gate for your service within the QA environment.
# Incorporate any necessary additional logic to validate the service's integrity. A failure in
# this pipeline build will prevent further progression to the subsequent stage.

steps:
- label: ":rocket: Run Smoke tests"
trigger: "fleet-smoke-tests"
build:
message: "${BUILDKITE_MESSAGE}"
env:
ENVIRONMENT: ${ENVIRONMENT}

11 changes: 11 additions & 0 deletions .buildkite/pipeline.tests-staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# These pipeline steps constitute the quality gate for your service within the Staging environment.
# Incorporate any necessary additional logic to validate the service's integrity. A failure in
# this pipeline build will prevent further progression to the subsequent stage.

steps:
- label: ":rocket: Run Smoke tests"
trigger: "fleet-smoke-tests"
build:
message: "${BUILDKITE_MESSAGE}"
env:
ENVIRONMENT: ${ENVIRONMENT}
7 changes: 4 additions & 3 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ metadata:
description: Pipeline tests the service integration in a specific environment
links:
- title: Pipeline
url: https://buildkite.com/elastic/fleet-server
url: https://buildkite.com/elastic/fleet-server-tests
spec:
type: buildkite-pipeline
owner: group:fleet
Expand All @@ -128,12 +128,13 @@ spec:
description: fleet-server environment tests
spec:
repository: elastic/fleet-server
pipeline_file: .buildkite/pipeline.service-tests.yml
pipeline_file: .buildkite/pipeline.service-tests.yaml
branch_configuration: "main"
provider_settings:
build_pull_requests: false
trigger_mode: none
teams:
cloud-k8s-region:
ingest-fp:
access_level: MANAGE_BUILD_AND_READ
cloud-tooling:
access_level: MANAGE_BUILD_AND_READ
Expand Down
Loading