Skip to content

Commit abb7d19

Browse files
authored
Merge pull request #1427 from input-output-hk/jpraynaud/1425-activate-conway-devnet
Activate `babbage`/`conway` eras in `devnet`
2 parents 5ec585a + c1d2630 commit abb7d19

31 files changed

+1650
-1536
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,11 +266,14 @@ jobs:
266266
matrix:
267267
era: ${{ fromJSON(needs.build-ubuntu-X64.outputs.eras) }}
268268
run_id: [1,2,3]
269+
# Deactivate Conway era which is not currently working with the Pallas Chain Observer yet, value should be 5-10
270+
hard_fork_latest_era_at_epoch: [1000]
269271
extra_args: [""]
270272

271273
include:
272274
- era: ${{ fromJSON(needs.build-ubuntu-X64.outputs.eras)[0] }}
273275
run_id: 3
276+
hard_fork_latest_era_at_epoch: 1000
274277
extra_args: "--use-p2p-network"
275278
steps:
276279
- name: Checkout sources
@@ -297,7 +300,7 @@ jobs:
297300
mkdir artifacts
298301
299302
- name: Test
300-
run: ./mithril-end-to-end -vvv --bin-directory ./bin --work-directory=./artifacts --devnet-scripts-directory=./mithril-test-lab/mithril-devnet --mithril-era=${{ matrix.era }} ${{ matrix.extra_args }}
303+
run: ./mithril-end-to-end -vvv --bin-directory ./bin --work-directory=./artifacts --devnet-scripts-directory=./mithril-test-lab/mithril-devnet --mithril-era=${{ matrix.era }} ${{ matrix.extra_args }} --cardano-hard-fork-latest-era-at-epoch ${{ matrix.hard_fork_latest_era_at_epoch }}
301304

302305
- name: Upload E2E Tests Artifacts
303306
if: ${{ failure() }}

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mithril-test-lab/mithril-devnet/.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ artifacts
66
cardano-cli
77
cardano-node
88
tmp
9-
.tar.gz
9+
*.tar.gz

mithril-test-lab/mithril-devnet/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,39 +90,39 @@ NODES=mithril ./devnet-query.sh
9090

9191
```bash
9292
# Run devnet with 2 BFT nodes and 5 SPO nodes
93-
ROOT=artifacts NUM_BFT_NODES=2 NUM_POOL_NODES=5 ./devnet-run.sh
93+
ARTIFACTS_DIR=artifacts NUM_BFT_NODES=2 NUM_POOL_NODES=5 ./devnet-run.sh
9494

9595
# Run devnet custom slot length (0.5s) and custom epoch length (120s)
9696
# Slot length: the duration of a Cardano Eslot (can help modulate the immutables creation rate)
9797
# Epoch Length: the duration of a Cardano Epoch
98-
ROOT=artifacts SLOT_LENGTH=0.5 EPOCH_LENGTH=120 ./devnet-run.sh
98+
ARTIFACTS_DIR=artifacts SLOT_LENGTH=0.5 EPOCH_LENGTH=120 ./devnet-run.sh
9999

100100
# Logs devnet
101-
ROOT=artifacts LINES=10 ./devnet-log.sh
101+
ARTIFACTS_DIR=artifacts LINES=10 ./devnet-log.sh
102102

103103
# Query devnet
104-
ROOT=artifacts ./devnet-query.sh
104+
ARTIFACTS_DIR=artifacts ./devnet-query.sh
105105

106106
# Stop devnet
107-
ROOT=artifacts ./devnet-stop.sh
107+
ARTIFACTS_DIR=artifacts ./devnet-stop.sh
108108

109109
# Visualize devnet
110-
ROOT=artifacts ./devnet-visualize.sh
110+
ARTIFACTS_DIR=artifacts ./devnet-visualize.sh
111111
```
112112

113113
## Step by step run with custom configuration
114114

115115
```bash
116116
# Parameters
117-
ROOT=artifacts # Directory where artifacts are produced
117+
ARTIFACTS_DIR=artifacts # Directory where artifacts are produced
118118
NUM_BFT_NODES=1 # Number of Cardano BFT nodes
119119
NUM_POOL_NODES=3 # Number of Cardano SPO nodes
120120

121121
# Bootstrap devnet with 1 BFT nodes and 3 SPO nodes
122-
rm -rf ${ROOT} && ./devnet-mkfiles.sh ${ROOT} ${NUM_BFT_NODES} ${NUM_POOL_NODES}
122+
rm -rf ${ARTIFACTS_DIR} && ./devnet-mkfiles.sh ${ARTIFACTS_DIR} ${NUM_BFT_NODES} ${NUM_POOL_NODES}
123123

124124
# Change directory
125-
cd ${ROOT}
125+
cd ${ARTIFACTS_DIR}
126126

127127
# Start devnet Cardano nodes
128128
./start-cardano.sh
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.2.0

0 commit comments

Comments
 (0)