Skip to content

Commit c6dc04b

Browse files
authored
Merge pull request ClickHouse#79296 from Blargian/ci_mod
CI: improve subtask output in CI report
2 parents e40326a + 4b9410f commit c6dc04b

File tree

14 files changed

+30
-58
lines changed

14 files changed

+30
-58
lines changed

ci/jobs/build_clickhouse.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ def main():
156156
name="Cmake configuration",
157157
command=cmake_cmd,
158158
workdir=build_dir,
159-
with_log=True,
160159
)
161160
)
162161
res = results[-1].is_ok()
@@ -177,7 +176,6 @@ def main():
177176
name="Build ClickHouse",
178177
command=f"ninja {targets}",
179178
workdir=build_dir,
180-
with_log=True,
181179
)
182180
)
183181
run_shell("sccache stats", "sccache --show-stats")
@@ -208,7 +206,6 @@ def main():
208206
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 ''}",
209207
],
210208
workdir=build_dir,
211-
with_log=True,
212209
)
213210
)
214211
res = results[-1].is_ok()

ci/jobs/clickbench.py

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

ci/jobs/collect_statistics.py

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

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

ci/jobs/docker_server_job.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,7 @@ 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(
107-
Result.from_commands_run(
108-
name=f"{image_repo}:tmp", command=command, with_log=True
109-
)
110-
)
106+
results.append(Result.from_commands_run(name=f"{image_repo}:tmp", command=command))
111107

112108
Result.create_from(results=results, stopwatch=stopwatch).complete_job()
113109

ci/jobs/fast_test.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ 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,
179178
)
180179
)
181180
res = results[-1].is_ok()
@@ -187,7 +186,6 @@ def main():
187186
name="Build ClickHouse",
188187
command="ninja clickhouse-bundle clickhouse-stripped",
189188
workdir=build_dir,
190-
with_log=True,
191189
)
192190
)
193191
Shell.check("sccache --show-stats")
@@ -205,7 +203,6 @@ def main():
205203
name="Check and Compress binary",
206204
command=commands,
207205
workdir=build_dir,
208-
with_log=True,
209206
)
210207
)
211208
res = results[-1].is_ok()
@@ -223,7 +220,6 @@ def main():
223220
Result.from_commands_run(
224221
name="Install ClickHouse Config",
225222
command=commands,
226-
with_log=True,
227223
)
228224
)
229225
res = results[-1].is_ok()

ci/jobs/functional_stateful_tests.py

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

ci/jobs/functional_stateless_tests.py

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

ci/jobs/fuzzers_job.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def start():
3838
Result.from_commands_run(
3939
name="Start ClickHouse",
4040
command=[start, log_export_config, setup_logs_replication],
41-
with_log=True,
4241
)
4342
)
4443
res = results[-1].is_ok()
@@ -51,7 +50,6 @@ def start():
5150
Result.from_commands_run(
5251
name="Start ClickHouse",
5352
command=commands,
54-
with_log=True,
5553
)
5654
)
5755
res = results[-1].is_ok()

ci/jobs/performance_tests.py

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

@@ -352,7 +350,7 @@ def main():
352350
]
353351
results.append(
354352
Result.from_commands_run(
355-
name="Install Reference ClickHouse", command=commands, with_log=True
353+
name="Install Reference ClickHouse", command=commands
356354
)
357355
)
358356
res = results[-1].is_ok()
@@ -421,9 +419,7 @@ def restart_ch():
421419
f"cp -R {temp_dir}/coordination0 {perf_left}/coordination",
422420
f"cp -R {temp_dir}/coordination0 {perf_right}/coordination",
423421
]
424-
results.append(
425-
Result.from_commands_run(name="Configure", command=commands, with_log=True)
426-
)
422+
results.append(Result.from_commands_run(name="Configure", command=commands))
427423
res = results[-1].is_ok()
428424

429425
leftCH = CHServer(is_left=True)
@@ -524,7 +520,6 @@ def run_tests():
524520
Result.from_commands_run(
525521
name="Report",
526522
command=commands,
527-
with_log=True,
528523
workdir=perf_wd,
529524
)
530525
)

ci/praktika/docker.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ 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(
63-
name=name, command=command, with_info=with_log
64-
)
62+
return Result.from_commands_run(name=name, command=command)
6563
else:
6664
return Result(
6765
name=name,
@@ -105,7 +103,6 @@ def merge_manifest(
105103
return Result.from_commands_run(
106104
name=f"merge: {config.name}:{digests[config.name]} (latest={add_latest})",
107105
command=commands,
108-
with_info=with_log,
109106
fail_fast=True,
110107
)
111108

0 commit comments

Comments
 (0)