mirror of
https://github.com/neondatabase/neon.git
synced 2025-12-23 14:19:58 +00:00
See #7718. Fix it by renaming all `types.py` to `common_types.py`. Additionally, add an advert for using `allowed_errors.py` to test any added regex.
19 lines
566 B
Bash
Executable File
19 lines
566 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu
|
|
|
|
HELPER_DIR="$(dirname "${BASH_SOURCE[0]}")"
|
|
SCRIPT="test_runner/fixtures/pageserver/allowed_errors.py"
|
|
|
|
# first run to understand all of the errors:
|
|
#
|
|
# example: ./scripts/check_allowed_errors.sh -i - < pageserver.log
|
|
# example: ./scripts/check_allowed_errors.sh -i pageserver.log
|
|
#
|
|
# then edit the test local allowed_errors to the
|
|
# test_runner/fixtures/pageserver/allowed_errors.py, then re-run to make sure
|
|
# they are handled.
|
|
#
|
|
# finally revert any local changes to allowed_errors.py.
|
|
poetry run python3 "$HELPER_DIR/../$SCRIPT" $*
|