40
40
required : false
41
41
type : string
42
42
default : https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/pre-release-preview/ancillary.vkey
43
- include_ancillary :
44
- description : Include ancillary files in the download.
45
- required : true
46
- type : boolean
47
- default : true
48
43
enable_debug :
49
44
description : Enable debug output ("-vvv") for the mithril-client calls
50
45
required : true
72
67
ancillary_verification_key :
73
68
type : string
74
69
default : https://raw.githubusercontent.com/input-output-hk/mithril/main/mithril-infra/configuration/testing-preview/ancillary.vkey
75
- include_ancillary :
76
- type : boolean
77
- default : true
78
70
enable_debug :
79
71
type : boolean
80
72
default : false
85
77
fail-fast : false
86
78
matrix :
87
79
os : [ubuntu-24.04, macos-14, windows-latest]
80
+ extra_args : ["", "--include-ancillary"]
81
+
88
82
runs-on : ${{ matrix.os }}
89
83
steps :
90
84
- name : Checkout sources
@@ -110,9 +104,6 @@ jobs:
110
104
echo "TRANSACTIONS_HASHES_TO_CERTIFY=${{ inputs.transactions_hashes_to_certify }}" >> $GITHUB_ENV
111
105
112
106
echo "ANCILLARY_VERIFICATION_KEY=$(curl -s ${{ inputs.ancillary_verification_key }})" >> $GITHUB_ENV
113
- if [[ "${{ inputs.include_ancillary }}" == "true" ]]; then
114
- echo "INCLUDE_ANCILLARY=--include-ancillary" >> $GITHUB_OUTPUT
115
- fi
116
107
117
108
- name : Assessing aggregator capabilities (Unix)
118
109
id : aggregator_capability_unix
@@ -169,7 +160,12 @@ jobs:
169
160
- name : Cardano Database Snapshot / download & restore latest
170
161
shell : bash
171
162
working-directory : ./bin
172
- run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db download $CDB_SNAPSHOT_DIGEST $INCLUDE_ANCILLARY
163
+ run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db download $CDB_SNAPSHOT_DIGEST ${{ matrix.extra_args }} > cdb-download-output.txt 2>&1
164
+
165
+ - name : Cardano Database Snapshot / verify Cardano node starts successfully
166
+ if : runner.os == 'Linux'
167
+ shell : bash
168
+ run : .github/workflows/scripts/verify-cardano-db-restoration.sh ./bin/cdb-download-output.txt "${{ matrix.extra_args }}"
173
169
174
170
- name : Mithril Stake Distribution / list and get last hash
175
171
shell : bash
@@ -243,13 +239,19 @@ jobs:
243
239
if : steps.aggregator_capability_unix.outputs.cardano_database_v2_enabled == 'true' || steps.aggregator_capability_windows.outputs.cardano_database_v2_enabled == 'true'
244
240
shell : bash
245
241
working-directory : ./bin
246
- run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} --unstable --origin-tag CI cardano-db-v2 download $CARDANO_DATABASE_V2_SNAPSHOT_HASH $INCLUDE_ANCILLARY
242
+ run : ./mithril-client ${{ steps.prepare.outputs.debug_level }} --unstable --origin-tag CI cardano-db-v2 download $CARDANO_DATABASE_V2_SNAPSHOT_HASH ${{ matrix.extra_args }} > cdb-v2-download-output.txt 2>&1
243
+
244
+ - name : Cardano Database V2 Snapshot / verify Cardano node starts successfully
245
+ if : runner.os == 'Linux' && steps.aggregator_capability_unix.outputs.cardano_database_v2_enabled == 'true'
246
+ shell : bash
247
+ run : .github/workflows/scripts/verify-cardano-db-restoration.sh ./bin/cdb-v2-download-output.txt "${{ matrix.extra_args }}"
247
248
248
249
test-docker :
249
250
strategy :
250
251
fail-fast : false
251
252
matrix :
252
253
os : [ubuntu-24.04]
254
+ extra_args : ["", "--include-ancillary"]
253
255
runs-on : ${{ matrix.os }}
254
256
steps :
255
257
- name : Prepare environment variables
@@ -267,9 +269,6 @@ jobs:
267
269
echo "TRANSACTIONS_HASHES_TO_CERTIFY=${{ inputs.transactions_hashes_to_certify }}" >> $GITHUB_ENV
268
270
269
271
echo "ANCILLARY_VERIFICATION_KEY=$(curl -s ${{ inputs.ancillary_verification_key }})" >> $GITHUB_ENV
270
- if [[ "${{ inputs.include_ancillary }}" == "true" ]]; then
271
- echo "INCLUDE_ANCILLARY=--include-ancillary" >> $GITHUB_OUTPUT
272
- fi
273
272
274
273
- name : Assessing aggregator capabilities
275
274
id : aggregator_capability
@@ -286,7 +285,7 @@ jobs:
286
285
id : command
287
286
shell : bash
288
287
run : |
289
- echo "mithril_client=docker run --rm -e NETWORK=$NETWORK -e GENESIS_VERIFICATION_KEY=$GENESIS_VERIFICATION_KEY -e AGGREGATOR_ENDPOINT=$AGGREGATOR_ENDPOINT --name='mithril-client' ghcr.io/input-output-hk/mithril-client:$MITHRIL_IMAGE_ID" >> $GITHUB_OUTPUT
288
+ echo "mithril_client=docker run --rm -e NETWORK=$NETWORK -e GENESIS_VERIFICATION_KEY=$GENESIS_VERIFICATION_KEY -e ANCILLARY_VERIFICATION_KEY=$ANCILLARY_VERIFICATION_KEY -e AGGREGATOR_ENDPOINT=$AGGREGATOR_ENDPOINT --name='mithril-client' ghcr.io/input-output-hk/mithril-client:$MITHRIL_IMAGE_ID" >> $GITHUB_OUTPUT
290
289
291
290
- name : Show client version
292
291
shell : bash
@@ -300,7 +299,7 @@ jobs:
300
299
301
300
- name : Cardano Database Snapshot / download & restore latest
302
301
shell : bash
303
- run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db download $CDB_SNAPSHOT_DIGEST --download-dir /app $INCLUDE_ANCILLARY
302
+ run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} --origin-tag CI cardano-db download $CDB_SNAPSHOT_DIGEST --download-dir /app ${{ matrix.extra_args }}
304
303
305
304
- name : Mithril Stake Distribution / list and get last hash
306
305
shell : bash
@@ -363,7 +362,7 @@ jobs:
363
362
- name : Cardano Database V2 Snapshot / download & restore latest (Full restoration)
364
363
if : steps.aggregator_capability.outputs.cardano_database_v2_enabled == 'true'
365
364
shell : bash
366
- run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} --origin-tag CI --unstable cardano-db-v2 download $CARDANO_DATABASE_V2_SNAPSHOT_HASH --download-dir /app $INCLUDE_ANCILLARY
365
+ run : ${{ steps.command.outputs.mithril_client }} ${{ steps.prepare.outputs.debug_level }} --origin-tag CI --unstable cardano-db-v2 download $CARDANO_DATABASE_V2_SNAPSHOT_HASH --download-dir /app ${{ matrix.extra_args }}
367
366
368
367
test-mithril-client-wasm :
369
368
strategy :
0 commit comments