Skip to content

Add possibility to skip tests #22616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ydb/tests/olap/scenario/helpers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
from .data_generators import * # noqa
from .drop_helper import * # noqa
from .table_helper import * # noqa
from .skip_test import * # noqa
10 changes: 10 additions & 0 deletions ydb/tests/olap/scenario/helpers/skip_test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import pytest
from ydb.tests.olap.scenario.helpers import TestContext
from ydb.tests.olap.lib.utils import get_external_param


def check_test_for_skipping(ctx: TestContext):
current_test = f"{ctx.suite}::{ctx.test}"
skipped_tests = get_external_param('olap-skip', '').split(',')
if current_test != '' and current_test in skipped_tests:
pytest.skip("marked as skipped in params")
1 change: 1 addition & 0 deletions ydb/tests/olap/scenario/helpers/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ PY3_LIBRARY()
data_generators.py
table_helper.py
drop_helper.py
skip_test.py
)

PEERDIR(
Expand Down
3 changes: 3 additions & 0 deletions ydb/tests/olap/scenario/test_alter_tiering.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
CreateTableStore,
DropTable,
DropTableStore,
skip_test,
)
from ydb.tests.olap.common.thread_helper import TestThread, TestThreads
from helpers.tiering_helper import (
Expand Down Expand Up @@ -299,6 +300,8 @@ def _loop_add_drop_column(self, ctx: TestContext, store: str, duration: datetime
sth.execute_scheme_query(AlterTableStore(store).drop_column(column_name), retries=2)

def scenario_many_tables(self, ctx: TestContext):
skip_test.check_test_for_skipping(ctx)

self._setup_tiering_test(ctx)

self.test_duration = self._get_test_duration(get_external_param('test-class', 'SMALL'))
Expand Down
Loading