-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into feat/custom-mockes
- Loading branch information
Showing
185 changed files
with
23,302 additions
and
14,307 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,160 @@ | ||
# 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" | ||
ASDF_MAGE_VERSION: 1.14.0 | ||
ASDF_GOLANG_VERSION: 1.22.6 | ||
ASDF_TERRAFORM_VERSION: 1.9.2 | ||
|
||
steps: | ||
- label: "Integration tests: packaging" | ||
key: "package-it" | ||
command: ".buildkite/scripts/steps/integration-package.sh" | ||
artifact_paths: | ||
- build/distributions/** | ||
agents: | ||
provider: "gcp" | ||
machineType: "n1-standard-8" | ||
|
||
- label: Start ESS stack for integration tests | ||
key: integration-ess | ||
depends_on: | ||
- package-it | ||
command: | | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
source .buildkite/scripts/steps/ess_start.sh | ||
artifact_paths: | ||
- test_infra/ess/*.tfstate | ||
- test_infra/ess/*.lock.hcl | ||
agents: | ||
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:0.5" | ||
useCustomGlobalHooks: true | ||
|
||
- group: "Stateful IT (Sudo): Ubuntu" | ||
key: integration-tests | ||
depends_on: | ||
- package-it | ||
- integration-ess | ||
steps: | ||
- label: "Default" | ||
key: stateful-ubuntu-default-sudo | ||
command: | | ||
buildkite-agent artifact download build/distributions/** . --step 'package-it' | ||
.buildkite/scripts/steps/integration_tests_tf_sudo.sh "default" "^(TestAPMConfig|TestDiagnosticsOptionalValues|TestIsolatedUnitsDiagnosticsOptionalValues|TestDiagnosticsCommand|TestIsolatedUnitsDiagnosticsCommand|TestEventLogFile|TestFakeComponent|TestFakeIsolatedUnitsComponent|TestOtelFileProcessing|TestOtelLogsIngestion|TestOtelAPMIngestion|TestPackageVersion)$$" | ||
artifact_paths: | ||
- build/** | ||
agents: | ||
provider: "gcp" | ||
imageProject: elastic-images-qa | ||
machineType: "n1-standard-8" | ||
image: "family/platform-ingest-elastic-agent-ubuntu-2204" | ||
|
||
- label: "Upgrade" | ||
key: stateful-ubuntu-upgrade-sudo | ||
command: | | ||
buildkite-agent artifact download build/distributions/** . --step 'package-it' | ||
.buildkite/scripts/steps/integration_tests_tf_sudo.sh "upgrade" "^(TestUpgradeBrokenPackageVersion|TestStandaloneUpgradeWithGPGFallback|TestStandaloneUpgradeWithGPGFallbackOneRemoteFailing|TestStandaloneUpgradeRollback|TestStandaloneUpgradeRollbackOnRestarts|TestStandaloneUpgradeFailsWhenUpgradeIsInProgress|TestStandaloneUpgradeRetryDownload|TestStandaloneUpgradeSameCommit|TestStandaloneUpgrade|TestStandaloneUpgradeUninstallKillWatcher)$$" | ||
artifact_paths: | ||
- build/** | ||
agents: | ||
provider: "gcp" | ||
imageProject: elastic-images-qa | ||
machineType: "n1-standard-8" | ||
image: "family/platform-ingest-elastic-agent-ubuntu-2204" | ||
|
||
- label: "Fleet" | ||
key: stateful-ubuntu-fleet-sudo | ||
command: | | ||
buildkite-agent artifact download build/distributions/** . --step 'package-it' | ||
ls -lah build/distributions/ | ||
.buildkite/scripts/steps/integration_tests_tf_sudo.sh "fleet" "^(TestLongRunningAgentForLeaks|TestDelayEnroll|TestDelayEnrollUnprivileged|TestInstallAndCLIUninstallWithEndpointSecurity|TestInstallAndUnenrollWithEndpointSecurity|TestInstallWithEndpointSecurityAndRemoveEndpointIntegration|TestEndpointSecurityNonDefaultBasePath|TestEndpointSecurityUnprivileged|TestEndpointSecurityCannotSwitchToUnprivileged|TestEndpointLogsAreCollectedInDiagnostics|TestForceInstallOverProtectedPolicy|TestSetLogLevelFleetManaged|TestLogIngestionFleetManaged|TestMetricsMonitoringCorrectBinaries|TestEndpointAgentServiceMonitoring|TestMonitoringPreserveTextConfig|TestMonitoringLivenessReloadable|TestComponentBuildHashInDiagnostics|TestProxyURL|TestFleetManagedUpgradeUnprivileged)$$" | ||
artifact_paths: | ||
- build/** | ||
agents: | ||
provider: "gcp" | ||
imageProject: elastic-images-qa | ||
machineType: "n1-standard-8" | ||
image: "family/platform-ingest-elastic-agent-ubuntu-2204" | ||
|
||
- label: "FQDN" | ||
key: stateful-ubuntu-fqdn-sudo | ||
command: | | ||
buildkite-agent artifact download build/distributions/** . --step 'package-it' | ||
ls -lah build/distributions/ | ||
.buildkite/scripts/steps/integration_tests_tf_sudo.sh "fqdn" "^(TestFQDN)$$" | ||
artifact_paths: | ||
- build/** | ||
agents: | ||
provider: "gcp" | ||
imageProject: elastic-images-qa | ||
machineType: "n1-standard-8" | ||
image: "family/platform-ingest-elastic-agent-ubuntu-2204" | ||
|
||
- label: "Deb" | ||
key: stateful-ubuntu-deb-sudo | ||
command: | | ||
buildkite-agent artifact download build/distributions/** . --step 'package-it' | ||
ls -lah build/distributions/ | ||
.buildkite/scripts/steps/integration_tests_tf_sudo.sh "deb" "^(TestDebLogIngestFleetManaged|TestDebFleetUpgrade)$$" | ||
artifact_paths: | ||
- build/** | ||
agents: | ||
provider: "gcp" | ||
imageProject: elastic-images-qa | ||
machineType: "n1-standard-8" | ||
image: "family/platform-ingest-elastic-agent-ubuntu-2204" | ||
|
||
- label: "Fleet Airgapped" | ||
key: stateful-ubuntu-fleet-airgapped-sudo | ||
command: | | ||
buildkite-agent artifact download build/distributions/** . --step 'package-it' | ||
ls -lah build/distributions/ | ||
.buildkite/scripts/steps/integration_tests_tf_sudo.sh "fleet-airgapped" "^(TestFleetAirGappedUpgradeUnprivileged)$$" | ||
artifact_paths: | ||
- build/** | ||
agents: | ||
provider: "gcp" | ||
imageProject: elastic-images-qa | ||
machineType: "n1-standard-8" | ||
image: "family/platform-ingest-elastic-agent-ubuntu-2204" | ||
|
||
- label: "Fleet Privileged" | ||
key: stateful-ubuntu-fleet-privileged-sudo | ||
command: | | ||
buildkite-agent artifact download build/distributions/** . --step 'package-it' | ||
ls -lah build/distributions/ | ||
.buildkite/scripts/steps/integration_tests_tf_sudo.sh "fleet-privileged" "^(TestInstallFleetServerBootstrap|TestFleetManagedUpgradePrivileged)$$" | ||
artifact_paths: | ||
- build/** | ||
agents: | ||
provider: "gcp" | ||
imageProject: elastic-images-qa | ||
machineType: "n1-standard-8" | ||
image: "family/platform-ingest-elastic-agent-ubuntu-2204" | ||
|
||
- label: "Fleet Airgapped Privileged" | ||
key: stateful-ubuntu-fleet-airgapped-privileged-sudo | ||
command: | | ||
buildkite-agent artifact download build/distributions/** . --step 'package-it' | ||
ls -lah build/distributions/ | ||
.buildkite/scripts/steps/integration_tests_tf_sudo.sh "fleet-airgapped-privileged" "^(TestFleetAirGappedUpgradePrivileged)$$" | ||
artifact_paths: | ||
- build/** | ||
agents: | ||
provider: "gcp" | ||
imageProject: elastic-images-qa | ||
machineType: "n1-standard-8" | ||
image: "family/platform-ingest-elastic-agent-ubuntu-2204" | ||
|
||
- label: ESS stack cleanup | ||
depends_on: integration-tests | ||
allow_dependency_failure: true | ||
command: | | ||
buildkite-agent artifact download "test_infra/ess/**" . --step "integration-ess" | ||
ls -lah test_infra/ess | ||
.buildkite/scripts/steps/ess_down.sh | ||
agents: | ||
image: "docker.elastic.co/ci-agent-images/platform-ingest/buildkite-agent-beats-ci-with-hooks:0.5" | ||
useCustomGlobalHooks: 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.