This is an automated email from the ASF dual-hosted git repository.
ivandasch pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ignite.git
The following commit(s) were added to refs/heads/master by this push:
new 23e55d3d205 IGNITE-18459 [ducktests] Run extra setup script on all
docker nodes (#10461)
23e55d3d205 is described below
commit 23e55d3d205e691955942d6a463732ad16cd26b9
Author: Sergey Korotkov <[email protected]>
AuthorDate: Wed Dec 28 19:31:36 2022 +0700
IGNITE-18459 [ducktests] Run extra setup script on all docker nodes (#10461)
---
modules/ducktests/tests/docker/ducker-ignite | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
diff --git a/modules/ducktests/tests/docker/ducker-ignite
b/modules/ducktests/tests/docker/ducker-ignite
index 14d472c3d59..4b8b589c6f6 100755
--- a/modules/ducktests/tests/docker/ducker-ignite
+++ b/modules/ducktests/tests/docker/ducker-ignite
@@ -232,6 +232,14 @@ ask_yes_no() {
done
}
+# Wait for all the background jobs
+wait_jobs() {
+ for job in `jobs -p`
+ do
+ wait $job
+ done
+}
+
# Build a docker image.
#
# $1: The docker build context
@@ -487,7 +495,11 @@ ducker_test() {
must_popd
if [[ -n "${DUCKTAPE_EXTRA_SETUP}" ]]; then
echo "executing extra ducktape setup with '${DUCKTAPE_EXTRA_SETUP}'"
- docker exec --user=root ducker01 bash -c "${DUCKTAPE_EXTRA_SETUP}"
+ local nodes=$(echo_running_container_names)
+ for node in ${nodes}; do
+ docker exec --user=root ${node} bash -c "${DUCKTAPE_EXTRA_SETUP}" &
+ done
+ wait_jobs
[[ $? -ne 0 ]] && die "failed to execute extra ducktape setup."
fi
cmd="cd /opt/ignite-dev && ducktape --cluster-file
/opt/ignite-dev/modules/ducktests/tests/docker/build/cluster.json $args"