1313 IMAGE_WIN_2022 : " platform-ingest-elastic-agent-windows-2022-1749258065"
1414 IMAGE_WIN_2025 : " platform-ingest-elastic-agent-windows-2025-1749258065"
1515
16+ # This section is used to define the plugins that will be used in the pipeline.
17+ # See https://buildkite.com/docs/pipelines/integrations/plugins/using#using-yaml-anchors-with-plugins
18+ common :
19+ - google_oidc_plugin : &google_oidc_plugin
20+ # See https://github.com/elastic/oblt-infra/blob/main/conf/resources/repos/elastic-agent/01-gcp-oidc.tf
21+ # This plugin authenticates to Google Cloud using the OIDC token.
22+ elastic/oblt-google-auth#v1.3.0:
23+ lifetime : 10800 # seconds
24+ project-id : " elastic-observability-ci"
25+ project-number : " 911195782929"
26+ # see https://github.com/avaly/gcp-secret-manager-buildkite-plugin/pull/10
27+ # see https://github.com/avaly/gcp-secret-manager-buildkite-plugin/pull/11
28+ # - gcp_serverless_secrets_plugin: &gcp_serverless_secrets_plugin
29+ # avaly/gcp-secret-manager#v1.2.0:
30+ - gcp_serverless_secrets_plugin : &gcp_serverless_secrets_plugin
31+ elastic/gcp-secret-manager#v1.3.0-elastic:
32+ env :
33+ # These secrets are created in .github/workflows/serverless-project.yml
34+ ELASTICSEARCH_HOST : ea-serverless-it-elasticsearch-hostname
35+ ELASTICSEARCH_PASSWORD : ea-serverless-it-elasticsearch-password
36+ ELASTICSEARCH_USERNAME : ea-serverless-it-elasticsearch-username
37+ KIBANA_HOST : ea-serverless-it-kibana-hostname
38+ KIBANA_USERNAME : ea-serverless-it-kibana-username
39+ KIBANA_PASSWORD : ea-serverless-it-kibana-password
40+
1641steps :
1742 - label : Start ESS stack for integration tests
1843 key : integration-ess
44+ notify :
45+ - github_commit_status :
46+ context : " buildkite/elastic-agent-extended-testing - ESS stack provision"
1947 env :
2048 ASDF_TERRAFORM_VERSION : 1.9.2
2149 command : |
3159
3260 - group : " Extended runtime leak tests"
3361 key : extended-integration-tests
62+ notify :
63+ - github_commit_status :
64+ context : " buildkite/elastic-agent-extended-testing - Runtime leak tests"
3465 depends_on :
3566 - integration-ess
3667 steps :
@@ -90,6 +121,9 @@ steps:
90121
91122 - group : " Stateful: Windows"
92123 key : integration-tests-win
124+ notify :
125+ - github_commit_status :
126+ context : " buildkite/elastic-agent-extended-testing - Windows"
93127 depends_on :
94128 - integration-ess
95129 steps :
@@ -184,6 +218,9 @@ steps:
184218
185219 - group : " Stateful:Ubuntu"
186220 key : integration-tests-ubuntu
221+ notify :
222+ - github_commit_status :
223+ context : " buildkite/elastic-agent-extended-testing - Ubuntu"
187224 depends_on :
188225 - integration-ess
189226 steps :
@@ -291,6 +328,9 @@ steps:
291328
292329 - group : " Stateful:Debian"
293330 key : integration-tests-debian
331+ notify :
332+ - github_commit_status :
333+ context : " buildkite/elastic-agent-extended-testing - Debian"
294334 depends_on :
295335 - integration-ess
296336 steps :
@@ -348,6 +388,9 @@ steps:
348388
349389 - group : " Stateful(Sudo):RHEL8"
350390 key : integration-tests-rhel8
391+ notify :
392+ - github_commit_status :
393+ context : " buildkite/elastic-agent-extended-testing - RHEL8"
351394 depends_on :
352395 - integration-ess
353396 steps :
@@ -370,6 +413,9 @@ steps:
370413
371414 - group : " Kubernetes"
372415 key : integration-tests-kubernetes
416+ notify :
417+ - github_commit_status :
418+ context : " buildkite/elastic-agent-extended-testing - Kubernetes"
373419 depends_on :
374420 - integration-ess
375421 - packaging-containers-x86-64
@@ -406,6 +452,76 @@ steps:
406452 - v1.30.8
407453 - v1.31.0
408454
455+ - group : " Serverless integration test"
456+ key : integration-tests-serverless
457+ notify :
458+ - github_commit_status :
459+ context : " buildkite/elastic-agent-extended-testing - Serverless integration test"
460+ steps :
461+ - label : " Windows:2022:amd64:sudo"
462+ depends_on :
463+ - packaging-windows
464+ env :
465+ TEST_PACKAGE : " github.com/elastic/elastic-agent/testing/integration/serverless"
466+ command : |
467+ buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
468+ .buildkite/scripts/buildkite-integration-tests.ps1 fleet true
469+ artifact_paths :
470+ - build/**
471+ - build/diagnostics/**
472+ retry :
473+ automatic :
474+ limit : 1
475+ agents :
476+ provider : " gcp"
477+ machineType : " n2-standard-8"
478+ image : " ${IMAGE_WIN_2022}"
479+ plugins :
480+ - *google_oidc_plugin
481+ - *gcp_serverless_secrets_plugin
482+
483+ - label : " Windows:2025:amd64:sudo"
484+ depends_on :
485+ - packaging-windows
486+ env :
487+ TEST_PACKAGE : " github.com/elastic/elastic-agent/testing/integration/serverless"
488+ command : |
489+ buildkite-agent artifact download build/distributions/** . --step 'packaging-windows'
490+ .buildkite/scripts/buildkite-integration-tests.ps1 fleet true
491+ artifact_paths :
492+ - build/**
493+ - build/diagnostics/**
494+ retry :
495+ automatic :
496+ limit : 1
497+ agents :
498+ provider : " gcp"
499+ machineType : " n2-standard-8"
500+ image : " ${IMAGE_WIN_2025}"
501+ plugins :
502+ - *google_oidc_plugin
503+ - *gcp_serverless_secrets_plugin
504+ - label : " Ubuntu:2404:amd64:sudo"
505+ depends_on : packaging-ubuntu-x86-64
506+ env :
507+ TEST_PACKAGE : " github.com/elastic/elastic-agent/testing/integration/serverless"
508+ command : |
509+ buildkite-agent artifact download build/distributions/** . --step 'packaging-ubuntu-x86-64'
510+ sudo -E .buildkite/scripts/buildkite-integration-tests.sh fleet true
511+ artifact_paths :
512+ - build/**
513+ - build/diagnostics/**
514+ retry :
515+ automatic :
516+ limit : 1
517+ agents :
518+ provider : " gcp"
519+ machineType : " n2-standard-8"
520+ image : " ${IMAGE_UBUNTU_2404_X86_64}"
521+ plugins :
522+ - *google_oidc_plugin
523+ - *gcp_serverless_secrets_plugin
524+
409525 - label : ESS stack cleanup
410526 depends_on :
411527 - integration-tests-ubuntu
@@ -430,6 +546,7 @@ steps:
430546 - integration-tests-win
431547 - integration-tests-rhel8
432548 - integration-tests-kubernetes
549+ - integration-tests-serverless
433550 allow_dependency_failure : true
434551 command : |
435552 buildkite-agent artifact download "build/*.xml" .
0 commit comments