Skip to content

Commit

Permalink
ci: fix 'test-nightly' job in 'edge' CI workflow (#3924)
Browse files Browse the repository at this point in the history
This adds the require zookeeper volume refs.

Closes: #3922
  • Loading branch information
trentm authored Mar 19, 2024
1 parent 990442a commit ca0e5b6
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .ci/docker/docker-compose-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,5 @@ volumes:
driver: local
nodekafkadata:
driver: local
nodezookeeperdata:
driver: local
6 changes: 6 additions & 0 deletions .ci/docker/docker-compose-edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ services:
extends:
file: docker-compose.yml
service: kafka
zookeeper:
extends:
file: docker-compose.yml
service: zookeeper
node_tests:
extends:
file: docker-compose-node-edge-test.yml
Expand Down Expand Up @@ -84,3 +88,5 @@ volumes:
driver: local
nodekafkadata:
driver: local
nodezookeeperdata:
driver: local
6 changes: 2 additions & 4 deletions .ci/docker/docker-compose-kafka.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,8 @@ services:
file: docker-compose-node-test.yml
service: node_tests
depends_on:
- kafka
# TODO: uncomment this if health_check is necessary
# kafka:
# condition: service_healthy
kafka:
condition: service_healthy

volumes:
nodekafkadata:
Expand Down
12 changes: 5 additions & 7 deletions .ci/docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,12 @@ services:
- KAFKA_CFG_DELETE_TOPIC_ENABLE=true
depends_on:
- zookeeper
# TODO: maybe not necessary but figure out how to do this
healthcheck:
# use netcat to check tcp connection available
# test: nc -z localhost 9093 || exit -1
# start_period: 15s
# interval: 5s
# timeout: 10s
# retries: 5
# Kafka healthcheck ideas from https://github.com/wurstmeister/kafka-docker/issues/167
test: kafka-cluster.sh cluster-id --bootstrap-server localhost:9092 || exit 1
interval: 30s
timeout: 10s
retries: 5

volumes:
nodepgdata:
Expand Down
7 changes: 3 additions & 4 deletions test/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,10 +162,9 @@ services:
depends_on:
- zookeeper
healthcheck:
# use netcat to check tcp connection available
test: nc -z localhost 9093 || exit -1
start_period: 15s
interval: 5s
# Kafka healthcheck ideas from https://github.com/wurstmeister/kafka-docker/issues/167
test: kafka-cluster.sh cluster-id --bootstrap-server localhost:9092 || exit 1
interval: 30s
timeout: 10s
retries: 5

Expand Down

0 comments on commit ca0e5b6

Please sign in to comment.