-
Notifications
You must be signed in to change notification settings - Fork 978
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'namada/tomas/fix-pos-slashing' (#1246) …
…into main * namada/tomas/fix-pos-slashing: changelog: add #1246 app/ledger/finalize_block: slash after copying of validator sets scripts: add a helper to repeat e2e test
- Loading branch information
Showing
3 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- PoS: Fixed an issue with slashable evidence processed | ||
and applied at a new epoch causing a ledger to crash. | ||
([#1246](https://github.com/anoma/namada/pull/1246)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
# Run an e2e test at most n times, exit at first failure. | ||
# This can be handy for testing of non-deterministic issues that are tricky to | ||
# reproduce. | ||
# | ||
# The first arg is the max number of repetitions and second is the exact name | ||
# of the test. | ||
# | ||
# Usage example: | ||
# $ scripts/repeat-e2e-test.sh 10 e2e::ledger_tests::run_ledger | ||
# | ||
# Adapted from https://gitlab.com/tezos/tezos/-/blob/master/tests_python/scripts/repeat_test.sh | ||
|
||
NUM=$1 | ||
TEST=$2 | ||
# Thanks internet https://stackoverflow.com/a/4774063/3210255 | ||
SCRIPTPATH="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )" | ||
NIGHTLY=$(cat "$SCRIPTPATH"/../rust-nightly-version) | ||
|
||
for i in $(seq 1 "$NUM") | ||
do | ||
echo "Execution $i/$NUM" | ||
if ! RUST_BACKTRACE=1 NAMADA_E2E_KEEP_TEMP=true NAMADA_E2E_DEBUG=true cargo "+$NIGHTLY" test "$TEST" -Z unstable-options -- --exact --test-threads=1 --nocapture; then | ||
exit 1 | ||
fi | ||
done | ||
exit 0 | ||
|
||
|