Skip to content

Commit 97e06e1

Browse files
authored
Merge branch 'unstable' into trace_sampling_default
2 parents e039381 + 4e35e9d commit 97e06e1

File tree

79 files changed

+1538
-2348
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+1538
-2348
lines changed

.github/workflows/test-suite.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ jobs:
324324
channel: stable
325325
cache-target: release
326326
components: rustfmt,clippy
327-
bins: cargo-audit
327+
bins: cargo-audit,cargo-deny
328328
- name: Check formatting with cargo fmt
329329
run: make cargo-fmt
330330
- name: Lint code for quality and style with Clippy
@@ -337,6 +337,8 @@ jobs:
337337
run: make arbitrary-fuzz
338338
- name: Run cargo audit
339339
run: make audit-CI
340+
- name: Run cargo deny
341+
run: make deny-CI
340342
- name: Run cargo vendor to make sure dependencies can be vendored for packaging, reproducibility and archival purpose
341343
run: CARGO_HOME=$(readlink -f $HOME) make vendor
342344
- name: Markdown-linter

Cargo.lock

Lines changed: 19 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ snap = "1"
235235
ssz_types = { version = "0.14.0", features = ["context_deserialize", "runtime_types"] }
236236
state_processing = { path = "consensus/state_processing" }
237237
store = { path = "beacon_node/store" }
238-
strum = { version = "0.24", features = ["derive"] }
238+
strum = { version = "0.27", features = ["derive"] }
239239
superstruct = "0.10"
240240
swap_or_not_shuffle = { path = "consensus/swap_or_not_shuffle" }
241-
syn = "1"
241+
syn = "2"
242242
sysinfo = "0.26"
243243
system_health = { path = "common/system_health" }
244244
task_executor = { path = "common/task_executor" }

Makefile

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
EF_TESTS = "testing/ef_tests"
44
STATE_TRANSITION_VECTORS = "testing/state_transition_vectors"
55
EXECUTION_ENGINE_INTEGRATION = "testing/execution_engine_integration"
6-
GIT_TAG := $(shell git describe --tags --candidates 1)
6+
GIT_TAG = $(shell git describe --tags --candidates 1)
77
BIN_DIR = "bin"
88

99
X86_64_TAG = "x86_64-unknown-linux-gnu"
@@ -30,6 +30,11 @@ TEST_FEATURES ?=
3030
# Cargo profile for regular builds.
3131
PROFILE ?= release
3232

33+
# List of all hard forks up to gloas. This list is used to set env variables for several tests so that
34+
# they run for different forks.
35+
# TODO(EIP-7732) Remove this once we extend network tests to support gloas and use RECENT_FORKS instead
36+
RECENT_FORKS_BEFORE_GLOAS=electra fulu
37+
3338
# List of all recent hard forks. This list is used to set env variables for http_api tests
3439
RECENT_FORKS=electra fulu gloas
3540

@@ -197,29 +202,31 @@ run-ef-tests:
197202
cargo nextest run --release -p ef_tests --features "ef_tests,$(EF_TEST_FEATURES),fake_crypto"
198203
./$(EF_TESTS)/check_all_files_accessed.py $(EF_TESTS)/.accessed_file_log.txt $(EF_TESTS)/consensus-spec-tests
199204

200-
# Run the tests in the `beacon_chain` crate for recent forks.
201-
test-beacon-chain: $(patsubst %,test-beacon-chain-%,$(RECENT_FORKS))
205+
# Run the tests in the `beacon_chain` crate for all known forks.
206+
# TODO(EIP-7732) Extend to support gloas by using RECENT_FORKS instead
207+
test-beacon-chain: $(patsubst %,test-beacon-chain-%,$(RECENT_FORKS_BEFORE_GLOAS))
202208

203209
test-beacon-chain-%:
204210
env FORK_NAME=$* cargo nextest run --release --features "fork_from_env,slasher/lmdb,$(TEST_FEATURES)" -p beacon_chain
205211

206212
# Run the tests in the `http_api` crate for recent forks.
207-
test-http-api: $(patsubst %,test-http-api-%,$(RECENT_FORKS))
213+
test-http-api: $(patsubst %,test-http-api-%,$(RECENT_FORKS_BEFORE_GLOAS))
208214

209215
test-http-api-%:
210216
env FORK_NAME=$* cargo nextest run --release --features "beacon_chain/fork_from_env" -p http_api
211217

212218

213219
# Run the tests in the `operation_pool` crate for all known forks.
214-
test-op-pool: $(patsubst %,test-op-pool-%,$(RECENT_FORKS))
220+
test-op-pool: $(patsubst %,test-op-pool-%,$(RECENT_FORKS_BEFORE_GLOAS))
215221

216222
test-op-pool-%:
217223
env FORK_NAME=$* cargo nextest run --release \
218224
--features "beacon_chain/fork_from_env,$(TEST_FEATURES)"\
219225
-p operation_pool
220226

221-
# Run the tests in the `network` crate for recent forks.
222-
test-network: $(patsubst %,test-network-%,$(RECENT_FORKS))
227+
# Run the tests in the `network` crate for all known forks.
228+
# TODO(EIP-7732) Extend to support gloas by using RECENT_FORKS instead
229+
test-network: $(patsubst %,test-network-%,$(RECENT_FORKS_BEFORE_GLOAS))
223230

224231
test-network-%:
225232
env FORK_NAME=$* cargo nextest run --release \
@@ -319,6 +326,15 @@ install-audit:
319326
audit-CI:
320327
cargo audit
321328

329+
# Runs cargo deny (check for banned crates, duplicate versions, and source restrictions)
330+
deny: install-deny deny-CI
331+
332+
install-deny:
333+
cargo install --force cargo-deny --version 0.18.2
334+
335+
deny-CI:
336+
cargo deny check bans sources --hide-inclusion-graph
337+
322338
# Runs `cargo vendor` to make sure dependencies can be vendored for packaging, reproducibility and archival purpose.
323339
vendor:
324340
cargo vendor

beacon_node/beacon_chain/src/beacon_block_streamer.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -715,16 +715,16 @@ mod tests {
715715
harness
716716
}
717717

718+
// TODO(EIP-7732) Extend this test for gloas
718719
#[tokio::test]
719-
async fn check_all_blocks_from_altair_to_gloas() {
720+
async fn check_all_blocks_from_altair_to_fulu() {
720721
let slots_per_epoch = MinimalEthSpec::slots_per_epoch() as usize;
721722
let num_epochs = 12;
722723
let bellatrix_fork_epoch = 2usize;
723724
let capella_fork_epoch = 4usize;
724725
let deneb_fork_epoch = 6usize;
725726
let electra_fork_epoch = 8usize;
726727
let fulu_fork_epoch = 10usize;
727-
let gloas_fork_epoch = 12usize;
728728
let num_blocks_produced = num_epochs * slots_per_epoch;
729729

730730
let mut spec = test_spec::<MinimalEthSpec>();
@@ -734,7 +734,6 @@ mod tests {
734734
spec.deneb_fork_epoch = Some(Epoch::new(deneb_fork_epoch as u64));
735735
spec.electra_fork_epoch = Some(Epoch::new(electra_fork_epoch as u64));
736736
spec.fulu_fork_epoch = Some(Epoch::new(fulu_fork_epoch as u64));
737-
spec.gloas_fork_epoch = Some(Epoch::new(gloas_fork_epoch as u64));
738737
let spec = Arc::new(spec);
739738

740739
let harness = get_harness(VALIDATOR_COUNT, spec.clone());

0 commit comments

Comments
 (0)