-
Notifications
You must be signed in to change notification settings - Fork 41
77 lines (69 loc) · 2.21 KB
/
aggregator-stress-test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Aggregator stress test
on:
workflow_dispatch:
inputs:
commit_sha:
description: SHA of the commit on which the aggregator binary should be obtained.
required: true
type: string
num_signers:
description: Number of concurrent signers
required: true
type: string
default: "100"
num_clients:
description: Number of concurrent clients
required: true
type: string
default: "100"
enable_debug:
description: Enable debug output ("-vvv") for the aggregator stress test
required: true
type: boolean
default: false
jobs:
stress-test:
runs-on: ubuntu-22.04
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Prepare environment variables
id: prepare
shell: bash
run: |
if [[ "${{ inputs.enable_debug }}" == "true" ]]; then
echo "debug_level=-vvv" >> $GITHUB_OUTPUT
fi
- name: Install stable toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: stable
- name: Download built artifacts (Linux-x64)
uses: dawidd6/action-download-artifact@v3
with:
name: mithril-distribution-Linux-X64
path: ./bin
commit: ${{ inputs.commit_sha }}
workflow: ci.yml
workflow_conclusion: success
- name: Download test runners
uses: dawidd6/action-download-artifact@v3
with:
name: mithril-tooling-Linux-X64
path: ./bin
commit: ${{ inputs.commit_sha }}
workflow: ci.yml
workflow_conclusion: success
- name: Set permissions
shell: bash
working-directory: ./bin
run: |
chmod +x ./mithril-aggregator
chmod +x ./load-aggregator
- name: Run the aggregator stress test
run: |
./bin/load-aggregator ${{ steps.prepare.outputs.debug_level }} \
--cardano-cli-path ./mithril-test-lab/mithril-end-to-end/script/mock-cardano-cli \
--aggregator-dir ./bin \
--num-signers=${{ inputs.num_signers }} \
--num-clients=${{ inputs.num_clients }}