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

[CI] Integration tests matrix pipeline #4959

Merged
merged 8 commits into from
Jun 25, 2024
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
3 changes: 2 additions & 1 deletion .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ if [[ "$BUILDKITE_PIPELINE_SLUG" == "elastic-agent-package" ]]; then
fi
fi

if [[ "$BUILDKITE_PIPELINE_SLUG" == "elastic-agent-extended-testing" && "$BUILDKITE_STEP_KEY" == *"integration-tests"* ]]; then
if [[ "$BUILDKITE_STEP_KEY" == *"integration-tests"* ]]; then
echo "Setting credentials"
# Set GCP credentials
export GOOGLE_APPLICATION_GCP_SECRET=$(retry 5 vault kv get -format=json -field=data ${CI_GCP_OBS_PATH})
echo "${GOOGLE_APPLICATION_GCP_SECRET}" > ./gcp.json
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/hooks/pre-exit
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -eo pipefail

if [[ "$BUILDKITE_PIPELINE_SLUG" == "elastic-agent-extended-testing" && "$BUILDKITE_STEP_KEY" == *"integration-tests"* ]]; then
if [[ "$BUILDKITE_STEP_KEY" == *"integration-tests"* ]]; then
if [[ -z "${WORKSPACE-""}" ]]; then
WORKSPACE=$(git rev-parse --show-toplevel)
fi
Expand Down
16 changes: 16 additions & 0 deletions .buildkite/pipeline.integration-test-matrix.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# yaml-language-server: $schema=https://raw.githubusercontent.com/buildkite/pipeline-schema/main/schema.json

env:
DOCKER_REGISTRY: "docker.elastic.co"
VAULT_PATH: "kv/ci-shared/observability-ingest/cloud/gcp"

steps:
- label: "Integration test matrix"
key: "integration-tests-matrix"
command: ".buildkite/scripts/steps/integration_tests.sh stateful integration:matrix"
artifact_paths:
- "build/TEST-**"
- "build/diagnostics/*"
agents:
provider: "gcp"
machineType: "n1-standard-8"
6 changes: 4 additions & 2 deletions pkg/testing/runner/supported.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ var (
},
Runner: WindowsRunner{},
}

// WindowsAMD64_2016 - Windows (amd64) Server 2016
WindowsAMD64_2016 = SupportedOS{
OS: define.OS{
Expand Down Expand Up @@ -177,8 +178,9 @@ var supported = []SupportedOS{
WindowsAMD64_2022_Core,
WindowsAMD64_2019,
WindowsAMD64_2019_Core,
WindowsAMD64_2016,
WindowsAMD64_2016_Core,
// https://github.com/elastic/ingest-dev/issues/3484
// WindowsAMD64_2016,
// WindowsAMD64_2016_Core,
}

// osMatch returns true when the specific OS is a match for a non-specific OS.
Expand Down