mirror of
https://github.com/neondatabase/neon.git
synced 2026-01-07 13:32:57 +00:00
This PR adds tests runs on Postgres 15 and created unified Allure report with results for all tests. - Split `.github/actions/allure-report` into `.github/actions/allure-report-store` and `.github/actions/allure-report-generate` - Add debug or release pytest parameter for all tests (depending on `BUILD_TYPE` env variable) - Add Postgres version as a pytest parameter for all tests (depending on `DEFAULT_PG_VERSION` env variable) - Fix `test_wal_restore` and `restore_from_wal.sh` to support path with `[`/`]` in it (fixed by applying spellcheck to the script and fixing all warnings), `restore_from_wal_archive.sh` is deleted as unused. - All known failures on Postgres 15 marked with xfail
26 lines
702 B
Python
26 lines
702 B
Python
import os
|
|
|
|
import pytest
|
|
|
|
from fixtures.pg_version import DEFAULT_VERSION, PgVersion
|
|
|
|
"""
|
|
Set of utilities to make Allure report more informative.
|
|
|
|
- It adds BUILD_TYPE and DEFAULT_PG_VERSION to the test names (only in test_runner/regress)
|
|
to make tests distinguishable in Allure report.
|
|
"""
|
|
|
|
|
|
@pytest.fixture(scope="function", autouse=True)
|
|
def allure_noop():
|
|
pass
|
|
|
|
|
|
def pytest_generate_tests(metafunc):
|
|
if "test_runner/regress" in metafunc.definition._nodeid:
|
|
build_type = os.environ.get("BUILD_TYPE", "DEBUG").lower()
|
|
pg_version = PgVersion(os.environ.get("DEFAULT_PG_VERSION", DEFAULT_VERSION))
|
|
|
|
metafunc.parametrize("allure_noop", [f"{build_type}-pg{pg_version}"])
|