Skip to content

Commit

Permalink
Migrate unit tests from AWS to GKE (#6082)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaddoll authored Jun 3, 2024
1 parent f0f7efd commit 1463dc5
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 11 deletions.
38 changes: 33 additions & 5 deletions .buildkite/pipeline-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,26 @@ steps:
command: "./scripts/buildkite/fossa.sh"

- label: ":golang: unit test"
agents:
queue: "workers"
commands:
- "CASSANDRA_HOST=cassandra make install-schema && make cover_profile" # make install-schema is needed for a server startup test. See main_test.go
- "./scripts/buildkite/gen_coverage_metadata.sh .build/coverage/metadata.txt"
artifact_paths:
- ".build/coverage/*.out"
- ".build/coverage/metadata.txt"
retry:
automatic:
limit: 1
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
# ensure that we are not rebuilding binaries and not regenerating code
make .just-build
# make install-schema is needed for a server startup test. See main_test.go
CASSANDRA_HOST=cassandra make install-schema && make cover_profile
./scripts/buildkite/gen_coverage_metadata.sh .build/coverage/metadata.txt
- docker-compose#v3.0.0:
run: unit-test
config: docker/buildkite/docker-compose.yml
Expand Down Expand Up @@ -112,6 +120,26 @@ steps:
run: integration-test-cassandra
config: docker/buildkite/docker-compose-es7.yml

- label: ":golang: integration test with cassandra with OpenSearch v2"
artifact_paths:
- ".build/coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
make cover_integration_profile
- docker-compose#v3.0.0:
run: integration-test-cassandra
config: docker/buildkite/docker-compose-opensearch2.yml

- label: ":golang: integration ndc test with cassandra"
artifact_paths:
- ".build/coverage/*.out"
Expand Down
19 changes: 13 additions & 6 deletions .buildkite/pipeline-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,26 @@ steps:
command: "./scripts/buildkite/fossa.sh"

- label: ":golang: unit test"
agents:
queue: "workers"
commands:
- "make .just-build" # ensure that we are not rebuilding binaries and not regenerating code
- "CASSANDRA_HOST=cassandra make install-schema && make cover_profile" # make install-schema is needed for a server startup test. See main_test.go
- "./scripts/buildkite/gen_coverage_metadata.sh .build/coverage/metadata.txt"
artifact_paths:
- ".build/coverage/*.out"
- ".build/coverage/metadata.txt"
retry:
automatic:
limit: 1
plugins:
- kubernetes:
<<: *kubernetes
podSpec:
<<: *podSpec
containers:
- <<: *commandContainer
command:
- |-
# ensure that we are not rebuilding binaries and not regenerating code
make .just-build
# make install-schema is needed for a server startup test. See main_test.go
CASSANDRA_HOST=cassandra make install-schema && make cover_profile
./scripts/buildkite/gen_coverage_metadata.sh .build/coverage/metadata.txt
- docker-compose#v3.0.0:
run: unit-test
config: docker/buildkite/docker-compose.yml
Expand Down

0 comments on commit 1463dc5

Please sign in to comment.