Skip to content

Commit

Permalink
Fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
iddqdex committed Dec 24, 2024
1 parent f5c4ca2 commit a8b223d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
3 changes: 3 additions & 0 deletions ydb/deploy/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# syntax=docker/dockerfile:1.4
ARG BASE_IMAGE="cr.yandex/mirror/ubuntu"
ARG BASE_IMAGE_TAG="focal"
ARG BREAKPAD_INIT_IMAGE="cr.yandex/crp2lrlsrs36odlvd8dv/breakpad_init"
ARG BREAKPAD_INIT_IMAGE_TAG="v2023.06.01"

###
# Base image with required deb packages
Expand All @@ -23,6 +25,7 @@ COPY --chmod=0644 /liblibaio-dynamic.so /lib/liblibaio-dynamic.so
# Base image with google brekpad assets
###

FROM ${BREAKPAD_INIT_IMAGE}:${BREAKPAD_INIT_IMAGE_TAG} AS breakpad_init
FROM base AS base-breakpad
RUN \
apt-get -yqq update && \
Expand Down
9 changes: 2 additions & 7 deletions ydb/tests/functional/minidumps/test_break.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
import yatest.common
import os
from ydb.tests.library.harness.kikimr_runner import KiKiMR
from ydb.tests.library.harness.kikimr_config import KikimrConfigGenerator


def test_create_minidump():
dump_path = os.path.join(yatest.common.tempfile.gettempdir(), 'dumps')
os.makedirs(dump_path, exist_ok=True)
os.environ['BREAKPAD_MINIDUMPS_PATH'] = dump_path
cluster = KiKiMR(configurator=KikimrConfigGenerator(
domain_name='local',
extra_feature_flags=["enable_resource_pools"],
use_in_memory_pdisks=True,
))
cluster = KiKiMR()
cluster.start()
for node in cluster.nodes.values():
node.send_signal(6)
try:
cluster.stop()
except BaseException:
except RuntimeError:
pass
assert len(os.listdir(dump_path)) == len(cluster.nodes)

0 comments on commit a8b223d

Please sign in to comment.