Skip to content

Commit

Permalink
second stratus executing must be with release
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurmm-cloudwalk committed Feb 14, 2025
1 parent 56bf635 commit 76278f7
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions justfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import "justfile_helpers"

set shell := ["bash", "-e", "-o", "pipefail", "-c"]

# Environment variables automatically passed to executed commands.
export CARGO_PROFILE_RELEASE_DEBUG := env("CARGO_PROFILE_RELEASE_DEBUG", "1")
export RUST_BACKTRACE := env("RUST_BACKTRACE", "0")
Expand Down Expand Up @@ -471,7 +469,7 @@ e2e-importer-offline:

mkdir -p e2e_logs

rm -rf tests/importer-offline-database
rm -rf data/importer-offline-database-rocksdb

just _log "Starting Stratus"
just stratus -a 0.0.0.0:3000 > e2e_logs/e2e-importer-offline-stratus.log &
Expand All @@ -487,17 +485,16 @@ e2e-importer-offline:
just rpc-downloader --external-rpc http://localhost:3000/ --external-rpc-storage postgres://postgres:123@localhost:5432/stratus --metrics-exporter-address 0.0.0.0:9001 --initial-accounts 0x70997970c51812dc3a010c7d01b50e0d17dc79c8,0xf39fd6e51aad88f6f4ce6ab8827279cfffb92266

just _log "Run importer-offline"
just importer-offline --external-rpc-storage postgres://postgres:123@localhost:5432/stratus --rocks-path-prefix=tests/importer-offline-database --metrics-exporter-address 0.0.0.0:9002
just importer-offline --external-rpc-storage postgres://postgres:123@localhost:5432/stratus --rocks-path-prefix=data/importer-offline-database --metrics-exporter-address 0.0.0.0:9002

just _log "Stratus for importer-offline"
just stratus -a 0.0.0.0:3001 --perm-storage=rocks --rocks-path-prefix=tests/importer-offline-database > e2e_logs/e2e-importer-offline-stratus-3001.log &
cargo run --release --bin stratus -- --leader -a 0.0.0.0:3001 --perm-storage=rocks --rocks-path-prefix=data/importer-offline-database --metrics-exporter-address 0.0.0.0:9002 > e2e_logs/e2e-importer-offline-stratus-3001.log &
just _wait_for_stratus 3001

just _log "Compare blocks of stratus and importer-offline"
pip install -r utils/compare_block/requirements.txt
python utils/compare_block/main.py http://localhost:3000 http://localhost:3001 1 --ignore timestamp --ignore type

echo "$?"
just _log "Killing Stratus"
killport 3000 -s sigterm

Expand Down

0 comments on commit 76278f7

Please sign in to comment.