-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Thomas Braun <braunth@oregonstate.edu> * add better logging: split offline and voting, include unsigned proposal hash * Update dkg-gadget/src/signing_manager/mod.rs * add pipeline tests for harness * point to temp dir, do not clean * remove backoff logic * Remove unused code * add message enqueueing mechanism * allow message enqueuing for initialized protocols * add filtering of messages for async protocols based on block number * [WIP] Signing Manager V2: Fix message loss bug (#620) * move debug logger to dkg-logging, add checkpoint-based logging (based on env var) * get 0 message loss for j=10,k=11 * get 1000 running in parallel successfully * eradicate message loss entirely * adjust parallelism in job manager to j=4 * adjust parameters, remove bottlenecks, improve stalling logic * update multi-party ecdsa --------- Co-authored-by: drewstone <drewstone329@gmail.com> Co-authored-by: 1xstj <106580853+1xstj@users.noreply.github.com> Co-authored-by: shekohex <dev+github@shadykhalifa.me>
- Loading branch information
1 parent
efb068b
commit db3f86d
Showing
63 changed files
with
3,373 additions
and
1,929 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,9 +4,6 @@ on: | |
push: | ||
branches: [master] | ||
pull_request: | ||
branches: | ||
- "**" | ||
|
||
workflow_dispatch: | ||
|
||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
name: harness stress tests | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
env: | ||
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git | ||
RUST_LOG: "dkg=trace" | ||
|
||
jobs: | ||
# dkg-substrate integration tests | ||
harness: | ||
name: harness stress tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/cancel-workflow-action@0.9.1 | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Configure sccache | ||
run: | | ||
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV | ||
echo "SCCACHE_GHA_ENABLED=true" >> $GITHUB_ENV | ||
- name: Run sccache-cache | ||
uses: mozilla-actions/sccache-action@v0.0.3 | ||
|
||
- name: Restore Cache | ||
if: always() | ||
uses: actions/cache/restore@v3 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
target/release | ||
target/debug | ||
key: ${{ runner.os }}-cargo-index-${{ github.ref_name }}-harness-stress-tests | ||
|
||
- name: Install toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: nightly | ||
|
||
- name: Setup DVC | ||
uses: iterative/setup-dvc@v1 | ||
|
||
- name: Populate fixtures | ||
run: dvc pull | ||
|
||
- name: Install Protobuf | ||
run: sudo apt-get install protobuf-compiler | ||
|
||
- name: Setup DVC | ||
uses: iterative/setup-dvc@v1 | ||
|
||
- name: Populate Fixtures | ||
run: dvc pull | ||
|
||
- name: t2n3 && 1 proposal per session | ||
run: cargo run --package dkg-test-orchestrator --features=debug-tracing -- --tmp /tmp --threshold 2 --n 3 --bind 127.0.0.1:7777 --n-tests 10 -p 1 | ||
|
||
- name: t2n3 && 2 proposals per session | ||
run: cargo run --package dkg-test-orchestrator --features=debug-tracing -- --tmp /tmp --threshold 2 --n 3 --bind 127.0.0.1:7777 --n-tests 10 -p 2 | ||
|
||
- name: t3n5 && 1 proposal per session | ||
run: cargo run --package dkg-test-orchestrator --features=debug-tracing -- --tmp /tmp --threshold 3 --n 5 --bind 127.0.0.1:7777 --n-tests 10 -p 1 | ||
|
||
- name: t3n5 && 2 proposals per session | ||
run: cargo run --package dkg-test-orchestrator --features=debug-tracing -- --tmp /tmp --threshold 3 --n 5 --bind 127.0.0.1:7777 --n-tests 10 -p 2 | ||
|
||
- name: Save Cache | ||
if: ${{ !cancelled() }} | ||
uses: actions/cache/save@v3 | ||
with: | ||
path: | | ||
~/.cargo/registry | ||
target/release | ||
target/debug | ||
key: ${{ runner.os }}-cargo-index-${{ github.ref_name }}-harness-stress-tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.