Skip to content

Commit 69a50fc

Browse files
committed
Tweak proof-running workflow
* add some proofs with runtime < 1h as defaults * use self-hosted linux runners (normal) * always store artefacts after running * use timeout 2h for running the proof, ~3h for the daemon
1 parent a8239c5 commit 69a50fc

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/rv-run-proofs.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
description: Start symbols for proofs to run
88
required: true
99
type: string
10-
default: "['test_ptoken_domain_data', 'this_will_fail']"
10+
default: "['test_ptoken_domain_data', test_process_approve, test_process_get_account_data_size, test_process_initialize_immutable_owner]"
1111
kmir:
1212
description: KMIR to work with (must exist as a docker image tag, optional)
1313
required: false
@@ -44,7 +44,7 @@ jobs:
4444
with:
4545
flakes: github:runtimeverification/stable-mir-json/${{ inputs.smir }}
4646

47-
- name: "Build with stable_mir_json"
47+
- name: "Build with stable_mir_json"
4848
run: |
4949
cd p-token
5050
RUSTC=stable_mir_json cargo build --features runtime-verification
@@ -71,10 +71,10 @@ jobs:
7171
7272
run_proof:
7373
name: "Link SMIR and Run Proofs"
74-
needs:
74+
needs:
7575
- compile
7676
- prepare_matrix
77-
runs-on: ubuntu-latest
77+
runs-on: [self-hosted, linux, normal]
7878
# container:
7979
# image: runtimeverificationinc/kmir:${{ inputs.kmir }}
8080
strategy:
@@ -96,7 +96,7 @@ jobs:
9696
-v $PWD:/workdir --workdir /workdir \
9797
--name "${KMIR_CONTAINER_NAME}" \
9898
runtimeverificationinc/kmir:${{ inputs.kmir }} \
99-
sleep 3600
99+
sleep 10000
100100
sleep 10
101101
102102
- name: "Get SMIR Files"
@@ -112,19 +112,20 @@ jobs:
112112
113113
- name: "Run Proof ${{ matrix.proof }} and store resulting tree"
114114
run: |
115-
timeout 3600 \
115+
timeout 7200 \
116116
docker exec --workdir /workdir "${KMIR_CONTAINER_NAME}" \
117117
kmir prove-rs --smir artefacts/p-token.smir.json \
118118
--start-symbol 'pinocchio_token_program::entrypoint::${{ matrix.proof }}' \
119119
--verbose \
120120
--max-iterations 100 \
121121
--proof-dir artefacts/proof
122122
docker exec --workdir /workdir "${KMIR_CONTAINER_NAME}" \
123-
kmir show --full-printer --proof-dir artefacts/proof \
123+
kmir show --statistics --leaves --proof-dir artefacts/proof \
124124
'p-token.smir.pinocchio_token_program::entrypoint::${{ matrix.proof }}' \
125125
> artefacts/proof/${{ matrix.proof }}-full.txt
126126
127127
- name: "Save proof tree and smir"
128+
if: always()
128129
uses: actions/upload-artifact@v4
129130
with:
130131
name: $artefacts-{{ matrix.proof }}

0 commit comments

Comments
 (0)