Skip to content
28 changes: 19 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -349,34 +349,42 @@ jobs:
]

include:
# Include a test for the 11.1 integration version of Cardano
- mode: "11.1.0-integration"
era: ${{ fromJSON(needs.build-ubuntu.outputs.eras)[0] }}
next_era: [""]
cardano_node_version: "11.1.0-integration"
hard_fork_latest_era_at_epoch: 0
run_id: "#1"
extra_args: "--cardano-binary-url=https://storage.googleapis.com/mithril-cardano-node-artifacts-test/cardano-node/11.1.0-integration/cardano-node-11.0.1-linux.tar.gz full --check-client-cli-snapshot-converter"
# Include a test for partial decentralization with leader/follower signer registration and P2P signature registration with Haskell DMQ node (without fallback signature delayer)
- mode: "leader-follower-dmq-haskell-skip-delayer"
era: ${{ fromJSON(needs.build-ubuntu.outputs.eras)[0] }}
next_era: [""]
next_era: ""
cardano_node_version: "10.6.2"
hard_fork_latest_era_at_epoch: 0
run_id: "#1"
extra_args: "--skip-signature-delayer --number-of-aggregators=2 --use-relays --relay-signer-registration-mode=passthrough --relay-signature-registration-mode=p2p --aggregate-signature-type=Concatenation --use-dmq --dmq-node-flavor=haskell --dmq-node-version 0.6.0.0"
# Include a test for partial decentralization with leader/follower signer registration and P2P signature registration with Haskell DMQ node (with fallback signature delayer)
- mode: "leader-follower-dmq-haskell-with-delayer"
era: ${{ fromJSON(needs.build-ubuntu.outputs.eras)[0] }}
next_era: [""]
next_era: ""
cardano_node_version: "10.6.2"
hard_fork_latest_era_at_epoch: 0
run_id: "#1"
extra_args: "--number-of-aggregators=2 --use-relays --relay-signer-registration-mode=passthrough --relay-signature-registration-mode=p2p --aggregate-signature-type=Concatenation --use-dmq --dmq-node-flavor=haskell --dmq-node-version 0.6.0.0"
# Include a test for partial decentralization with leader/follower signer registration and P2P signature registration with fake DMQ node
- mode: "leader-follower-dmq-fake"
era: ${{ fromJSON(needs.build-ubuntu.outputs.eras)[0] }}
next_era: [""]
next_era: ""
cardano_node_version: "10.6.2"
hard_fork_latest_era_at_epoch: 0
run_id: "#1"
extra_args: "--number-of-aggregators=2 --use-relays --relay-signer-registration-mode=passthrough --relay-signature-registration-mode=p2p --aggregate-signature-type=Concatenation --use-dmq --dmq-node-flavor=fake"
# Include a test for partial decentralization with leader/follower signer registration and P2P signature registration with Mithril relay
- mode: "leader-follower-relay"
era: ${{ fromJSON(needs.build-ubuntu.outputs.eras)[0] }}
next_era: [""]
next_era: ""
cardano_node_version: "10.6.2"
hard_fork_latest_era_at_epoch: 0
run_id: "#1"
Expand Down Expand Up @@ -438,6 +446,11 @@ jobs:
timeout_minutes: 10
warning_on_retry: true
command: |
# If there is a next era, we need to specify it with '--mithril-next-era'
NEXT_ERA_ARG=""
if [[ "${{ matrix.next_era }}" != "" ]]; then
NEXT_ERA_ARG="--mithril-next-era=${{ matrix.next_era }}"
fi
cat > ./mithril-end-to-end.sh << EOF
#!/bin/bash
set -x
Expand All @@ -447,12 +460,9 @@ jobs:
--devnet-scripts-directory=./mithril-test-lab/cardano-devnet \\
--mithril-era=${{ matrix.era }} \\
--cardano-node-version ${{ matrix.cardano_node_version }} \\
--cardano-hard-fork-latest-era-at-epoch ${{ matrix.hard_fork_latest_era_at_epoch }} ${{ matrix.extra_args }} \\
--cardano-hard-fork-latest-era-at-epoch ${{ matrix.hard_fork_latest_era_at_epoch }} \\
$NEXT_ERA_ARG ${{ matrix.extra_args }}
EOF
# If there is a next era, we need to specify it with '--mithril-next-era'
if [[ "${{ matrix.next_era }}" != "" ]]; then
echo " --mithril-next-era=${{ matrix.next_era }}" >> ./mithril-end-to-end.sh
fi
chmod u+x ./mithril-end-to-end.sh
./mithril-end-to-end.sh
EXIT_CODE=$?
Expand Down
Loading
Loading