5454 retention-days : 7
5555
5656
57+ build-cliain-image :
58+ name : Build docker image for cliain
59+ runs-on : ubuntu-20.04
60+ steps :
61+ - name : GIT | Checkout source code
62+ uses : actions/checkout@v2
63+
64+ - name : Install Rust toolchain
65+ uses : actions-rs/toolchain@v1
66+
67+ - name : Restore cache
68+ uses : ./.github/actions/restore-cache
69+ with :
70+ target-key : cliain
71+ cache-version : v2
72+ cargo-targets : bin/cliain/target/
73+
74+ - name : Cargo | Build release binary
75+ run : |
76+ cd bin/cliain && cargo build --release
77+
78+ - name : Build docker image
79+ run : |
80+ cd bin/cliain
81+ docker build --tag cliain:latest -f ./Dockerfile .
82+ docker save -o cliain.tar cliain:latest
83+
84+ - name : Upload test docker image
85+ uses : actions/upload-artifact@v2
86+ with :
87+ name : cliain-docker
88+ path : ./bin/cliain/cliain.tar
89+ if-no-files-found : error
90+ retention-days : 7
91+
92+ - name : Cleanup cache
93+ uses : ./.github/actions/post-cache
94+
95+
5796 check-determinism :
5897 needs : [build-new-node]
5998 name : Verify runtime build determinism
@@ -279,6 +318,7 @@ jobs:
279318 test-case : fee_calculation
280319 timeout-minutes : 2
281320
321+
282322 run-e2e-validators-rotate :
283323 needs : [build-test-docker, build-test-client]
284324 name : Run validators rotation test
@@ -417,6 +457,21 @@ jobs:
417457 follow-up-finalization-check : true
418458 timeout-minutes : 15
419459
460+ run-e2e-ban-manual :
461+ needs : [build-test-docker, build-test-client]
462+ name : Run ban manual test
463+ runs-on : ubuntu-20.04
464+ steps :
465+ - name : Checkout source code
466+ uses : actions/checkout@v2
467+
468+ - name : Run e2e test
469+ uses : ./.github/actions/run-e2e-test
470+ with :
471+ test-case : ban_manual
472+ follow-up-finalization-check : true
473+ timeout-minutes : 15
474+
420475 run-e2e-ban-counter-clearing :
421476 needs : [build-test-docker, build-test-client]
422477 name : Run ban counter clearing test
@@ -432,6 +487,21 @@ jobs:
432487 follow-up-finalization-check : true
433488 timeout-minutes : 15
434489
490+ run-e2e-ban-threshold :
491+ needs : [build-test-docker, build-test-client]
492+ name : Run ban threshold test
493+ runs-on : ubuntu-20.04
494+ steps :
495+ - name : Checkout source code
496+ uses : actions/checkout@v2
497+
498+ - name : Run e2e test
499+ uses : ./.github/actions/run-e2e-test
500+ with :
501+ test-case : ban_threshold
502+ follow-up-finalization-check : true
503+ timeout-minutes : 15
504+
435505 run-e2e-version-upgrade :
436506 needs : [build-test-docker, build-test-client]
437507 name : Run basic (positive) version-upgrade test
@@ -445,11 +515,91 @@ jobs:
445515 with :
446516 test-case : version_upgrade
447517 env :
448- UPGRADE_VERSION : 1,
449- UPGRADE_SESSION : 3,
450- UPGRADE_FINALIZATION_WAIT_SESSIONS : 2,
518+ UPGRADE_VERSION : 1
519+ UPGRADE_SESSION : 3
520+ UPGRADE_FINALIZATION_WAIT_SESSIONS : 2
521+ timeout-minutes : 10
522+
523+ run-e2e-failing-version-upgrade :
524+ needs : [build-test-docker, build-test-client]
525+ name : Run basic (failing) version-upgrade test
526+ runs-on : ubuntu-20.04
527+ steps :
528+ - name : Checkout source code
529+ uses : actions/checkout@v2
530+
531+ - name : Run e2e test
532+ uses : ./.github/actions/run-e2e-test
533+ with :
534+ test-case : doomed_version_upgrade
535+ env :
536+ OVERRIDE_DOCKER_COMPOSE : ./.github/scripts/docker-compose.no_quorum_without_old.override.yml
537+ UPGRADE_VERSION : 1
538+ UPGRADE_SESSION : 3
539+ UPGRADE_FINALIZATION_WAIT_SESSIONS : 2
540+ ONLY_LEGACY : true
451541 timeout-minutes : 10
452542
543+ run-e2e-version-upgrade-catchup :
544+ needs : [build-test-docker, build-cliain-image]
545+ name : Run series of tests where some of the nodes need to do version-upgrade during catch-up
546+ runs-on : ubuntu-20.04
547+ strategy :
548+ matrix :
549+ include :
550+ - nodes : " Node1"
551+ ports : " 9934"
552+ ext_status : " finalized"
553+ upgrade_before_disable : " true"
554+
555+ - nodes : " Node1"
556+ ports : " 9934"
557+ ext_status : " finalized"
558+ upgrade_before_disable : " false"
559+
560+ - nodes : " Node1:Node2"
561+ ports : " 9934:9935"
562+ ext_status : " in-block"
563+ upgrade_before_disable : " true"
564+
565+ - nodes : " Node1:Node2"
566+ ports : " 9934:9935"
567+ ext_status : " in-block"
568+ upgrade_before_disable : " false"
569+ steps :
570+ - name : Checkout source code
571+ uses : actions/checkout@v2
572+
573+ - name : Download artifact with docker image for aleph-node
574+ uses : actions/download-artifact@v2
575+ with :
576+ name : aleph-test-docker
577+
578+ - name : Load node docker image
579+ shell : bash
580+ run : docker load -i aleph-node.tar
581+
582+ - name : Download artifact with docker image for cliain
583+ uses : actions/download-artifact@v2
584+ with :
585+ name : cliain-docker
586+
587+ - name : Load cliain docker image
588+ shell : bash
589+ run : docker load -i cliain.tar
590+
591+ - name : Call catchup_test.sh
592+ env :
593+ UPGRADE_BLOCK : 31
594+ NODES : ${{ matrix.nodes }}
595+ PORTS : ${{ matrix.ports }}
596+ EXT_STATUS : ${{ matrix.ext_status }}
597+ UPGRADE_BEFORE_DISABLE : ${{ matrix.upgrade_before_disable }}
598+ DOCKER_COMPOSE : docker/docker-compose.bridged.yml
599+
600+ run : |
601+ ./scripts/catchup_version_upgrade_test.sh
602+
453603 check-e2e-test-suite-completion :
454604 needs : [
455605 run-e2e-finalization-test,
@@ -470,9 +620,13 @@ jobs:
470620 run-e2e-rewards-change-stake-force-new-era,
471621 run-e2e-rewards-points-basic,
472622 run-e2e-authorities-are-staking,
623+ run-e2e-ban-automatic,
624+ run-e2e-ban-manual,
473625 run-e2e-ban-counter-clearing,
626+ run-e2e-ban-threshold,
474627 run-e2e-version-upgrade,
475- run-e2e-ban-automatic,
628+ run-e2e-failing-version-upgrade,
629+ run-e2e-version-upgrade-catchup,
476630 ]
477631 name : Check e2e test suite completion
478632 runs-on : ubuntu-20.04
0 commit comments