Skip to content

Commit 8e6fbc3

Browse files
committed
Disable log export in functional_tests.py
1 parent ebb93fb commit 8e6fbc3

File tree

1 file changed

+32
-31
lines changed

1 file changed

+32
-31
lines changed

ci/jobs/functional_tests.py

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,13 @@ def main():
223223

224224
if res and JobStages.INSTALL_CLICKHOUSE in stages:
225225

226-
def configure_log_export():
227-
if not info.is_local_run:
228-
print("prepare log export config")
229-
return CH.create_log_export_config()
230-
else:
231-
print("skip log export config for local run")
226+
# NOTE (strtgbb): Disable log export throughout this file, it depends on aws ssm, which we don't have configured
227+
# def configure_log_export():
228+
# if not info.is_local_run:
229+
# print("prepare log export config")
230+
# return CH.create_log_export_config()
231+
# else:
232+
# print("skip log export config for local run")
232233

233234
commands = [
234235
f"chmod +x {ch_path}/clickhouse",
@@ -269,7 +270,7 @@ def configure_log_export():
269270
)
270271
os.environ["GLOBAL_TAGS"] = "no-random-settings"
271272

272-
commands.append(configure_log_export)
273+
# commands.append(configure_log_export)
273274

274275
results.append(
275276
Result.from_commands_run(name="Install ClickHouse", command=commands)
@@ -302,28 +303,28 @@ def start():
302303
res = res and CH.attach_gdb()
303304
else:
304305
print("Skipping gdb attachment for asan build")
305-
if res:
306-
if not Info().is_local_run:
307-
if not CH.start_log_exports(stop_watch.start_time):
308-
info.add_workflow_report_message(
309-
"WARNING: Failed to start log export"
310-
)
311-
print("Failed to start log export")
312-
if not CH.create_minio_log_tables():
313-
info.add_workflow_report_message(
314-
"WARNING: Failed to create minio log tables"
315-
)
316-
print("Failed to create minio log tables")
317-
318-
res = (
319-
CH.prepare_stateful_data(
320-
with_s3_storage=is_s3_storage,
321-
is_db_replicated=is_database_replicated,
322-
)
323-
and CH.insert_system_zookeeper_config()
324-
)
325-
if res:
326-
print("stateful data prepared")
306+
# if res:
307+
# if not Info().is_local_run:
308+
# if not CH.start_log_exports(stop_watch.start_time):
309+
# info.add_workflow_report_message(
310+
# "WARNING: Failed to start log export"
311+
# )
312+
# print("Failed to start log export")
313+
# if not CH.create_minio_log_tables():
314+
# info.add_workflow_report_message(
315+
# "WARNING: Failed to create minio log tables"
316+
# )
317+
# print("Failed to create minio log tables")
318+
319+
# res = (
320+
# CH.prepare_stateful_data(
321+
# with_s3_storage=is_s3_storage,
322+
# is_db_replicated=is_database_replicated,
323+
# )
324+
# and CH.insert_system_zookeeper_config()
325+
# )
326+
# if res:
327+
# print("stateful data prepared")
327328
return res
328329

329330
results.append(
@@ -351,8 +352,8 @@ def start():
351352
else:
352353
run_specific_tests(tests=tests, runs=50 if is_flaky_check else 1)
353354

354-
if not info.is_local_run:
355-
CH.stop_log_exports()
355+
# if not info.is_local_run:
356+
# CH.stop_log_exports()
356357
results.append(FTResultsProcessor(wd=temp_dir).run())
357358
test_result = results[-1]
358359

0 commit comments

Comments
 (0)