-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Challenger new architecture + migration to alloy-rs lib.
feat: Improve architecture, logging and challenge validation - Major architectural improvements including alloy-rs draft - Implemented challenge period with initialization logs - Refactored anvil and scribe creation into separate modules - Added successful stability test with 100 scribe instances - Enhanced logging system and eliminated unsafe unwraps - Set up Anvil installation in GitHub Actions pipeline - Fixed Prometheus metrics and optimized challenge validation logic Test Coverage: - Verified stable operation with 100 concurrent scribe instances - Validated challenge period functionality - Confirmed Prometheus metrics accuracy Co-authored-by: Max Wickham <[email protected]>
- Loading branch information
1 parent
2de8136
commit 0b2ca38
Showing
18 changed files
with
8,051 additions
and
3,422 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 |
---|---|---|
@@ -1,51 +1,68 @@ | ||
name: test | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
pull_request: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
test: | ||
name: tests | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- run: cargo test --workspace --all-targets --all-features | ||
env: | ||
RUSTFLAGS: -Dwarnings | ||
test: | ||
name: tests | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- run: curl -L https://foundry.paradigm.xyz | bash | ||
- run: /home/runner/.config/.foundry/bin/foundryup | ||
- run: ls -l /home/runner/.config/.foundry/bin | ||
# - run: /home/runner/.config/.foundry/bin/anvil --help | ||
- run: /home/runner/.config/.foundry/bin/anvil --help | ||
- run: cargo test --workspace --all-targets --all-features | ||
env: | ||
ANVIL_BIN: /home/runner/.config/.foundry/bin/anvil | ||
RUSTFLAGS: -Dwarnings | ||
|
||
clippy: | ||
name: clippy | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@clippy | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- run: cargo clippy --workspace --all-targets --all-features | ||
env: | ||
RUSTFLAGS: -Dwarnings | ||
clippy: | ||
name: clippy | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@clippy | ||
- uses: Swatinem/rust-cache@v2 | ||
with: | ||
cache-on-failure: true | ||
- run: cargo clippy --workspace --all-targets --all-features | ||
env: | ||
RUSTFLAGS: -Dwarnings | ||
|
||
fmt: | ||
name: fmt | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt | ||
- run: cargo fmt --all --check | ||
fmt: | ||
name: fmt | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: dtolnay/rust-toolchain@stable | ||
with: | ||
components: rustfmt | ||
- run: cargo fmt --all --check | ||
|
||
typos-check: | ||
name: TyposCheck | ||
timeout-minutes: 5 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: crate-ci/[email protected] | ||
with: | ||
config: ./typos.toml | ||
isolated: true |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/target | ||
.DS_Store | ||
.vscode | ||
.idea | ||
.idea | ||
LOCAL.md |
Oops, something went wrong.