Use pytest-repeat to reproduce failure on CI.

This commit is contained in:
Arseny Sher
2023-03-28 11:55:52 +04:00
parent 93f3f4ab5f
commit 42fa2a44f2
7 changed files with 24 additions and 6 deletions

View File

@@ -77,7 +77,7 @@ DEFAULT_BRANCH_NAME: str = "main"
DEFAULT_PG_VERSION_DEFAULT: str = "14"
BASE_PORT: int = 15000
WORKER_PORT_NUM: int = 1000
WORKER_PORT_NUM: int = 10000
def pytest_configure(config: Config):

View File

@@ -149,7 +149,7 @@ def get_scale_for_db(size_mb: int) -> int:
ATTACHMENT_NAME_REGEX: re.Pattern = re.compile( # type: ignore[type-arg]
r"regression\.diffs|.+\.(?:log|stderr|stdout|filediff|metrics|html)"
r"config|postgresql\.conf|regression\.diffs|.+\.(?:log|stderr|stdout|filediff|metrics|html)"
)

View File

@@ -136,6 +136,7 @@ def test_backward_compatibility(
@pytest.mark.xdist_group("compatibility")
@pytest.mark.order(after="test_create_snapshot")
@pytest.mark.repeat(1000)
def test_forward_compatibility(
test_output_dir: Path,
port_distributor: PortDistributor,