Skip to content

Commit

Permalink
Run olap workload on pr checks (#13017)
Browse files Browse the repository at this point in the history
  • Loading branch information
zverevgeny authored Dec 26, 2024
1 parent d9fe121 commit fc48c46
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 0 deletions.
29 changes: 29 additions & 0 deletions ydb/tests/workloads/olap_workload/tests/test_workload.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# -*- coding: utf-8 -*-
import yatest

from ydb.tests.library.harness.kikimr_runner import KiKiMR
from ydb.tests.library.harness.kikimr_config import KikimrConfigGenerator
from ydb.tests.library.common.types import Erasure


class TestYdbWorkload(object):
@classmethod
def setup_class(cls):
cls.cluster = KiKiMR(KikimrConfigGenerator(erasure=Erasure.MIRROR_3_DC))
cls.cluster.start()

@classmethod
def teardown_class(cls):
cls.cluster.stop()

def test(self):
workload_path = yatest.common.build_path("ydb/tests/workloads/olap_workload/olap_workload")
yatest.common.execute(
[
workload_path,
"--endpoint", f"grpc://localhost:{self.cluster.nodes[1].grpc_port}",
"--database=/Root",
"--duration", "120",
],
wait=True
)
25 changes: 25 additions & 0 deletions ydb/tests/workloads/olap_workload/tests/ya.make
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
PY3TEST()
ENV(YDB_DRIVER_BINARY="ydb/apps/ydbd/ydbd")

TEST_SRCS(
test_workload.py
)

IF (SANITIZER_TYPE)
REQUIREMENTS(ram:32)
ENDIF()

SIZE(MEDIUM)

DEPENDS(
ydb/apps/ydbd
ydb/apps/ydb
ydb/tests/workloads/olap_workload
)

PEERDIR(
ydb/tests/library
)


END()
4 changes: 4 additions & 0 deletions ydb/tests/workloads/olap_workload/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ PEERDIR(
)

END()

RECURSE_FOR_TESTS(
tests
)

0 comments on commit fc48c46

Please sign in to comment.