chengxilo commented on code in PR #3384:
URL: https://github.com/apache/iggy/pull/3384#discussion_r3336121484
##########
scripts/run-bdd-tests.sh:
##########
@@ -56,42 +85,47 @@ fi
run_suite(){
local svc="$1" emoji="$2" label="$3"
- log "${emoji} ${label}โฆ"
- set +e
- "${COMPOSE_CMD[@]}" up --build --abort-on-container-exit --exit-code-from
"$svc" "$svc"
- local code=$?
- set -e
- "${COMPOSE_CMD[@]}" down -v --remove-orphans >/dev/null 2>&1 || true
+ if [ "$FEATURE" = "leader_redirection" ]; then
+ case "$svc" in
+ rust-bdd|go-bdd|csharp-bdd) ;;
+ *) log " skipping ${svc} (does not support ${FEATURE})"; return 0 ;;
+ esac
+ fi
+
+ log "${emoji} ${label}..."
+ local code=0
+ docker compose "${COMPOSE_FILES[@]}" \
+ up --build --abort-on-container-exit --exit-code-from "$svc" "$svc" \
+ || code=$?
+ docker compose "${COMPOSE_FILES[@]}" \
+ down -v --remove-orphans >/dev/null 2>&1 || true
return "$code"
}
case "$SDK" in
rust) run_suite rust-bdd "๐ฆ" "Running Rust BDD tests" ;;
python) run_suite python-bdd "๐" "Running Python BDD tests" ;;
go) run_suite go-bdd "๐น" "Running Go BDD tests" ;;
- go-race)
- export GO_TEST_EXTRA_FLAGS="-race"
- run_suite go-bdd "๐นโก" "Running Go BDD tests with data race detector"
- ;;
node) run_suite node-bdd "๐ข๐" "Running Node BDD tests" ;;
csharp) run_suite csharp-bdd "๐ท" "Running C# BDD tests" ;;
java) run_suite java-bdd "โ" "Running Java BDD tests" ;;
all)
run_suite rust-bdd "๐ฆ" "Running Rust BDD tests"
|| exit $?
run_suite python-bdd "๐" "Running Python BDD tests"
|| exit $?
run_suite go-bdd "๐น" "Running Go BDD tests"
|| exit $?
- GO_TEST_EXTRA_FLAGS="-race" \
- run_suite go-bdd "๐นโก" "Running Go BDD tests with data race detector"
|| exit $?
run_suite node-bdd "๐ข๐" "Running Node BDD tests"
|| exit $?
run_suite csharp-bdd "๐ท" "Running C# BDD tests"
|| exit $?
run_suite java-bdd "โ" "Running Java BDD tests"
|| exit $?
;;
clean)
- cleanup; exit 0 ;;
+ log "๐งน cleaning up all BDD containers & volumes..."
+ docker compose -f docker-compose.yml -f docker-compose.server.yml -f
docker-compose.cluster.yml -f docker-compose.coverage.yml \
Review Comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]