mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-14 02:12:33 +00:00
Fix broken Nethermind integration tests (#4836)
## Issue Addressed CI is currently blocked by persistently failing integration tests. ## Proposed Changes Use latest Nethermind release and apply the appropriate fixes as there have been breaking changes. Also increase the timeout since I had some local timeouts. Co-authored-by: Michael Sproul <michael@sigmaprime.io> Co-authored-by: antondlr <anton@delaruelle.net> Co-authored-by: Jimmy Chen <jchen.tc@gmail.com>
This commit is contained in:
@@ -2,7 +2,7 @@ use crate::build_utils;
|
||||
use crate::execution_engine::GenericExecutionEngine;
|
||||
use crate::genesis_json::nethermind_genesis_json;
|
||||
use std::env;
|
||||
use std::fs::File;
|
||||
use std::fs;
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::process::{Child, Command, Output};
|
||||
use tempfile::TempDir;
|
||||
@@ -11,7 +11,7 @@ use unused_port::unused_tcp4_port;
|
||||
/// We've pinned the Nethermind version since our method of using the `master` branch to
|
||||
/// find the latest tag isn't working. It appears Nethermind don't always tag on `master`.
|
||||
/// We should fix this so we always pull the latest version of Nethermind.
|
||||
const NETHERMIND_BRANCH: &str = "release/1.18.2";
|
||||
const NETHERMIND_BRANCH: &str = "release/1.21.0";
|
||||
const NETHERMIND_REPO_URL: &str = "https://github.com/NethermindEth/nethermind";
|
||||
|
||||
fn build_result(repo_dir: &Path) -> Output {
|
||||
@@ -47,6 +47,12 @@ pub fn build(execution_clients_dir: &Path) {
|
||||
build_utils::check_command_output(build_result(&repo_dir), || {
|
||||
format!("nethermind build failed using release {last_release}")
|
||||
});
|
||||
|
||||
// Cleanup some disk space by removing nethermind's tests
|
||||
let tests_dir = execution_clients_dir.join("nethermind/src/tests");
|
||||
if let Err(e) = fs::remove_dir_all(tests_dir) {
|
||||
eprintln!("Error while deleting folder: {}", e);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -68,7 +74,8 @@ impl NethermindEngine {
|
||||
.join("bin")
|
||||
.join("Release")
|
||||
.join("net7.0")
|
||||
.join("Nethermind.Runner")
|
||||
.join("linux-x64")
|
||||
.join("nethermind")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -76,7 +83,7 @@ impl GenericExecutionEngine for NethermindEngine {
|
||||
fn init_datadir() -> TempDir {
|
||||
let datadir = TempDir::new().unwrap();
|
||||
let genesis_json_path = datadir.path().join("genesis.json");
|
||||
let mut file = File::create(genesis_json_path).unwrap();
|
||||
let mut file = fs::File::create(genesis_json_path).unwrap();
|
||||
let json = nethermind_genesis_json();
|
||||
serde_json::to_writer(&mut file, &json).unwrap();
|
||||
datadir
|
||||
|
||||
Reference in New Issue
Block a user