-
Notifications
You must be signed in to change notification settings - Fork 597
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run olap workload on pr checks (#13017)
- Loading branch information
1 parent
d9fe121
commit fc48c46
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,7 @@ PEERDIR( | |
) | ||
|
||
END() | ||
|
||
RECURSE_FOR_TESTS( | ||
tests | ||
) |