Skip to content
Open
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
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ jobs:
# to allow connection with replayer
# TODO: remove when replayer supports identify
KEEP_CONNECTION_WITH_UNKNOWN_STREAM: true
REPLAYER_MULTIADDR: "/dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40110/p2p/12D3KooWPayQEdprqY2m3biReUUybA5LoULpJE7YWu6wetEKKELv"
REPLAYER_MULTIADDR: "/dns4/mina-rust-ci-1-libp2p.gcp.o1test.net/tcp/8302/p2p/12D3KooWNazk9D7RnbHFaPEfrL7BReAKr3rDRf7PivS2Lwx3ShAA"
BPF_ALIAS: /coda/0.0.1/29936104443aaf264a7f0192ac64b1c7173198c1ed404c1bcff5e562e05eb7f6-0.0.0.0
strategy:
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ website/static/api-docs/
ledger/3.0.0mainnet
ledger/berkeley-devnet
mina-workdir
.idea/
.idea/
2 changes: 1 addition & 1 deletion node/testing/src/scenarios/solo_node/bootstrap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
// This test will fail if we don't start with this as the initial time because
// the time validation for the first block will reject it.
fn first_block_slot_timestamp_nanos(config: &RustNodeTestingConfig) -> u64 {
let first_block_global_slot = 46891; // Update if replay changes
let first_block_global_slot = 279218; // Update if replay changes
let protocol_constants = config.genesis.protocol_constants().unwrap();
let genesis_timestamp_ms = protocol_constants.genesis_state_timestamp.0.as_u64();
let milliseconds_per_slot = constraint_constants().block_window_duration_ms;
Expand Down Expand Up @@ -85,7 +85,7 @@

match timeout.checked_sub(elapsed) {
Some(new_timeout) => timeout = new_timeout,
None => panic!("timeout"),

Check failure on line 88 in node/testing/src/scenarios/solo_node/bootstrap.rs

View workflow job for this annotation

GitHub Actions / scenario-tests (single_node)

timeout

Check failure on line 88 in node/testing/src/scenarios/solo_node/bootstrap.rs

View workflow job for this annotation

GitHub Actions / scenario-tests (single_node)

timeout
}

runner
Expand Down
13 changes: 12 additions & 1 deletion node/testing/tests/single_node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,19 @@ scenario_test!(
SoloNodeSyncRootSnarkedLedger
);

// To run locally:
// ```bash
// export MINA_DISCOVERY_FILTER_ADDR=false
// export KEEP_CONNECTION_WITH_UNKNOWN_STREAM=true
// export REPLAYER_MULTIADDR=/dns4/mina-rust-ci-1-libp2p.gcp.o1test.net/tcp/8302/p2p/12D3KooWNazk9D7RnbHFaPEfrL7BReAKr3rDRf7PivS2Lwx3ShAA
// export BPF_ALIAS=/coda/0.0.1/29936104443aaf264a7f0192ac64b1c7173198c1ed404c1bcff5e562e05eb7f6-0.0.0.0
// cargo test --release \
// --package=mina-node-testing
// --package=cli -- \
// --exact bootstrap_from_replayer
// --nocapture
// ```
scenario_test!(
#[ignore = "investigate failure, see 1591"]
bootstrap_from_replayer,
SoloNodeBootstrap,
SoloNodeBootstrap
Expand Down
2 changes: 1 addition & 1 deletion p2p/src/p2p_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ impl P2pState {
mina_core::log::info!(
mina_core::log::system_time();
kind = "P2pState new",
summary = format!("Current node's id: {peer_id_str}"),
summary = format!("Current node's id: {my_id}"),
peer_id_str = peer_id_str,
);
}
Expand Down
2 changes: 1 addition & 1 deletion website/docs/developers/testing/scenario-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ For network connectivity in testing environments, you may need to configure:

```bash
# Enable connection to replayer service (used in CI)
export REPLAYER_MULTIADDR="/dns4/primary-tcp-proxy.hz.minaprotocol.network/tcp/40110/p2p/12D3KooWPayQEdprqY2m3biReUUybA5LoULpJE7YWu6wetEKKELv"
export REPLAYER_MULTIADDR="/dns4/mina-rust-ci-1-libp2p.gcp.o1test.net/tcp/8302/p2p/12D3KooWNazk9D7RnbHFaPEfrL7BReAKr3rDRf7PivS2Lwx3ShAA"

# Allow local address discovery
export MINA_DISCOVERY_FILTER_ADDR=false
Expand Down
Loading