Skip to content

Commit fc48c46

Browse files
authored
Run olap workload on pr checks (#13017)
1 parent d9fe121 commit fc48c46

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# -*- coding: utf-8 -*-
2+
import yatest
3+
4+
from ydb.tests.library.harness.kikimr_runner import KiKiMR
5+
from ydb.tests.library.harness.kikimr_config import KikimrConfigGenerator
6+
from ydb.tests.library.common.types import Erasure
7+
8+
9+
class TestYdbWorkload(object):
10+
@classmethod
11+
def setup_class(cls):
12+
cls.cluster = KiKiMR(KikimrConfigGenerator(erasure=Erasure.MIRROR_3_DC))
13+
cls.cluster.start()
14+
15+
@classmethod
16+
def teardown_class(cls):
17+
cls.cluster.stop()
18+
19+
def test(self):
20+
workload_path = yatest.common.build_path("ydb/tests/workloads/olap_workload/olap_workload")
21+
yatest.common.execute(
22+
[
23+
workload_path,
24+
"--endpoint", f"grpc://localhost:{self.cluster.nodes[1].grpc_port}",
25+
"--database=/Root",
26+
"--duration", "120",
27+
],
28+
wait=True
29+
)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
PY3TEST()
2+
ENV(YDB_DRIVER_BINARY="ydb/apps/ydbd/ydbd")
3+
4+
TEST_SRCS(
5+
test_workload.py
6+
)
7+
8+
IF (SANITIZER_TYPE)
9+
REQUIREMENTS(ram:32)
10+
ENDIF()
11+
12+
SIZE(MEDIUM)
13+
14+
DEPENDS(
15+
ydb/apps/ydbd
16+
ydb/apps/ydb
17+
ydb/tests/workloads/olap_workload
18+
)
19+
20+
PEERDIR(
21+
ydb/tests/library
22+
)
23+
24+
25+
END()

ydb/tests/workloads/olap_workload/ya.make

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ PEERDIR(
1111
)
1212

1313
END()
14+
15+
RECURSE_FOR_TESTS(
16+
tests
17+
)

0 commit comments

Comments
 (0)