@@ -160,7 +160,7 @@ jobs:
160
160
- name : Cardano Database Snapshot / download & restore latest
161
161
shell : bash
162
162
working-directory : ./bin
163
- run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db download $CDB_SNAPSHOT_DIGEST --backend v1 ${{ matrix.extra_args }} 2>&1 | tee cdb-download-output.txt
163
+ run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db download $CDB_SNAPSHOT_DIGEST --backend v1 --download-dir v1 ${{ matrix.extra_args }} 2>&1 | tee cdb-download-output.txt
164
164
165
165
- name : Cardano Database Snapshot / verify Cardano node starts successfully
166
166
if : runner.os == 'Linux'
@@ -173,19 +173,19 @@ jobs:
173
173
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
174
174
shell : bash
175
175
working-directory : ./bin
176
- run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} --unstable tools utxo-hd snapshot-converter --db-directory db --cardano-node-version latest --utxo-hd-flavor LMDB --commit
176
+ run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} --unstable tools utxo-hd snapshot-converter --db-directory v1/ db --cardano-node-version latest --utxo-hd-flavor LMDB --commit
177
177
178
178
- name : Remove downloaded artifacts to free up disk space (Linux, Windows)
179
179
if : runner.os != 'macOS'
180
180
shell : bash
181
181
working-directory : ./bin
182
- run : rm --force db/immutable/*.{chunk,primary,secondary}
182
+ run : rm --force v1/ db/immutable/*.{chunk,primary,secondary}
183
183
184
184
- name : Remove downloaded artifacts to free up disk space (macOs)
185
185
if : runner.os == 'macOS'
186
186
shell : bash
187
187
working-directory : ./bin
188
- run : sudo rm -rf db/
188
+ run : sudo rm -rf v1/ db/
189
189
190
190
- name : Mithril Stake Distribution / list and get last hash
191
191
shell : bash
@@ -259,13 +259,13 @@ jobs:
259
259
if : steps.aggregator_capability_unix.outputs.cardano_database_v2_enabled == 'true' || steps.aggregator_capability_windows.outputs.cardano_database_v2_enabled == 'true'
260
260
shell : bash
261
261
working-directory : ./bin
262
- run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db download --backend v2 $CARDANO_DATABASE_V2_SNAPSHOT_HASH ${{ matrix.extra_args }} 2>&1 | tee cdb-v2-download-output.txt
262
+ run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db download --backend v2 --download-dir v2 $CARDANO_DATABASE_V2_SNAPSHOT_HASH ${{ matrix.extra_args }} 2>&1 | tee cdb-v2-download-output.txt
263
263
264
264
- name : Cardano Database V2 Snapshot / verify immutables
265
265
if : steps.aggregator_capability_unix.outputs.cardano_database_v2_enabled == 'true' || steps.aggregator_capability_windows.outputs.cardano_database_v2_enabled == 'true'
266
266
shell : bash
267
267
working-directory : ./bin
268
- run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db verify --backend v2 --db-dir db_v2 $CARDANO_DATABASE_V2_SNAPSHOT_HASH | tee cdb-v2-verify-output.txt
268
+ run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db verify --backend v2 --db-dir v2/db $CARDANO_DATABASE_V2_SNAPSHOT_HASH | tee cdb-v2-verify-output.txt
269
269
270
270
- name : Cardano Database V2 Snapshot / verify Cardano node starts successfully
271
271
if : runner.os == 'Linux' && steps.aggregator_capability_unix.outputs.cardano_database_v2_enabled == 'true'
@@ -329,16 +329,16 @@ jobs:
329
329
330
330
- name : Cardano Database Snapshot / download & restore latest
331
331
shell : bash
332
- run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db download $CDB_SNAPSHOT_DIGEST --backend v1 --download-dir /app/data ${{ matrix.extra_args }}
332
+ run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db download $CDB_SNAPSHOT_DIGEST --backend v1 --download-dir /app/data/v1 ${{ matrix.extra_args }}
333
333
334
334
- name : Ledger state snapshot conversion from InMemory to LMDB
335
335
if : matrix.extra_args == '--include-ancillary'
336
336
shell : bash
337
- run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} --unstable tools utxo-hd snapshot-converter --db-directory /app/data/db --cardano-node-version latest --utxo-hd-flavor LMDB --commit
337
+ run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} --unstable tools utxo-hd snapshot-converter --db-directory /app/data/v1/ db --cardano-node-version latest --utxo-hd-flavor LMDB --commit
338
338
339
339
- name : Remove downloaded artifacts to free up disk space
340
340
shell : bash
341
- run : sudo rm -rf $PWD/data/db/
341
+ run : sudo rm -rf $PWD/data/v1/ db/
342
342
343
343
- name : Mithril Stake Distribution / list and get last hash
344
344
shell : bash
@@ -401,12 +401,12 @@ jobs:
401
401
- name : Cardano Database V2 Snapshot / download & restore latest (Full restoration)
402
402
if : steps.aggregator_capability.outputs.cardano_database_v2_enabled == 'true'
403
403
shell : bash
404
- run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db download --backend v2 $CARDANO_DATABASE_V2_SNAPSHOT_HASH --download-dir /app/data ${{ matrix.extra_args }}
404
+ run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db download --backend v2 $CARDANO_DATABASE_V2_SNAPSHOT_HASH --download-dir /app/data/v2 ${{ matrix.extra_args }}
405
405
406
406
- name : Cardano Database V2 Snapshot / verify immutables
407
407
if : steps.aggregator_capability.outputs.cardano_database_v2_enabled == 'true'
408
408
shell : bash
409
- run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db verify --backend v2 $CARDANO_DATABASE_V2_SNAPSHOT_HASH --db-dir /app/data/db_v2
409
+ run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db verify --backend v2 $CARDANO_DATABASE_V2_SNAPSHOT_HASH --db-dir /app/data/v2/db
410
410
411
411
test-mithril-client-wasm :
412
412
strategy :
0 commit comments