Skip to content

Commit 14cb51a

Browse files
authored
Fix[IT]: reduce storage file sizes to allow run in GH CI (#649)
Signed-off-by: Evgeny Malygin <[email protected]>
1 parent f3bdc4d commit 14cb51a

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

src/python/blazingmq/dev/it/fixtures.py

+18-1
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,23 @@ def ephemeral_port_allocator():
331331
for cat in broker_category_levels
332332
]
333333

334+
# We want to be able to spawn a multi-node cluster in the GitHub Actions CI.
335+
# We create a local directory with a storage for each node in a cluster,
336+
# and we only have 14GB of storage on a GitHub Runner, that is why we need
337+
# to reduce storage file sizes for integration tests.
338+
configurator.proto.cluster.partition_config.max_data_file_size = (
339+
67108864 # 64MiB
340+
)
341+
configurator.proto.cluster.partition_config.max_journal_file_size = (
342+
16777216 # 16MiB
343+
)
344+
configurator.proto.cluster.partition_config.max_cslfile_size = (
345+
16777216 # 16MiB
346+
)
347+
configurator.proto.cluster.partition_config.max_qlist_file_size = (
348+
2097152 # 2MiB
349+
)
350+
334351
def apply_tweaks(stage: int):
335352
for request_location in "cls", "function", "instance":
336353
if request_context := getattr(request, request_location, None):
@@ -365,7 +382,7 @@ def apply_tweaks(stage: int):
365382
) as cluster:
366383
failures = (
367384
0 + request.session.testsfailed
368-
) # it doesnt work without the 0 +, why?
385+
) # it doesn't work without the `0 +`, why?
369386

370387
try:
371388
with internal_use(cluster):

0 commit comments

Comments
 (0)