Skip to content

Commit 0be0798

Browse files
authored
Merge pull request ClickHouse#79205 from ClickHouse/revert-79176-ci_improve_subtasks_output_in_ci_report
Revert "CI: Improve subtask output in CI report"
2 parents 8e294b9 + 08c3380 commit 0be0798

13 files changed

+52
-25
lines changed

ci/jobs/build_clickhouse.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ def main():
156156
name="Cmake configuration",
157157
command=cmake_cmd,
158158
workdir=build_dir,
159+
with_log=True,
159160
)
160161
)
161162
res = results[-1].is_ok()
@@ -176,6 +177,7 @@ def main():
176177
name="Build ClickHouse",
177178
command=f"ninja {targets}",
178179
workdir=build_dir,
180+
with_log=True,
179181
)
180182
)
181183
run_shell("sccache stats", "sccache --show-stats")
@@ -206,6 +208,7 @@ def main():
206208
f"cd {Utils.cwd()}/packages/ && OUTPUT_DIR={temp_dir} BUILD_TYPE={BUILD_TYPE_TO_DEB_PACKAGE_TYPE[build_type]} VERSION_STRING={version_dict['string']} DEB_ARCH={deb_arch} ./build --deb {'--rpm --tgz' if 'release' in build_type else ''}",
207209
],
208210
workdir=build_dir,
211+
with_log=True,
209212
)
210213
)
211214
res = results[-1].is_ok()

ci/jobs/clickbench.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def start():
3636
Result.from_commands_run(
3737
name="Start ClickHouse",
3838
command=[start, log_export_config, setup_logs_replication],
39+
with_log=True,
3940
)
4041
)
4142
res = results[-1].is_ok()

ci/jobs/collect_statistics.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,9 @@ def get_all_job_names():
139139
return True
140140

141141
results.append(
142-
Result.from_commands_run(name="Get all job names", command=get_all_job_names)
142+
Result.from_commands_run(
143+
name="Get all job names", command=get_all_job_names, with_info=True
144+
)
143145
)
144146
if not results[-1].is_ok():
145147
sys.exit()

ci/jobs/docker_server_job.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,11 @@ def main():
103103
command = f"docker buildx build --platform {platforms} \
104104
-t {image_repo}:tmp {image_path} -f {docker_path}/Dockerfile.ubuntu"
105105

106-
results.append(Result.from_commands_run(name=f"{image_repo}:tmp", command=command))
106+
results.append(
107+
Result.from_commands_run(
108+
name=f"{image_repo}:tmp", command=command, with_log=True
109+
)
110+
)
107111

108112
Result.create_from(results=results, stopwatch=stopwatch).complete_job()
109113

ci/jobs/fast_test.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def main():
175175
-DENABLE_TESTS=0 -DENABLE_UTILS=0 -DENABLE_THINLTO=0 -DENABLE_NURAFT=1 -DENABLE_SIMDJSON=1 \
176176
-DENABLE_JEMALLOC=1 -DENABLE_LIBURING=1 -DENABLE_YAML_CPP=1 -DCOMPILER_CACHE=sccache",
177177
workdir=build_dir,
178+
with_log=True,
178179
)
179180
)
180181
res = results[-1].is_ok()
@@ -186,6 +187,7 @@ def main():
186187
name="Build ClickHouse",
187188
command="ninja clickhouse-bundle clickhouse-stripped",
188189
workdir=build_dir,
190+
with_log=True,
189191
)
190192
)
191193
Shell.check("sccache --show-stats")
@@ -203,6 +205,7 @@ def main():
203205
name="Check and Compress binary",
204206
command=commands,
205207
workdir=build_dir,
208+
with_log=True,
206209
)
207210
)
208211
res = results[-1].is_ok()
@@ -220,6 +223,7 @@ def main():
220223
Result.from_commands_run(
221224
name="Install ClickHouse Config",
222225
command=commands,
226+
with_log=True,
223227
)
224228
)
225229
res = results[-1].is_ok()

ci/jobs/functional_stateful_tests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,9 @@ def main():
104104
f"clickhouse-server --version",
105105
]
106106
results.append(
107-
Result.from_commands_run(name="Install ClickHouse", command=commands)
107+
Result.from_commands_run(
108+
name="Install ClickHouse", command=commands, with_log=True
109+
)
108110
)
109111
res = results[-1].is_ok()
110112

ci/jobs/functional_stateless_tests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ def main():
121121
f"clickhouse-server --version",
122122
]
123123
results.append(
124-
Result.from_commands_run(name="Install ClickHouse", command=commands)
124+
Result.from_commands_run(
125+
name="Install ClickHouse", command=commands, with_log=True
126+
)
125127
)
126128
res = results[-1].is_ok()
127129

ci/jobs/fuzzers_job.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ def start():
3838
Result.from_commands_run(
3939
name="Start ClickHouse",
4040
command=[start, log_export_config, setup_logs_replication],
41+
with_log=True,
4142
)
4243
)
4344
res = results[-1].is_ok()
@@ -50,6 +51,7 @@ def start():
5051
Result.from_commands_run(
5152
name="Start ClickHouse",
5253
command=commands,
54+
with_log=True,
5355
)
5456
)
5557
res = results[-1].is_ok()

ci/jobs/performance_tests.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,9 @@ def main():
331331
"clickhouse-local --version",
332332
]
333333
results.append(
334-
Result.from_commands_run(name="Install ClickHouse", command=commands)
334+
Result.from_commands_run(
335+
name="Install ClickHouse", command=commands, with_log=True
336+
)
335337
)
336338
res = results[-1].is_ok()
337339

@@ -350,7 +352,7 @@ def main():
350352
]
351353
results.append(
352354
Result.from_commands_run(
353-
name="Install Reference ClickHouse", command=commands
355+
name="Install Reference ClickHouse", command=commands, with_log=True
354356
)
355357
)
356358
res = results[-1].is_ok()
@@ -419,7 +421,9 @@ def restart_ch():
419421
f"cp -R {temp_dir}/coordination0 {perf_left}/coordination",
420422
f"cp -R {temp_dir}/coordination0 {perf_right}/coordination",
421423
]
422-
results.append(Result.from_commands_run(name="Configure", command=commands))
424+
results.append(
425+
Result.from_commands_run(name="Configure", command=commands, with_log=True)
426+
)
423427
res = results[-1].is_ok()
424428

425429
leftCH = CHServer(is_left=True)
@@ -520,6 +524,7 @@ def run_tests():
520524
Result.from_commands_run(
521525
name="Report",
522526
command=commands,
527+
with_log=True,
523528
workdir=perf_wd,
524529
)
525530
)

ci/praktika/docker.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,9 @@ def build(cls, config: "Docker.Config", digests, amd_only, arm_only, with_log):
5959

6060
command = f"docker buildx build --builder default {tags_substr} {from_tag} --platform {','.join(platforms)} --cache-to type=inline --cache-from type=registry,ref={config.name} {config.path} --push"
6161

62-
return Result.from_commands_run(name=name, command=command)
62+
return Result.from_commands_run(
63+
name=name, command=command, with_info=with_log
64+
)
6365
else:
6466
return Result(
6567
name=name,
@@ -103,6 +105,7 @@ def merge_manifest(
103105
return Result.from_commands_run(
104106
name=f"merge: {config.name}:{digests[config.name]} (latest={add_latest})",
105107
command=commands,
108+
with_info=with_log,
106109
fail_fast=True,
107110
)
108111

0 commit comments

Comments
 (0)