forked from cadence-workflow/cadence-go-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate CI from AWS queues to Google Kubernetes Engine queues (cadenc…
…e-workflow#1333) * Migrate CI from AWS queues to Google Kubernetes Engine queues - Add necessary k8s plugin config to the pipeline for use with GKE + Buildkite's agent-stack-k8s helm stack - Remove docker agent tag filter - Install bk agent in Dockerfile for use in the code coverage step - Add comment on source of buildkite-agent installation commands - Add comment on yq explode usage to the top of pipeline.yml
- Loading branch information
Showing
3 changed files
with
105 additions
and
34 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 |
---|---|---|
@@ -1,93 +1,155 @@ | ||
# `yq 'explode(.)' .buildkite/pipeline.yml` to view expanded anchors/aliases | ||
container: | ||
kubernetes: &kubernetes | ||
gitEnvFrom: | ||
- secretRef: | ||
name: oss-github-ssh-credentials | ||
sidecars: | ||
- image: us-west1-docker.pkg.dev/ci-compute/buildkite-images/buildkite-dind:v1 | ||
volumeMounts: | ||
- mountPath: /var/run/ | ||
name: docker-sock | ||
securityContext: | ||
privileged: true | ||
allowPrivilegeEscalation: true | ||
mirrorVolumeMounts: true # CRITICAL: this must be at the same indentation level as sidecars | ||
podSpec: &podSpec | ||
containers: | ||
- &commandContainer | ||
image: us-west1-docker.pkg.dev/ci-compute/buildkite-images/buildkite-command-container:v2 | ||
command: | ||
- |- | ||
echo "Command step was not overridden." | ||
exit 1 | ||
volumeMounts: | ||
- mountPath: /var/run/ | ||
name: docker-sock | ||
resources: | ||
requests: | ||
cpu: 7500m | ||
memory: 28G | ||
volumes: | ||
- name: docker-sock | ||
emptyDir: {} | ||
|
||
agents: | ||
queue: "buildkite-gcp" | ||
steps: | ||
- label: "fossa analyze" | ||
agents: | ||
queue: "init" | ||
docker: "*" | ||
command: ".buildkite/scripts/fossa.sh" | ||
|
||
- label: ":golang: unit-test" | ||
agents: | ||
queue: "workers" | ||
docker: "*" | ||
commands: | ||
- "make unit_test" | ||
- ".buildkite/scripts/gen_coverage_metadata.sh .build/metadata.txt" | ||
artifact_paths: | ||
- ".build/*/coverage/*.out" | ||
- ".build/cover.out" | ||
- ".build/metadata.txt" | ||
plugins: | ||
- kubernetes: | ||
<<: *kubernetes | ||
podSpec: | ||
<<: *podSpec | ||
containers: | ||
- <<: *commandContainer | ||
command: | ||
- |- | ||
make unit_test | ||
.buildkite/scripts/gen_coverage_metadata.sh .build/metadata.txt | ||
- docker-compose#v3.0.0: | ||
run: unit-test | ||
config: docker/buildkite/docker-compose.yml | ||
|
||
- label: ":golangci-lint: validate code is clean" | ||
agents: | ||
queue: "workers" | ||
docker: "*" | ||
command: "./scripts/golint.sh" | ||
artifact_paths: [ ] | ||
retry: | ||
automatic: | ||
limit: 1 | ||
limit: 2 | ||
plugins: | ||
- kubernetes: | ||
<<: *kubernetes | ||
podSpec: | ||
<<: *podSpec | ||
containers: | ||
- <<: *commandContainer | ||
command: | ||
- |- | ||
./scripts/golint.sh | ||
- docker-compose#v3.0.0: | ||
run: unit-test | ||
config: docker/buildkite/docker-compose.yml | ||
|
||
- label: ":golang: integration-test-sticky-off" | ||
agents: | ||
queue: "workers" | ||
docker: "*" | ||
command: "make integ_test_sticky_off" | ||
artifact_paths: | ||
- ".build/*/coverage/*.out" | ||
retry: | ||
automatic: | ||
limit: 1 | ||
limit: 2 | ||
plugins: | ||
- kubernetes: | ||
<<: *kubernetes | ||
podSpec: | ||
<<: *podSpec | ||
containers: | ||
- <<: *commandContainer | ||
command: | ||
- |- | ||
make integ_test_sticky_off | ||
- docker-compose#v3.0.0: | ||
run: integ-test | ||
config: docker/buildkite/docker-compose.yml | ||
|
||
- label: ":golang: integration-test-sticky-on" | ||
agents: | ||
queue: "workers" | ||
docker: "*" | ||
command: "make integ_test_sticky_on" | ||
artifact_paths: | ||
- ".build/*/coverage/*.out" | ||
retry: | ||
automatic: | ||
limit: 1 | ||
limit: 2 | ||
plugins: | ||
- kubernetes: | ||
<<: *kubernetes | ||
podSpec: | ||
<<: *podSpec | ||
containers: | ||
- <<: *commandContainer | ||
command: | ||
- |- | ||
make integ_test_sticky_on | ||
- docker-compose#v3.0.0: | ||
run: integ-test | ||
config: docker/buildkite/docker-compose.yml | ||
|
||
- label: ":golang: integration-test-grpc-adapter" | ||
agents: | ||
queue: "workers" | ||
docker: "*" | ||
command: "make integ_test_grpc" | ||
artifact_paths: | ||
- ".build/*/coverage/*.out" | ||
retry: | ||
automatic: | ||
limit: 1 | ||
limit: 2 | ||
plugins: | ||
- kubernetes: | ||
<<: *kubernetes | ||
podSpec: | ||
<<: *podSpec | ||
containers: | ||
- <<: *commandContainer | ||
command: | ||
- |- | ||
make integ_test_grpc | ||
- docker-compose#v3.0.0: | ||
run: integ-test-grpc | ||
config: docker/buildkite/docker-compose.yml | ||
|
||
- wait | ||
|
||
- label: ":golang: code-coverage" | ||
agents: | ||
queue: "workers" | ||
docker: "*" | ||
command: ".buildkite/scripts/gocov.sh" | ||
plugins: | ||
- kubernetes: | ||
<<: *kubernetes | ||
podSpec: | ||
<<: *podSpec | ||
containers: | ||
- <<: *commandContainer | ||
command: | ||
- |- | ||
.buildkite/scripts/gocov.sh | ||
- docker-compose#v3.0.0: | ||
run: coverage-report | ||
config: docker/buildkite/docker-compose.yml |
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