test_seqscans: temporarily disable remote test (#3101)

Temporarily disable `test_seqscans` for remote projects; they acquire
too much space and time. We can try to reenable it back after switching
to per-test projects.
This commit is contained in:
Alexander Bayandin
2022-12-14 18:05:05 +00:00
committed by GitHub
parent df09d0375b
commit 8fcba150db
4 changed files with 10 additions and 9 deletions

View File

@@ -22,15 +22,16 @@ from pytest_lazyfixture import lazy_fixture # type: ignore
],
)
@pytest.mark.parametrize(
"env, scale",
"env,scale",
[
# Run on all envs. Use 200x larger table on remote cluster to make sure
# it doesn't fit in shared buffers, which are larger on remote than local.
pytest.param(lazy_fixture("neon_compare"), 1, id="neon"),
pytest.param(lazy_fixture("vanilla_compare"), 1, id="vanilla"),
pytest.param(
lazy_fixture("remote_compare"), 200, id="remote", marks=pytest.mark.remote_cluster
),
# Reenable after switching per-test projects created via API
# pytest.param(
# lazy_fixture("remote_compare"), 200, id="remote", marks=pytest.mark.remote_cluster
# ),
],
)
def test_seqscans(env: PgCompare, scale: int, rows: int, iters: int, workers: int):
@@ -45,7 +46,7 @@ def test_seqscans(env: PgCompare, scale: int, rows: int, iters: int, workers: in
# Verify that the table is larger than shared_buffers
cur.execute(
"""
select setting::int * pg_size_bytes(unit) as shared_buffers, pg_relation_size('t') as tbl_ize
select setting::int * pg_size_bytes(unit) as shared_buffers, pg_relation_size('t') as tbl_size
from pg_settings where name = 'shared_buffers'
"""
)