tests: allow-list S3 500 on DeleteObjects key (#5586)

## Problem

S3 can give us a 500 whenever it likes: when this happens at request
level we eat it in `backoff::retry`, but when it happens for a key
inside a DeleteObjects request, we log it at warn level.

## Summary of changes

Allow-list this class of log message in all tests.
This commit is contained in:
John Spray
2023-10-18 16:16:58 +01:00
committed by GitHub
parent 9a9d9eba42
commit ecf759be6d

View File

@@ -1632,6 +1632,9 @@ class NeonPageserver(PgProtocol):
# these can happen during shutdown, but it should not be a reason to fail a test
".*completed, took longer than expected.*",
'.*registered custom resource manager "neon".*',
# AWS S3 may emit 500 errors for keys in a DeleteObjects response: we retry these
# and it is not a failure of our code when it happens.
".*DeleteObjects.*We encountered an internal error. Please try again.*",
]
def timeline_dir(self, tenant_id: TenantId, timeline_id: Optional[TimelineId] = None) -> Path: