Skip to content

Commit 366ea3f

Browse files
committed
test: deactivate the simulation execution for now
Signed-off-by: Eric Torreborre <etorreborre@yahoo.com>
1 parent 345e74b commit 366ea3f

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

justfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
default:
2+
@just check
3+
4+
check:
5+
fd . -e rs -X addlicense -check -f .github/license-Apache-2.0.template.rs
6+
cargo fmt
7+
cargo clippy-amaru
8+
(cd simulation/amaru-sim && cargo clippy-amaru)
9+
cargo test
10+
(cd simulation/amaru-sim && cargo test)
11+
12+
end-to-end:
13+
docker pull ghcr.io/intersectmbo/cardano-node:10.1.4
14+
make HASKELL_NODE_CONFIG_DIR=cardano-node-config NETWORK=preprod download-haskell-config
15+
docker run --platform=linux/amd64 -d --name cardano-node -v /home/runner/work/_temp/db-preprod:/db -v /home/runner/work/_temp/ipc:/ipc -v $PWD/cardano-node-config:/config -v $PWD/cardano-node-config:/genesis -p 3001:3001 ghcr.io/intersectmbo/cardano-node:10.1.4 run --config /config/config.json --database-path /db --socket-path /ipc/node.socket --topology /config/topology.json
16+
cargo test --no-run -p amaru
17+
make BUILD_PROFILE=test NETWORK=preprod bootstrap

simulation/amaru-sim/src/bin/amaru-sim/main.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
use std::process::exit;
16-
17-
use amaru_sim::simulator::{Args, run_tests};
15+
use amaru_sim::simulator::Args;
1816
use clap::Parser;
1917
use tracing_subscriber::EnvFilter;
2018

2119
fn main() {
22-
let args = Args::parse();
20+
let _args = Args::parse();
2321

2422
// Initialize tracing subscriber with environment variable filter
2523
tracing_subscriber::fmt()
2624
.json()
2725
.with_env_filter(EnvFilter::try_from_default_env().unwrap_or_else(|_| EnvFilter::new("info")))
2826
.init();
2927

28+
// FIXME: fix the simulation termination. For now it is not reliable and might stop too soon.
29+
3030
// It might be necessary to run the simulation with a larger stack with RUST_MIN_STACK=16777216 (16MB)
3131
// because of the deep recursion used when generating data for large chains.
32-
if let Err(e) = run_tests(args) {
33-
eprintln!("Error running tests: {e}");
34-
exit(1);
35-
}
32+
// if let Err(e) = run_tests(args) {
33+
// eprintln!("Error running tests: {e}");
34+
// exit(1);
35+
// }
3636
}

0 commit comments

Comments
 (0)