Skip to content

Commit

Permalink
WIP fixing pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
fixxxedpoint committed Nov 4, 2022
1 parent 31f7e96 commit ab0b2e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .github/scripts/run_consensus.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set -euo pipefail
# change when increasing the number of node containers
NODE_COUNT=5
MIN_VALIDATOR_COUNT=4
DOCKER_COMPOSE=${DOCKER_COMPOSE:-"docker/docker-compose.yml"}
OVERRIDE_DOCKER_COMPOSE=${OVERRIDE_DOCKER_COMPOSE:-""}

# default minimum validator count
Expand Down Expand Up @@ -83,19 +84,20 @@ function generate_bootnode_peer_id {

function run_containers {
local authorities_count="$1"
local override_file="$2"
local docker_compose_file="$2"
local override_file="$3"

echo "Running ${authorities_count} containers..."
if [[ -z ${override_file} ]]; then
docker-compose -f docker/docker-compose.yml up -d
docker-compose -f "${docker_compose_file}" up -d
else
docker-compose -f docker/docker-compose.yml -f "${override_file}" up -d
docker-compose -f "${docker_compose_file}" -f "${override_file}" up -d
fi
}

authorities=$(generate_authorities ${NODE_COUNT})
generate_chainspec "${authorities[@]}" "${MIN_VALIDATOR_COUNT}"
generate_bootnode_peer_id ${authorities[0]}
run_containers ${NODE_COUNT} "${OVERRIDE_DOCKER_COMPOSE}"
run_containers ${NODE_COUNT} "${DOCKER_COMPOSE}" "${OVERRIDE_DOCKER_COMPOSE}"

exit $?
8 changes: 4 additions & 4 deletions .github/workflows/e2e-tests-main-devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ jobs:
- name: Call catchup_test.sh
run: |
chmod +x ./scripts/catchup_version_upgrade_test.sh
UPGRADE_ROUND=31 NODES="Node1" PORTS="9934" EXT_STATUS=finalized ./scripts/catchup_version_upgrade_test.sh
UPGRADE_ROUND=31 NODES="Node1" PORTS="9934" EXT_STATUS=finalized DOCKER_COMPOSE=docker/docker-compose.bridged.yml ./scripts/catchup_version_upgrade_test.sh
run-e2e-version-upgrade-catchup-two-late:
needs: [build-test-docker, build-cliain-image]
Expand Down Expand Up @@ -577,7 +577,7 @@ jobs:
- name: Call catchup_test.sh
run: |
chmod +x ./scripts/catchup_version_upgrade_test.sh
UPGRADE_ROUND=31 NODES="Node1:Node2" PORTS="9934:9935" EXT_STATUS="in-block" ./scripts/catchup_version_upgrade_test.sh
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
run-e2e-version-upgrade-early-catchup-one-late:
needs: [build-test-docker, build-cliain-image]
Expand Down Expand Up @@ -611,7 +611,7 @@ jobs:
- name: Call catchup_test.sh
run: |
chmod +x ./scripts/catchup_version_upgrade_test.sh
UPGRADE_BEFORE_DISABLE=true UPGRADE_ROUND=31 NODES="Node1" PORTS="9934" EXT_STATUS=finalized ./scripts/catchup_version_upgrade_test.sh
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
run-e2e-version-upgrade-early-catchup-two-late:
needs: [build-test-docker, build-cliain-image]
Expand Down Expand Up @@ -645,7 +645,7 @@ jobs:
- name: Call catchup_test.sh
run: |
chmod +x ./scripts/catchup_version_upgrade_test.sh
UPGRADE_BEFORE_DISABLE=true UPGRADE_ROUND=31 NODES="Node1:Node2" PORTS="9934:9935" EXT_STATUS="in-block" ./scripts/catchup_version_upgrade_test.sh
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
check-e2e-test-suite-completion:
needs: [
Expand Down

0 comments on commit ab0b2e5

Please sign in to comment.