-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Buildkite] Add pipeline to test with Elastic serverless daily (#1807)
Add pipeline to test with an Elastic serverless project daily. It also adds the required settings to trigger this pipeline from a Pull Request.
- Loading branch information
Showing
13 changed files
with
480 additions
and
90 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
env: | ||
NOTIFY_TO: "ecosystem-team@elastic.co" | ||
SETUP_GVM_VERSION: 'v0.5.2' # https://github.com/andrewkroh/gvm/issues/44#issuecomment-1013231151 | ||
DOCKER_COMPOSE_VERSION: "v2.24.1" | ||
DOCKER_VERSION: "26.1.0" | ||
KIND_VERSION: 'v0.20.0' | ||
K8S_VERSION: 'v1.29.0' | ||
LINUX_AGENT_IMAGE: "golang:${GO_VERSION}" | ||
GH_CLI_VERSION: "2.29.0" | ||
# Elastic package settings | ||
# Manage docker output/logs | ||
ELASTIC_PACKAGE_COMPOSE_DISABLE_VERBOSE_OUTPUT: "true" | ||
# Default license to use by `elastic-package build` | ||
ELASTIC_PACKAGE_REPOSITORY_LICENSE: "licenses/Elastic-2.0.txt" | ||
# Link definitions path (full path to be set in the corresponding step) | ||
ELASTIC_PACKAGE_LINKS_FILE_PATH: "links_table.yml" | ||
# Disable comparison of results in pipeline tests to avoid errors related to GeoIP fields | ||
ELASTIC_PACKAGE_SERVERLESS_PIPELINE_TEST_DISABLE_COMPARE_RESULTS: "true" | ||
|
||
steps: | ||
- input: "Input values for the variables" | ||
key: "input-variables" | ||
fields: | ||
- select: "SERVERLESS_PROJECT" | ||
key: "SERVERLESS_PROJECT" | ||
options: | ||
- label: "observability" | ||
value: "observability" | ||
- label: "security" | ||
value: "security" | ||
default: "observability" | ||
if: "build.source == 'ui'" | ||
|
||
- wait: ~ | ||
if: "build.source == 'ui'" | ||
allow_dependency_failure: false | ||
|
||
- label: ":elastic: Serverless Integration tests" | ||
key: test-serverless | ||
command: ".buildkite/scripts/test_packages_with_serverless.sh" | ||
env: | ||
SERVERLESS_PROJECT: "${SERVERLESS_PROJECT:-observability}" | ||
UPLOAD_SAFE_LOGS: 1 | ||
artifact_paths: | ||
- build/test-results/*.xml | ||
- build/test-coverage/coverage-*.xml | ||
|
||
- wait: ~ | ||
continue_on_failure: true | ||
|
||
- label: ":junit: Junit annotate" | ||
plugins: | ||
- junit-annotate#v2.4.1: | ||
artifacts: "build/test-results/*.xml" | ||
agents: | ||
provider: "gcp" # junit plugin requires docker | ||
|
||
notify: | ||
- email: "$NOTIFY_TO" | ||
if: "build.state == 'failed' && build.env('BUILDKITE_PULL_REQUEST') == 'false'" |
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.