Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ jobs:
- name: Clippy
run: cargo clippy --locked --workspace --all-targets -- -D warnings

# The leanSpec spectests are `test = false` while the released fixtures
# lag leanVM, and `--all-targets` leaves such targets out. Name them so
# they keep compiling until they run again.
- name: Clippy (skipped spectests)
run: cargo clippy --locked --workspace --test forkchoice_spectests --test signature_spectests --test stf_spectests --test ssz_spectests -- -D warnings

# tooling/event-monitor declares its own [workspace] table, so every step
# above stops at the root workspace members and never reaches it. Its
# tests run in this job rather than in `test` because clippy has already
Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ fmt: ## 🎨 Format all code using rustfmt

lint: ## 🔍 Run clippy on all workspace crates
cargo clippy --locked --workspace --all-targets -- -D warnings
# The spectests are `test = false` (stale leanSpec fixtures), which
# `--all-targets` skips: lint them by name so they keep compiling
cargo clippy --locked --workspace --test forkchoice_spectests --test signature_spectests --test stf_spectests --test ssz_spectests -- -D warnings

test: leanSpec/fixtures ## 🧪 Run all tests
# release-fast: release-grade opt-level to avoid stack overflows during
Expand Down
8 changes: 8 additions & 0 deletions crates/blockchain/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,16 @@ datatest-stable = "0.3.3"
name = "forkchoice_spectests"
path = "tests/forkchoice_spectests.rs"
harness = false
# Skipped by `cargo test`: the released leanSpec fixtures still carry the old
# leanVM key format and fail to decode. Run on demand with
# `cargo test --profile release-fast --test <name>`.
test = false

[[test]]
name = "signature_spectests"
path = "tests/signature_spectests.rs"
harness = false
# Skipped by `cargo test`: the released leanSpec fixtures still carry the old
# leanVM key format and fail to decode. Run on demand with
# `cargo test --profile release-fast --test <name>`.
test = false
4 changes: 4 additions & 0 deletions crates/blockchain/state_transition/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ datatest-stable = "0.3.3"
name = "stf_spectests"
path = "tests/stf_spectests.rs"
harness = false
# Skipped by `cargo test`: the released leanSpec fixtures still carry the old
# leanVM key format and fail to decode. Run on demand with
# `cargo test --profile release-fast --test <name>`.
test = false
4 changes: 4 additions & 0 deletions crates/common/types/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,7 @@ datatest-stable = "0.3.3"
name = "ssz_spectests"
path = "tests/ssz_spectests.rs"
harness = false
# Skipped by `cargo test`: the released leanSpec fixtures still carry the old
# leanVM key format and fail to decode. Run on demand with
# `cargo test --profile release-fast --test <name>`.
test = false
Loading