-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate Buildkite CI queues from AWS to GKE (#878)
* Migrate Buildkite CI queues from AWS to GKE * Add comment on buildkite agent installation instructions
- Loading branch information
Showing
3 changed files
with
103 additions
and
29 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,76 +1,146 @@ | ||
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: 30G | ||
volumes: | ||
- name: docker-sock | ||
emptyDir: {} | ||
|
||
agents: | ||
queue: buildkite-gcp | ||
|
||
steps: | ||
- label: "fossa analyze" | ||
agents: | ||
queue: "init" | ||
docker: "*" | ||
command: ".buildkite/scripts/fossa.sh" | ||
plugins: | ||
- kubernetes: | ||
<<: *kubernetes | ||
podSpec: | ||
<<: *podSpec | ||
containers: | ||
- <<: *commandContainer | ||
command: | ||
- |- | ||
.buildkite/scripts/fossa.sh | ||
- label: "Lint Check" | ||
agents: | ||
queue: "init" | ||
docker: "*" | ||
command: ".buildkite/scripts/lint.sh" | ||
plugins: | ||
- kubernetes: | ||
<<: *kubernetes | ||
podSpec: | ||
<<: *podSpec | ||
containers: | ||
- <<: *commandContainer | ||
command: | ||
- |- | ||
.buildkite/scripts/lint.sh | ||
- docker-compose#v3.0.0: | ||
run: unit-test-test-service | ||
config: docker/buildkite/docker-compose.yaml | ||
|
||
- label: ":java: Unit test with test services" | ||
agents: | ||
queue: "workers" | ||
docker: "*" | ||
command: "./gradlew --no-daemon test jacocoTestReport" | ||
artifact_paths: | ||
- "build/reports/jacoco/test/*.xml" | ||
timeout_in_minutes: 15 | ||
timeout_in_minutes: 30 | ||
retry: | ||
automatic: | ||
- exit_status: "*" | ||
limit: 3 | ||
plugins: | ||
- kubernetes: | ||
<<: *kubernetes | ||
podSpec: | ||
<<: *podSpec | ||
containers: | ||
- <<: *commandContainer | ||
command: | ||
- |- | ||
./gradlew --no-daemon test jacocoTestReport | ||
- docker-compose#v3.0.0: | ||
run: unit-test-test-service | ||
config: docker/buildkite/docker-compose.yaml | ||
|
||
- label: ":java: Unit test with docker services sticky on" | ||
agents: | ||
queue: "workers" | ||
docker: "*" | ||
command: "./gradlew --no-daemon test" | ||
timeout_in_minutes: 15 | ||
timeout_in_minutes: 30 | ||
retry: | ||
automatic: | ||
- exit_status: "*" | ||
limit: 3 | ||
plugins: | ||
- kubernetes: | ||
<<: *kubernetes | ||
podSpec: | ||
<<: *podSpec | ||
containers: | ||
- <<: *commandContainer | ||
command: | ||
- |- | ||
./gradlew --no-daemon test | ||
- docker-compose#v3.0.0: | ||
run: unit-test-docker-sticky-on | ||
config: docker/buildkite/docker-compose.yaml | ||
|
||
- label: ":java: Unit test with docker services sticky off" | ||
agents: | ||
queue: "workers" | ||
docker: "*" | ||
command: "./gradlew --no-daemon test" | ||
timeout_in_minutes: 15 | ||
timeout_in_minutes: 30 | ||
retry: | ||
automatic: | ||
- exit_status: "*" | ||
limit: 3 | ||
plugins: | ||
- kubernetes: | ||
<<: *kubernetes | ||
podSpec: | ||
<<: *podSpec | ||
containers: | ||
- <<: *commandContainer | ||
command: | ||
- |- | ||
./gradlew --no-daemon test | ||
- docker-compose#v3.0.0: | ||
run: unit-test-docker-sticky-off | ||
config: docker/buildkite/docker-compose.yaml | ||
|
||
- wait | ||
|
||
- label: ":java: Report test coverage" | ||
agents: | ||
queue: "workers" | ||
docker: "*" | ||
command: ".buildkite/scripts/coverage.sh" | ||
retry: | ||
automatic: | ||
- exit_status: "*" | ||
limit: 3 | ||
plugins: | ||
- kubernetes: | ||
<<: *kubernetes | ||
podSpec: | ||
<<: *podSpec | ||
containers: | ||
- <<: *commandContainer | ||
command: | ||
- |- | ||
.buildkite/scripts/coverage.sh | ||
- docker-compose#v3.0.0: | ||
run: test-coverage-report | ||
config: docker/buildkite/docker-compose.yaml |
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