From e0e82063e064ed4829427b10d89976dd06572450 Mon Sep 17 00:00:00 2001 From: Alex Peng Date: Fri, 23 Aug 2024 05:23:11 +0000 Subject: [PATCH] flamenco: increase replay idx max, poh mismatch --- contrib/ledger-tests/README.md | 8 ++++---- contrib/ledger-tests/ledger_conformance.sh | 10 +++++----- contrib/ledger-tests/replay.sh | 4 ++-- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/contrib/ledger-tests/README.md b/contrib/ledger-tests/README.md index 2f01e739bb..96bf36862a 100644 --- a/contrib/ledger-tests/README.md +++ b/contrib/ledger-tests/README.md @@ -30,8 +30,8 @@ This section lists some subcommands and their key options. For full options, run - `--repetitions multiple --mode exact`: - Replay the entire ledger in multiple iterations. - `--start-slot` and `--end-slot` define the absolute bounds to replay the ledger. - - If start_slot and end_slot are not specified (recommended), the check range is `[first_rooted(max(snap, rocksdb_min)), last_rooted(rocksdb_max)]` - - The replay looks for a mismatch from `start_slot` toward `end_slot`, until it encounters a mismatch. + - If start_slot and end_slot are not specified (recommended), the check range is `[first_rooted(max(snap, rocksdb_min)), last_rooted(rocksdb_max)]` + - The replay looks for a mismatch from `start_slot` toward `end_slot`, until it encounters a mismatch. - Then it would repeat the cycle, starting from the next hourly snapshot after mismatch+1. The snapshot is skipped if the first slot is not rooted. ### Examples @@ -47,7 +47,7 @@ To fetch the latest mainnet ledger and find all bank hash mismatches: --solana-build-dir $PATH_TO_SOLANA_TARGET_RELEASE_DIR \ --firedancer-root-dir $PATH_TO_FIREDANCER_ROOT_DIR \ --gigantic-pages 750 \ - --index-max 600000000 \ + --index-max 700000000 \ --upload $UPLOAD_URL ``` @@ -60,7 +60,7 @@ If you already have an existing ledger to start from at $PATH_TO_LEDGER, append --ledger $PATH_TO_LEDGER \ --ledger-min $PATH_TO_LEDGER_MIN \ --solana-build-dir $PATH_TO_SOLANA_TARGET_RELEASE_DIR \ - --firedancer-root-dir $PATH_TO_FIREDANCER_ROOT_DIR \ + --firedancer-root-dir $PATH_TO_FIREDANCER_ROOT_DIR \ --upload $UPLOAD_URL \ --no-fetch ``` diff --git a/contrib/ledger-tests/ledger_conformance.sh b/contrib/ledger-tests/ledger_conformance.sh index 35743ceed5..67488bc977 100755 --- a/contrib/ledger-tests/ledger_conformance.sh +++ b/contrib/ledger-tests/ledger_conformance.sh @@ -282,7 +282,7 @@ parse_minify_options() { MODE="exact" SLOTS_IN_EPOCH=432000 GIGANTIC_PAGES=750 - INDEX_MAX=600000000 + INDEX_MAX=700000000 while true; do case "$1" in @@ -412,7 +412,7 @@ parse_replay_options() { # Defaults UPLOAD_URL="" GIGANTIC_PAGES=750 - INDEX_MAX=600000000 + INDEX_MAX=700000000 SLOTS_IN_EPOCH=432000 while true; do @@ -504,7 +504,7 @@ parse_solcap_options() { # Typically mismatch snapshots should be minimized and require less pages PAGES=75 FUNK_PAGES=750 - INDEX_MAX=600000000 + INDEX_MAX=700000000 while true; do case "$1" in @@ -564,7 +564,7 @@ parse_mismatch_instr_options() { # Typically mismatch snapshots should be minimized and require less pages PAGES=75 FUNK_PAGES=750 - INDEX_MAX=600000000 + INDEX_MAX=700000000 while true; do case "$1" in @@ -632,7 +632,7 @@ parse_all_options() { SLOTS_IN_EPOCH=432000 UPLOAD_URL="" GIGANTIC_PAGES=750 - INDEX_MAX=600000000 + INDEX_MAX=700000000 while true; do case "$1" in diff --git a/contrib/ledger-tests/replay.sh b/contrib/ledger-tests/replay.sh index d40783e984..3e2a3171bd 100755 --- a/contrib/ledger-tests/replay.sh +++ b/contrib/ledger-tests/replay.sh @@ -56,8 +56,8 @@ echo "epoch=$epoch" >> dump/$rep_ledger_min_basename/metadata set +x echo "$replay_output" -rep_mismatch_slot=$(echo "$replay_output" | grep -oP "Bank hash mismatch! slot=\K\d+") -rep_mismatch_msg=$(echo "$replay_output" | grep -o "Bank hash mismatch!.*") +rep_mismatch_slot=$(echo "$replay_output" | grep -oP "(PoH|Bank) hash mismatch! slot=\K\d+") +rep_mismatch_msg=$(echo "$replay_output" | grep -oP "(PoH|Bank) hash mismatch!.*") rep_mismatch_ledger_basename="$NETWORK-$rep_mismatch_slot.tar.gz" rep_mismatch_ledger_dir="$NETWORK-$rep_mismatch_slot"