22
33env :
44 DOCKER_COMPOSE_VERSION : " 1.25.5"
5- DOCKER_REGISTRY : " docker.elastic.co"
6- DOCKER_IMAGE : " ${DOCKER_REGISTRY}/observability-ci/fleet-server" # needs to rename for rollback
7- DOCKER_IMAGE_SHA_TAG : " git-${BUILDKITE_COMMIT:0:12}" # needs to rename for rollback, should be "git-${BUILDKITE_COMMIT:0:12}"
8- DOCKER_IMAGE_LATEST_TAG : " latest" # needs to rename for rollback
9- DOCKER_IMAGE_GIT_TAG : " ${BUILDKITE_BRANCH}" # needs to rename for rollback
10- GO_AGENT_IMAGE : " golang:${GO_VERSION}"
115 TERRAFORM_VERSION : " 1.6.4"
126
137steps :
@@ -31,19 +25,15 @@ steps:
3125 steps :
3226 - label : " :white_check_mark: Run check-ci"
3327 key : check-ci
34- command : " make check-ci "
28+ command : " .buildkite/scripts/check_ci.sh "
3529 agents :
36- image : " ${GO_AGENT_IMAGE}"
37- cpu : " 8"
38- memory : " 4G"
30+ provider : " gcp"
3931
4032 - label : " :building_construction: Run local build"
4133 key : make-local
42- command : " make local "
34+ command : " .buildkite/scripts/local_build.sh "
4335 agents :
44- image : " ${GO_AGENT_IMAGE}"
45- cpu : " 8"
46- memory : " 4G"
36+ provider : " gcp"
4737
4838 - label : " :building_construction: Run local build: MacOS"
4939 key : make-local-macos
5848 - label : " Run go benchmark for PR branch"
5949 key : " go-benchmark-pr"
6050 command : " .buildkite/scripts/run_benchmark.sh pr"
51+ env :
52+ BENCHMARK_ARGS : " -count=8 -benchmem"
6153 artifact_paths :
6254 - build/next.out
6355 - build/next.stat
@@ -66,8 +58,11 @@ steps:
6658 machineType : " c2-standard-8"
6759
6860 - label : " Run go benchmark for ${BUILDKITE_PULL_REQUEST_BASE_BRANCH}"
61+ skip : true # FIXME: Temporarily disabled until mage is on main
6962 key : " go-benchmark-base"
7063 command : " .buildkite/scripts/run_benchmark.sh base"
64+ env :
65+ BENCHMARK_ARGS : " -count=8 -benchmem"
7166 artifact_paths :
7267 - build/base.out
7368 - build/base.stat
7671 machineType : " c2-standard-8"
7772
7873 - label : " Compare results"
74+ skip : true # FIXME: Temporarily disabled until mage is on main
7975 key : " go-benchmark-compare"
8076 command : " .buildkite/scripts/run_benchmark.sh compare"
8177 artifact_paths :
@@ -115,10 +111,9 @@ steps:
115111
116112 - label : " :smartbear-testexecute: Run fips140=only unit tests"
117113 key : unit-test-fips140-only
118- command : " .buildkite/scripts/unit_test .sh"
114+ command : " .buildkite/scripts/unit_test_fipsonly .sh"
119115 env :
120116 FIPS : " true"
121- GODEBUG : " fips140=only"
122117 agents :
123118 provider : " gcp"
124119 artifact_paths :
@@ -164,23 +159,6 @@ steps:
164159 branches : " main"
165160 debug : true
166161
167- - label : " FIPS E2E Test"
168- key : " fips-e2e-test"
169- env :
170- FIPS : true
171- command : " .buildkite/scripts/e2e_test.sh"
172- agents :
173- provider : " gcp"
174- artifact_paths :
175- - build/*.xml
176- - build/e2e-coverage.out
177- plugins :
178- - test-collector#v1.10.2:
179- files : " build/test-*.xml"
180- format : " junit"
181- branches : " main"
182- debug : true
183-
184162 - label : " :junit: Junit annotate"
185163 plugins :
186164 - junit-annotate#v2.4.1:
@@ -216,6 +194,13 @@ steps:
216194
217195 - label : " :gcloud: Cloud e2e Test"
218196 key : " cloud-e2e-test"
197+ env :
198+ DOCKER_REGISTRY : " docker.elastic.co"
199+ DOCKER_IMAGE : " docker.elastic.co/beats-ci/elastic-agent-cloud-fleet"
200+ DOCKER_IMAGE_TAG : " pr-${BUILDKITE_PULL_REQUEST}-${BUILDKITE_COMMIT:0:12}"
201+ SNAPSHOT : " true"
202+ PLATFORMS : " linux/amd64"
203+ TF_VAR_pull_request : " ${BUILDKITE_PULL_REQUEST}"
219204 command : " .buildkite/scripts/cloud_e2e_test.sh"
220205 agents :
221206 provider : " gcp"
@@ -231,6 +216,12 @@ steps:
231216 - label : " :docker: Publish docker image"
232217 key : " publish"
233218 command : " .buildkite/scripts/build_push_docker_image.sh"
219+ env :
220+ DOCKER_REGISTRY : " docker.elastic.co"
221+ DOCKER_IMAGE : " docker.elastic.co/observability-ci/fleet-server" # needs to rename for rollback
222+ DOCKER_IMAGE_SHA_TAG : " git-${BUILDKITE_COMMIT:0:12}" # needs to rename for rollback, should be "git-${BUILDKITE_COMMIT:0:12}"
223+ DOCKER_IMAGE_LATEST_TAG : " latest" # needs to rename for rollback
224+ DOCKER_IMAGE_GIT_TAG : " ${BUILDKITE_BRANCH}" # needs to rename for rollback
234225 if : " build.env('BUILDKITE_PULL_REQUEST') == 'false' && build.env('BUILDKITE_BRANCH') == 'main'"
235226 agents :
236227 provider : " gcp"
0 commit comments