From 021fd81fe8c120a17feadfd543ad1995c0de81c5 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Tue, 31 Mar 2026 17:39:33 +1100 Subject: [PATCH 1/3] chore(ci): use apache archive for cassandra download dlcdn is only for the latest versions, we were using 5.0.6 which was removed when 5.0.7 was released. In this change we use archive.apache.org which has all the versions and we increment to 5.0.7 while we're at it. --- scripts/setup-scenarios-prerequisites.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/setup-scenarios-prerequisites.sh b/scripts/setup-scenarios-prerequisites.sh index 84f2cbf..56221f6 100755 --- a/scripts/setup-scenarios-prerequisites.sh +++ b/scripts/setup-scenarios-prerequisites.sh @@ -27,11 +27,11 @@ info() { printf "${BLUE}ℹ${NC} %s\n" "$1"; } # ── Constants ──────────────────────────────────────────────── FOUNDRY_VERSION="v1.6.0-rc1" PYENV_VERSION="v2.5.3" -CASSANDRA_VERSION="5.0.6" +CASSANDRA_VERSION="5.0.7" PYTHON_VERSION="3.11.10" PYENV_ROOT="${PYENV_ROOT:-$HOME/.pyenv}" PYTHON_BIN="${PYENV_ROOT}/versions/${PYTHON_VERSION}/bin/python3" -CASSANDRA_URL="https://dlcdn.apache.org/cassandra/${CASSANDRA_VERSION}/apache-cassandra-${CASSANDRA_VERSION}-bin.tar.gz" +CASSANDRA_URL="https://archive.apache.org/dist/cassandra/${CASSANDRA_VERSION}/apache-cassandra-${CASSANDRA_VERSION}-bin.tar.gz" CASSANDRA_DIR="$HOME/.foc-devnet/artifacts/cassandra" FOUNDRY_DIR="$HOME/.foc-devnet/artifacts/foundry/bin" CASSANDRA_HOME="${CASSANDRA_DIR}/apache-cassandra-${CASSANDRA_VERSION}" From 916051da89f7120984401d7713e5bccf911247d0 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Tue, 31 Mar 2026 22:04:06 +1100 Subject: [PATCH 2/3] fixup! chore(ci): use apache archive for cassandra download --- scenarios/test_caching_subsystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scenarios/test_caching_subsystem.py b/scenarios/test_caching_subsystem.py index 0ba5e80..e93f5b2 100644 --- a/scenarios/test_caching_subsystem.py +++ b/scenarios/test_caching_subsystem.py @@ -29,7 +29,7 @@ ) from scenarios.synapse import clone_and_build, upload_file -CASSANDRA_VERSION = "5.0.6" +CASSANDRA_VERSION = "5.0.7" PYTHON_VERSION = "3.11.10" PYENV_ROOT = Path.home() / ".pyenv" PYTHON_DIR = PYENV_ROOT / "versions" / PYTHON_VERSION From fe388ab91b9aa3f867be0f53bdce1b277499b3de Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Tue, 31 Mar 2026 23:10:41 +1100 Subject: [PATCH 3/3] fix(lotus): disable unreleased network upgrade (UpgradeXxHeight) in devnet Lotus 2k builds schedule UpgradeXxHeight at epoch 200, triggering an expensive state migration that causes transient ErrExpensiveFork on eth_call/estimateGas. Set LOTUS_XX_HEIGHT=-1 on the daemon container to prevent this. --- src/commands/start/lotus/setup.rs | 4 ++++ src/commands/start/lotus_utils/mod.rs | 13 +++++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/commands/start/lotus/setup.rs b/src/commands/start/lotus/setup.rs index f2cf05d..6aa124d 100644 --- a/src/commands/start/lotus/setup.rs +++ b/src/commands/start/lotus/setup.rs @@ -3,6 +3,7 @@ //! This module contains functions that prepare the environment //! for starting the Lotus daemon container. +use super::super::lotus_utils::append_lotus_network_env; use super::super::step::SetupContext; use crate::constants::LOTUS_DOCKER_IMAGE; use crate::docker::containers::lotus_container_name; @@ -136,6 +137,9 @@ pub fn build_docker_command( // Set working directory docker_args.extend_from_slice(&["-w".to_string(), "/data".to_string()]); + // Disable the next unreleased network upgrade (UpgradeXxHeight) + append_lotus_network_env(&mut docker_args); + // Add image name docker_args.push(LOTUS_DOCKER_IMAGE.to_string()); diff --git a/src/commands/start/lotus_utils/mod.rs b/src/commands/start/lotus_utils/mod.rs index dea2d3a..e31b74c 100644 --- a/src/commands/start/lotus_utils/mod.rs +++ b/src/commands/start/lotus_utils/mod.rs @@ -72,3 +72,16 @@ pub fn get_lotus_rpc_url(context: &SetupContext) -> Result) { + docker_args.push("-e".to_string()); + docker_args.push("LOTUS_XX_HEIGHT=-1".to_string()); +}