mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-06 04:52:55 +00:00
tests: log hygiene checks for storage controller (#6710)
## Problem As with the pageserver, we should fail tests that emit unexpected log errors/warnings. ## Summary of changes - Refactor existing log checks to be reusable - Run log checks for attachment_service - Add allow lists as needed.
This commit is contained in:
@@ -89,6 +89,16 @@ DEFAULT_PAGESERVER_ALLOWED_ERRORS = (
|
||||
)
|
||||
|
||||
|
||||
DEFAULT_STORAGE_CONTROLLER_ALLOWED_ERRORS = [
|
||||
# Many tests will take pageservers offline, resulting in log warnings on the controller
|
||||
# failing to connect to them.
|
||||
".*Call to node.*management API.*failed.*receive body.*",
|
||||
".*Call to node.*management API.*failed.*ReceiveBody.*",
|
||||
# Many tests will start up with a node offline
|
||||
".*startup_reconcile: Could not scan node.*",
|
||||
]
|
||||
|
||||
|
||||
def _check_allowed_errors(input):
|
||||
allowed_errors: List[str] = list(DEFAULT_PAGESERVER_ALLOWED_ERRORS)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user