Skip to content

Commit 90f39cc

Browse files
committed
as agreed let's move the group to the kb.integration pipeline
and use pinned versions
1 parent b72a8ae commit 90f39cc

File tree

2 files changed

+96
-97
lines changed

2 files changed

+96
-97
lines changed

.buildkite/bk.integration.pipeline.yml

Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,31 @@ env:
1414
IMAGE_WIN_2022: "platform-ingest-elastic-agent-windows-2022-1749258065"
1515
IMAGE_WIN_2025: "platform-ingest-elastic-agent-windows-2025-1749258065"
1616

17+
# This section is used to define the plugins that will be used in the pipeline.
18+
# See https://buildkite.com/docs/pipelines/integrations/plugins/using#using-yaml-anchors-with-plugins
19+
common:
20+
- google_oidc_plugin: &google_oidc_plugin
21+
# See https://github.com/elastic/oblt-infra/blob/main/conf/resources/repos/elastic-agent/01-gcp-oidc.tf
22+
# This plugin authenticates to Google Cloud using the OIDC token.
23+
elastic/oblt-google-auth#v1.3.0:
24+
lifetime: 10800 # seconds
25+
project-id: "elastic-observability-ci"
26+
project-number: "911195782929"
27+
# see https://github.com/avaly/gcp-secret-manager-buildkite-plugin/pull/10
28+
# see https://github.com/avaly/gcp-secret-manager-buildkite-plugin/pull/11
29+
# - gcp_serverless_secrets_plugin: &gcp_serverless_secrets_plugin
30+
#avaly/gcp-secret-manager#v1.2.0:
31+
- gcp_serverless_secrets_plugin: &gcp_serverless_secrets_plugin
32+
elastic/gcp-secret-manager#v1.3.0-elastic:
33+
env:
34+
# These secrets are created in .github/workflows/serverless-project.yml
35+
ELASTICSEARCH_HOST: ea-serverless-it-elasticsearch-hostname
36+
ELASTICSEARCH_PASSWORD: ea-serverless-it-elasticsearch-password
37+
ELASTICSEARCH_USERNAME: ea-serverless-it-elasticsearch-username
38+
KIBANA_HOST: ea-serverless-it-kibana-hostname
39+
KIBANA_USERNAME: ea-serverless-it-kibana-username
40+
KIBANA_PASSWORD: ea-serverless-it-kibana-password
41+
1742
steps:
1843
- label: Start ESS stack for integration tests
1944
key: integration-ess
@@ -417,6 +442,76 @@ steps:
417442
- v1.32.0
418443
- v1.33.0
419444

445+
- group: "Serverless integration test"
446+
key: integration-tests-serverless
447+
notify:
448+
- github_commit_status:
449+
context: "buildkite/elastic-agent-extended-testing - Serverless integration test"
450+
steps:
451+
- label: "Windows:2022:amd64:sudo"
452+
depends_on:
453+
- packaging-windows
454+
env:
455+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/serverless"
456+
command: |
457+
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
458+
.buildkite/scripts/buildkite-integration-tests.ps1 fleet true
459+
artifact_paths:
460+
- build/**
461+
- build/diagnostics/**
462+
retry:
463+
automatic:
464+
limit: 1
465+
agents:
466+
provider: "gcp"
467+
machineType: "n2-standard-8"
468+
image: "${IMAGE_WIN_2022}"
469+
plugins:
470+
- *google_oidc_plugin
471+
- *gcp_serverless_secrets_plugin
472+
473+
- label: "Windows:2025:amd64:sudo"
474+
depends_on:
475+
- packaging-windows
476+
env:
477+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/serverless"
478+
command: |
479+
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
480+
.buildkite/scripts/buildkite-integration-tests.ps1 fleet true
481+
artifact_paths:
482+
- build/**
483+
- build/diagnostics/**
484+
retry:
485+
automatic:
486+
limit: 1
487+
agents:
488+
provider: "gcp"
489+
machineType: "n2-standard-8"
490+
image: "${IMAGE_WIN_2025}"
491+
plugins:
492+
- *google_oidc_plugin
493+
- *gcp_serverless_secrets_plugin
494+
- label: "Ubuntu:2404:amd64:sudo"
495+
depends_on: packaging-ubuntu-x86-64
496+
env:
497+
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/serverless"
498+
command: |
499+
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-x86-64'
500+
sudo -E .buildkite/scripts/buildkite-integration-tests.sh fleet true
501+
artifact_paths:
502+
- build/**
503+
- build/diagnostics/**
504+
retry:
505+
automatic:
506+
limit: 1
507+
agents:
508+
provider: "gcp"
509+
machineType: "n2-standard-8"
510+
image: "${IMAGE_UBUNTU_2404_X86_64}"
511+
plugins:
512+
- *google_oidc_plugin
513+
- *gcp_serverless_secrets_plugin
514+
420515
- label: ESS stack cleanup
421516
depends_on:
422517
- integration-tests-ubuntu
@@ -441,6 +536,7 @@ steps:
441536
- integration-tests-win
442537
- integration-tests-rhel8
443538
- integration-tests-kubernetes
539+
- integration-tests-serverless
444540
allow_dependency_failure: true
445541
command: |
446542
buildkite-agent artifact download "build/*.xml" .

.buildkite/integration.pipeline.yml

Lines changed: 0 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,6 @@ env:
44
DOCKER_REGISTRY: "docker.elastic.co"
55
VAULT_PATH: "kv/ci-shared/observability-ingest/cloud/gcp"
66

7-
# This section is used to define the plugins that will be used in the pipeline.
8-
# See https://buildkite.com/docs/pipelines/integrations/plugins/using#using-yaml-anchors-with-plugins
9-
common:
10-
- google_oidc_plugin: &google_oidc_plugin
11-
# See https://github.com/elastic/oblt-infra/blob/main/conf/resources/repos/elastic-agent/01-gcp-oidc.tf
12-
# This plugin authenticates to Google Cloud using the OIDC token.
13-
elastic/oblt-google-auth#v1.3.0:
14-
lifetime: 10800 # seconds
15-
project-id: "elastic-observability-ci"
16-
project-number: "911195782929"
17-
# see https://github.com/avaly/gcp-secret-manager-buildkite-plugin/pull/10
18-
# see https://github.com/avaly/gcp-secret-manager-buildkite-plugin/pull/11
19-
# - gcp_serverless_secrets_plugin: &gcp_serverless_secrets_plugin
20-
#avaly/gcp-secret-manager#v1.2.0:
21-
- gcp_serverless_secrets_plugin: &gcp_serverless_secrets_plugin
22-
elastic/gcp-secret-manager#v1.3.0-elastic:
23-
env:
24-
# These secrets are created in .github/workflows/serverless-project.yml
25-
ELASTICSEARCH_HOST: ea-serverless-it-elasticsearch-hostname
26-
ELASTICSEARCH_PASSWORD: ea-serverless-it-elasticsearch-password
27-
ELASTICSEARCH_USERNAME: ea-serverless-it-elasticsearch-username
28-
KIBANA_HOST: ea-serverless-it-kibana-hostname
29-
KIBANA_USERNAME: ea-serverless-it-kibana-username
30-
KIBANA_PASSWORD: ea-serverless-it-kibana-password
31-
327
steps:
338
- group: "Integration tests: packaging"
349
key: "int-packaging"
@@ -173,78 +148,6 @@ steps:
173148
imagePrefix: "core-ubuntu-2204-aarch64"
174149
diskSizeGb: 200
175150

176-
- group: "Serverless integration test"
177-
key: serverless-integration-tests
178-
notify:
179-
- github_commit_status:
180-
context: "buildkite/elastic-agent-extended-testing - Serverless integration test"
181-
steps:
182-
- label: "Windows:2022:amd64:sudo"
183-
depends_on:
184-
- packaging-windows
185-
env:
186-
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/serverless"
187-
command: |
188-
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
189-
.buildkite/scripts/buildkite-integration-tests.ps1 fleet true
190-
artifact_paths:
191-
- build/**
192-
- build/diagnostics/**
193-
retry:
194-
automatic:
195-
limit: 1
196-
agents:
197-
provider: "gcp"
198-
machineType: "n2-standard-8"
199-
# TODO: replace with IMAGE_WIN_2022 when we migrate this in bk.integration.pipeline.yml
200-
image: "family/platform-ingest-elastic-agent-windows-2022"
201-
plugins:
202-
- *google_oidc_plugin
203-
- *gcp_serverless_secrets_plugin
204-
- label: "Windows:2025:amd64:sudo"
205-
depends_on:
206-
- packaging-windows
207-
env:
208-
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/serverless"
209-
command: |
210-
buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
211-
.buildkite/scripts/buildkite-integration-tests.ps1 fleet true
212-
artifact_paths:
213-
- build/**
214-
- build/diagnostics/**
215-
retry:
216-
automatic:
217-
limit: 1
218-
agents:
219-
provider: "gcp"
220-
machineType: "n2-standard-8"
221-
# TODO: replace with IMAGE_WIN_2025 when we migrate this in bk.integration.pipeline.yml
222-
image: "family/platform-ingest-elastic-agent-windows-2025"
223-
plugins:
224-
- *google_oidc_plugin
225-
- *gcp_serverless_secrets_plugin
226-
- label: "Ubuntu:2404:amd64:sudo"
227-
depends_on: packaging-ubuntu-x86-64
228-
env:
229-
TEST_PACKAGE: "github.com/elastic/elastic-agent/testing/integration/serverless"
230-
command: |
231-
buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-x86-64'
232-
sudo -E .buildkite/scripts/buildkite-integration-tests.sh fleet true
233-
artifact_paths:
234-
- build/**
235-
- build/diagnostics/**
236-
retry:
237-
automatic:
238-
limit: 1
239-
agents:
240-
provider: "gcp"
241-
machineType: "n2-standard-8"
242-
# TODO: replace with IMAGE_UBUNTU_2404_X86_64 when we migrate this in bk.integration.pipeline.yml
243-
image: "family/platform-ingest-elastic-agent-ubuntu-2404"
244-
plugins:
245-
- *google_oidc_plugin
246-
- *gcp_serverless_secrets_plugin
247-
248151
- label: "Triggering Integration tests"
249152
depends_on:
250153
- int-packaging

0 commit comments

Comments
 (0)