Skip to content

Add olap_workload to stability_tests #8047

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 20, 2024
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
16 changes: 16 additions & 0 deletions ydb/tests/stability/ydb/test_stability.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ class TestSetupForStability(object):
artifacts = (
yatest_common.binary_path('ydb/tests/tools/nemesis/driver/nemesis'),
yatest_common.binary_path('ydb/tools/simple_queue/simple_queue'),
yatest_common.binary_path('ydb/tools/olap_workload/olap_workload'),
)

@classmethod
Expand Down Expand Up @@ -122,6 +123,21 @@ def test_simple_queue_workload(self):

self._stop_nemesis()

def test_olap_workload(self):
self._start_nemesis()

for node_id, node in enumerate(self.kikimr_cluster.nodes.values()):
node.ssh_command(
'screen -d -m bash -c "while true; do /Berkanavt/nemesis/bin/olap_workload --database /Root/db1 ; done"',
raise_on_error=True
)
sleep_time_min = 90

logger.info('Sleeping for {} minute(s)'.format(sleep_time_min))
time.sleep(sleep_time_min * 60)

self._stop_nemesis()

@classmethod
def _start_nemesis(cls):
for node in cls.kikimr_cluster.nodes.values():
Expand Down
1 change: 1 addition & 0 deletions ydb/tests/stability/ydb/ya.make
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ DATA(

DEPENDS(
ydb/tools/simple_queue
ydb/tools/olap_workload
ydb/tools/cfg/bin
ydb/tests/tools/nemesis/driver
)
Expand Down
Loading