From cf8654b3e5895db6ea6e4e4bbf82b44c67328a4e Mon Sep 17 00:00:00 2001 From: Gleb Novikov Date: Fri, 17 Jan 2025 11:27:10 +0000 Subject: [PATCH] Revert "Removed version limitation from fast import tests" This reverts commit 047b986f7f453cefed956037cc2f5befe903409d. --- test_runner/regress/test_import_pgdata.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test_runner/regress/test_import_pgdata.py b/test_runner/regress/test_import_pgdata.py index f3c57dc315..29b5e88a57 100644 --- a/test_runner/regress/test_import_pgdata.py +++ b/test_runner/regress/test_import_pgdata.py @@ -14,8 +14,10 @@ from fixtures.pageserver.http import ( ImportPgdataIdemptencyKey, PageserverApiException, ) +from fixtures.pg_version import PgVersion from fixtures.port_distributor import PortDistributor from fixtures.remote_storage import RemoteStorageKind +from fixtures.utils import run_only_on_postgres from pytest_httpserver import HTTPServer from werkzeug.wrappers.request import Request from werkzeug.wrappers.response import Response @@ -37,6 +39,10 @@ smoke_params = [ ] +@run_only_on_postgres( + [PgVersion.V14, PgVersion.V15, PgVersion.V16], + "newer control file catalog version and struct format isn't supported", +) @pytest.mark.parametrize("shard_count,stripe_size,rel_block_size", smoke_params) def test_pgdata_import_smoke( vanilla_pg: VanillaPostgres, @@ -311,6 +317,10 @@ def test_pgdata_import_smoke( br_initdb_endpoint.safe_psql("select * from othertable") +@run_only_on_postgres( + [PgVersion.V14, PgVersion.V15, PgVersion.V16], + "newer control file catalog version and struct format isn't supported", +) def test_fast_import_binary( test_output_dir, vanilla_pg: VanillaPostgres,