Skip to content

Commit ab0b2e5

Browse files
committed
WIP fixing pipelines
1 parent 31f7e96 commit ab0b2e5

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

.github/scripts/run_consensus.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ set -euo pipefail
66
# change when increasing the number of node containers
77
NODE_COUNT=5
88
MIN_VALIDATOR_COUNT=4
9+
DOCKER_COMPOSE=${DOCKER_COMPOSE:-"docker/docker-compose.yml"}
910
OVERRIDE_DOCKER_COMPOSE=${OVERRIDE_DOCKER_COMPOSE:-""}
1011

1112
# default minimum validator count
@@ -83,19 +84,20 @@ function generate_bootnode_peer_id {
8384

8485
function run_containers {
8586
local authorities_count="$1"
86-
local override_file="$2"
87+
local docker_compose_file="$2"
88+
local override_file="$3"
8789

8890
echo "Running ${authorities_count} containers..."
8991
if [[ -z ${override_file} ]]; then
90-
docker-compose -f docker/docker-compose.yml up -d
92+
docker-compose -f "${docker_compose_file}" up -d
9193
else
92-
docker-compose -f docker/docker-compose.yml -f "${override_file}" up -d
94+
docker-compose -f "${docker_compose_file}" -f "${override_file}" up -d
9395
fi
9496
}
9597

9698
authorities=$(generate_authorities ${NODE_COUNT})
9799
generate_chainspec "${authorities[@]}" "${MIN_VALIDATOR_COUNT}"
98100
generate_bootnode_peer_id ${authorities[0]}
99-
run_containers ${NODE_COUNT} "${OVERRIDE_DOCKER_COMPOSE}"
101+
run_containers ${NODE_COUNT} "${DOCKER_COMPOSE}" "${OVERRIDE_DOCKER_COMPOSE}"
100102

101103
exit $?

.github/workflows/e2e-tests-main-devnet.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ jobs:
543543
- name: Call catchup_test.sh
544544
run: |
545545
chmod +x ./scripts/catchup_version_upgrade_test.sh
546-
UPGRADE_ROUND=31 NODES="Node1" PORTS="9934" EXT_STATUS=finalized ./scripts/catchup_version_upgrade_test.sh
546+
UPGRADE_ROUND=31 NODES="Node1" PORTS="9934" EXT_STATUS=finalized DOCKER_COMPOSE=docker/docker-compose.bridged.yml ./scripts/catchup_version_upgrade_test.sh
547547
548548
run-e2e-version-upgrade-catchup-two-late:
549549
needs: [build-test-docker, build-cliain-image]
@@ -577,7 +577,7 @@ jobs:
577577
- name: Call catchup_test.sh
578578
run: |
579579
chmod +x ./scripts/catchup_version_upgrade_test.sh
580-
UPGRADE_ROUND=31 NODES="Node1:Node2" PORTS="9934:9935" EXT_STATUS="in-block" ./scripts/catchup_version_upgrade_test.sh
580+
UPGRADE_ROUND=31 NODES="Node1:Node2" PORTS="9934:9935" EXT_STATUS="in-block" DOCKER_COMPOSE=docker/docker-compose.bridged.yml ./scripts/catchup_version_upgrade_test.sh
581581
582582
run-e2e-version-upgrade-early-catchup-one-late:
583583
needs: [build-test-docker, build-cliain-image]
@@ -611,7 +611,7 @@ jobs:
611611
- name: Call catchup_test.sh
612612
run: |
613613
chmod +x ./scripts/catchup_version_upgrade_test.sh
614-
UPGRADE_BEFORE_DISABLE=true UPGRADE_ROUND=31 NODES="Node1" PORTS="9934" EXT_STATUS=finalized ./scripts/catchup_version_upgrade_test.sh
614+
UPGRADE_BEFORE_DISABLE=true UPGRADE_ROUND=31 NODES="Node1" PORTS="9934" EXT_STATUS=finalized DOCKER_COMPOSE=docker/docker-compose.bridged.yml ./scripts/catchup_version_upgrade_test.sh
615615
616616
run-e2e-version-upgrade-early-catchup-two-late:
617617
needs: [build-test-docker, build-cliain-image]
@@ -645,7 +645,7 @@ jobs:
645645
- name: Call catchup_test.sh
646646
run: |
647647
chmod +x ./scripts/catchup_version_upgrade_test.sh
648-
UPGRADE_BEFORE_DISABLE=true UPGRADE_ROUND=31 NODES="Node1:Node2" PORTS="9934:9935" EXT_STATUS="in-block" ./scripts/catchup_version_upgrade_test.sh
648+
UPGRADE_BEFORE_DISABLE=true UPGRADE_ROUND=31 NODES="Node1:Node2" PORTS="9934:9935" EXT_STATUS="in-block" DOCKER_COMPOSE=docker/docker-compose.bridged.yml ./scripts/catchup_version_upgrade_test.sh
649649
650650
check-e2e-test-suite-completion:
651651
needs: [

0 commit comments

Comments
 (0)