Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
9106149
support in cliain for version_upgrade
fixxxedpoint Nov 4, 2022
a13cc8f
support of our docker-compose to run using bridged docker's network
fixxxedpoint Nov 4, 2022
dc072d9
catchup_version_upgrade_test.sh
fixxxedpoint Nov 4, 2022
83e02be
added the catchup version upgrade test to github pipelines
fixxxedpoint Nov 4, 2022
143ec1b
review changes
fixxxedpoint Nov 6, 2022
8ca57d7
chmod +x catchup_version_upgrade_test.sh
fixxxedpoint Nov 7, 2022
02fd76b
review changes: using `matrix` for catch-up version upgrade test
fixxxedpoint Nov 7, 2022
87defd7
review changes: bumped version of aleph-client; added schedule_versio…
fixxxedpoint Nov 7, 2022
65a41f6
review changes: comment about key derivation in docker-compose `//1` …
fixxxedpoint Nov 7, 2022
4e05972
fix: e2e...yml: wrong `uses`
fixxxedpoint Nov 7, 2022
148439c
bumped e2e-tests/Cargo.lock
fixxxedpoint Nov 7, 2022
d3d65ed
fix: version_upgrade after api refactor
fixxxedpoint Nov 7, 2022
35563c7
review changes: added cache cleanup to build-cliain-image job
fixxxedpoint Nov 7, 2022
22dce1e
fix: typo in e2e...yml s/NODE2/Node2
fixxxedpoint Nov 7, 2022
781c881
fix for e2e...yml: fixed matrix-include for catch-up version upgrade …
fixxxedpoint Nov 7, 2022
999ef6f
Merge branch 'main' into message_compatibility-catchup
fixxxedpoint Nov 8, 2022
992926a
review changes: renamed local variable in catchup_version_upgrade.sh
fixxxedpoint Nov 8, 2022
dd9e3ed
Merge branch 'main' into message_compatibility-catchup
fixxxedpoint Nov 8, 2022
0b27557
more review changes for catchup_version_upgrade_test.sh
fixxxedpoint Nov 8, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
added the catchup version upgrade test to github pipelines
  • Loading branch information
fixxxedpoint committed Nov 4, 2022
commit 83e02be073772da1e896a1efedb0afcad8c56312
159 changes: 159 additions & 0 deletions .github/workflows/e2e-tests-main-devnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,36 @@ jobs:
retention-days: 7


build-cliain-image:
name: Build docker image for cliain
runs-on: ubuntu-20.04
steps:
- name: GIT | Checkout source code
uses: actions/checkout@v2

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1

- name: Cargo | Build release binary
run: |
cd ./bin/cliain && cargo build --release

- name: Build docker image
run: |
cd ./bin/cliain
chmod +x target/release/cliain
docker build --tag cliain:latest -f ./Dockerfile .
docker save -o cliain.tar cliain:latest

- name: Upload test docker image
uses: actions/upload-artifact@v2
with:
name: cliain-docker
path: ./bin/cliain/cliain.tar
if-no-files-found: error
retention-days: 7


check-determinism:
needs: [build-new-node]
name: Verify runtime build determinism
Expand Down Expand Up @@ -279,6 +309,7 @@ jobs:
test-case: fee_calculation
timeout-minutes: 2


run-e2e-validators-rotate:
needs: [build-test-docker, build-test-client]
name: Run validators rotation test
Expand Down Expand Up @@ -485,6 +516,130 @@ jobs:
follow-up-finalization-check: true
timeout-minutes: 15

run-e2e-version-upgrade-catchup-one-node-late:
needs: [build-test-docker, build-cliain-image]
name: Run a test where one of the nodes learns of version-upgrade during catchup
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Download artifact with docker image for aleph-node
uses: actions/download-artifact@v2
with:
name: aleph-test-docker

- name: Load node docker image
shell: bash
run: docker load -i aleph-node.tar

- name: Download artifact with docker image for cliain
uses: actions/download-artifact@v2
with:
name: cliain-docker

- name: Load cliain docker image
shell: bash
run: docker load -i cliain.tar

- name: Call catchup_test.sh
run: |
chmod +x ./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-nodes-late:
needs: [build-test-docker, build-cliain-image]
name: Run a test where two nodes learn of version-upgrade during catchup
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Download artifact with docker image for aleph-node
uses: actions/download-artifact@v2
with:
name: aleph-test-docker

- name: Load node docker image
shell: bash
run: docker load -i aleph-node.tar

- name: Download artifact with docker image for cliain
uses: actions/download-artifact@v2
with:
name: cliain-docker

- name: Load cliain docker image
shell: bash
run: docker load -i cliain.tar

- 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" DOCKER_COMPOSE=docker/docker-compose.bridged.yml ./scripts/catchup_version_upgrade_test.sh

run-e2e-version-upgrade-early-catchup-one-node-late:
needs: [build-test-docker, build-cliain-image]
name: Run a test where one of the nodes learns of version-upgrade before catchup
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Download artifact with docker image for aleph-node
uses: actions/download-artifact@v2
with:
name: aleph-test-docker

- name: Load node docker image
shell: bash
run: docker load -i aleph-node.tar

- name: Download artifact with docker image for cliain
uses: actions/download-artifact@v2
with:
name: cliain-docker

- name: Load cliain docker image
shell: bash
run: docker load -i cliain.tar

- 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" DOCKER_COMPOSE=docker/docker-compose.bridged.yml ./scripts/catchup_version_upgrade_test.sh

run-e2e-version-upgrade-early-catchup-two-nodes-late:
needs: [build-test-docker, build-cliain-image]
name: Run a test where two nodes learn of version-upgrade before catchup
runs-on: ubuntu-20.04
steps:
- name: Checkout source code
uses: actions/checkout@v2

- name: Download artifact with docker image for aleph-node
uses: actions/download-artifact@v2
with:
name: aleph-test-docker

- name: Load node docker image
shell: bash
run: docker load -i aleph-node.tar

- name: Download artifact with docker image for cliain
uses: actions/download-artifact@v2
with:
name: cliain-docker

- name: Load cliain docker image
shell: bash
run: docker load -i cliain.tar

- 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="finalized" DOCKER_COMPOSE=docker/docker-compose.bridged.yml ./scripts/catchup_version_upgrade_test.sh

check-e2e-test-suite-completion:
needs: [
run-e2e-finalization-test,
Expand All @@ -510,6 +665,10 @@ jobs:
run-e2e-ban-manual,
run-e2e-version-upgrade,
run-e2e-failing-version-upgrade,
run-e2e-version-upgrade-catchup-one-node-late,
run-e2e-version-upgrade-catchup-two-nodes-late,
run-e2e-version-upgrade-early-catchup-one-node-late,
run-e2e-version-upgrade-early-catchup-two-nodes-late,
]
name: Check e2e test suite completion
runs-on: ubuntu-20.04
Expand Down