Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add functional test with OpenSearch 2 #4124

Merged
merged 1 commit into from
May 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions develop/buildkite/docker-compose-os2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
version: "3.5"

services:
cassandra:
image: cassandra:3.11
networks:
services-network:
aliases:
- cassandra

opensearch:
image: opensearchproject/opensearch:2.6.0
networks:
services-network:
aliases:
- opensearch
environment:
- discovery.type=single-node
- plugins.security.disabled=true

integration-test-cassandra:
build:
context: ../..
dockerfile: ./develop/buildkite/Dockerfile
environment:
- "CASSANDRA_SEEDS=cassandra"
- "ES_SEEDS=opensearch"
- "ES_VERSION=v8"
- "PERSISTENCE_TYPE=nosql"
- "PERSISTENCE_DRIVER=cassandra"
- "TEMPORAL_VERSION_CHECK_DISABLED=1"
- BUILDKITE_AGENT_ACCESS_TOKEN
- BUILDKITE_JOB_ID
- BUILDKITE_BUILD_ID
- BUILDKITE_BUILD_NUMBER
depends_on:
- cassandra
- opensearch
volumes:
- ../..:/temporal
- /usr/bin/buildkite-agent:/usr/bin/buildkite-agent
networks:
services-network:
aliases:
- integration-test

networks:
services-network:
name: services-network
driver: bridge
15 changes: 15 additions & 0 deletions develop/buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,21 @@ steps:
run: integration-test-cassandra
config: ./develop/buildkite/docker-compose-es8.yml

- label: ":golang: functional test with cassandra (OpenSearch 2)"
agents:
queue: "default"
docker: "*"
command: "make functional-test-coverage"
artifact_paths:
- ".coverage/*.out"
retry:
automatic:
limit: 1
plugins:
- docker-compose#v3.8.0:
run: integration-test-cassandra
config: ./develop/buildkite/docker-compose-os2.yml

- label: ":golang: functional xdc test with cassandra"
agents:
queue: "default"
Expand Down
4 changes: 4 additions & 0 deletions develop/buildkite/scripts/coverage-report.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ buildkite-agent artifact download ".coverage/integration_coverprofile.out" . --s
buildkite-agent artifact download ".coverage/functional_cassandra_coverprofile.out" . --step ":golang: functional test with cassandra (ES8)" --build "${BUILDKITE_BUILD_ID}"
mv ./.coverage/functional_cassandra_coverprofile.out ./.coverage/functional_cassandra_es8_coverprofile.out

# OpenSearch 2.
buildkite-agent artifact download ".coverage/functional_cassandra_coverprofile.out" . --step ":golang: functional test with cassandra (OpenSearch 2)" --build "${BUILDKITE_BUILD_ID}"
mv ./.coverage/functional_cassandra_coverprofile.out ./.coverage/functional_cassandra_os2_coverprofile.out

# Cassandra.
buildkite-agent artifact download ".coverage/functional_cassandra_coverprofile.out" . --step ":golang: functional test with cassandra" --build "${BUILDKITE_BUILD_ID}"
buildkite-agent artifact download ".coverage/functional_xdc_cassandra_coverprofile.out" . --step ":golang: functional xdc test with cassandra" --build "${BUILDKITE_BUILD_ID}"
Expand Down