mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
add comments to build reports (#50200)
This commit is contained in:
parent
034a8bd6b3
commit
2c0c1ba4af
@ -73,6 +73,7 @@ def get_failed_report(
|
|||||||
sanitizer="unknown",
|
sanitizer="unknown",
|
||||||
status=message,
|
status=message,
|
||||||
elapsed_seconds=0,
|
elapsed_seconds=0,
|
||||||
|
comment="",
|
||||||
)
|
)
|
||||||
return [build_result], [[""]], [GITHUB_RUN_URL]
|
return [build_result], [[""]], [GITHUB_RUN_URL]
|
||||||
|
|
||||||
@ -87,6 +88,7 @@ def process_report(
|
|||||||
sanitizer=build_config["sanitizer"],
|
sanitizer=build_config["sanitizer"],
|
||||||
status="success" if build_report["status"] else "failure",
|
status="success" if build_report["status"] else "failure",
|
||||||
elapsed_seconds=build_report["elapsed_seconds"],
|
elapsed_seconds=build_report["elapsed_seconds"],
|
||||||
|
comment=build_config["comment"],
|
||||||
)
|
)
|
||||||
build_results = []
|
build_results = []
|
||||||
build_urls = []
|
build_urls = []
|
||||||
|
@ -17,6 +17,7 @@ CI_CONFIG = {
|
|||||||
"additional_pkgs": True,
|
"additional_pkgs": True,
|
||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "",
|
||||||
},
|
},
|
||||||
"coverity": {
|
"coverity": {
|
||||||
"compiler": "clang-16",
|
"compiler": "clang-16",
|
||||||
@ -26,6 +27,7 @@ CI_CONFIG = {
|
|||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
"official": False,
|
"official": False,
|
||||||
|
"comment": "A special build for coverity",
|
||||||
},
|
},
|
||||||
"package_aarch64": {
|
"package_aarch64": {
|
||||||
"compiler": "clang-16-aarch64",
|
"compiler": "clang-16-aarch64",
|
||||||
@ -36,6 +38,7 @@ CI_CONFIG = {
|
|||||||
"additional_pkgs": True,
|
"additional_pkgs": True,
|
||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "",
|
||||||
},
|
},
|
||||||
"package_asan": {
|
"package_asan": {
|
||||||
"compiler": "clang-16",
|
"compiler": "clang-16",
|
||||||
@ -44,6 +47,7 @@ CI_CONFIG = {
|
|||||||
"package_type": "deb",
|
"package_type": "deb",
|
||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "",
|
||||||
},
|
},
|
||||||
"package_ubsan": {
|
"package_ubsan": {
|
||||||
"compiler": "clang-16",
|
"compiler": "clang-16",
|
||||||
@ -52,6 +56,7 @@ CI_CONFIG = {
|
|||||||
"package_type": "deb",
|
"package_type": "deb",
|
||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "",
|
||||||
},
|
},
|
||||||
"package_tsan": {
|
"package_tsan": {
|
||||||
"compiler": "clang-16",
|
"compiler": "clang-16",
|
||||||
@ -60,6 +65,7 @@ CI_CONFIG = {
|
|||||||
"package_type": "deb",
|
"package_type": "deb",
|
||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "",
|
||||||
},
|
},
|
||||||
"package_msan": {
|
"package_msan": {
|
||||||
"compiler": "clang-16",
|
"compiler": "clang-16",
|
||||||
@ -68,6 +74,7 @@ CI_CONFIG = {
|
|||||||
"package_type": "deb",
|
"package_type": "deb",
|
||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "",
|
||||||
},
|
},
|
||||||
"package_debug": {
|
"package_debug": {
|
||||||
"compiler": "clang-16",
|
"compiler": "clang-16",
|
||||||
@ -76,6 +83,7 @@ CI_CONFIG = {
|
|||||||
"package_type": "deb",
|
"package_type": "deb",
|
||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "Note: sparse checkout was used",
|
||||||
},
|
},
|
||||||
"binary_release": {
|
"binary_release": {
|
||||||
"compiler": "clang-16",
|
"compiler": "clang-16",
|
||||||
@ -84,6 +92,7 @@ CI_CONFIG = {
|
|||||||
"package_type": "binary",
|
"package_type": "binary",
|
||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "",
|
||||||
},
|
},
|
||||||
"binary_tidy": {
|
"binary_tidy": {
|
||||||
"compiler": "clang-16",
|
"compiler": "clang-16",
|
||||||
@ -93,6 +102,7 @@ CI_CONFIG = {
|
|||||||
"static_binary_name": "debug-amd64",
|
"static_binary_name": "debug-amd64",
|
||||||
"tidy": "enable",
|
"tidy": "enable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "clang-tidy is used for static analysis",
|
||||||
},
|
},
|
||||||
"binary_darwin": {
|
"binary_darwin": {
|
||||||
"compiler": "clang-16-darwin",
|
"compiler": "clang-16-darwin",
|
||||||
@ -102,6 +112,7 @@ CI_CONFIG = {
|
|||||||
"static_binary_name": "macos",
|
"static_binary_name": "macos",
|
||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "",
|
||||||
},
|
},
|
||||||
"binary_aarch64": {
|
"binary_aarch64": {
|
||||||
"compiler": "clang-16-aarch64",
|
"compiler": "clang-16-aarch64",
|
||||||
@ -110,6 +121,7 @@ CI_CONFIG = {
|
|||||||
"package_type": "binary",
|
"package_type": "binary",
|
||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "",
|
||||||
},
|
},
|
||||||
"binary_aarch64_v80compat": {
|
"binary_aarch64_v80compat": {
|
||||||
"compiler": "clang-16-aarch64-v80compat",
|
"compiler": "clang-16-aarch64-v80compat",
|
||||||
@ -119,6 +131,7 @@ CI_CONFIG = {
|
|||||||
"static_binary_name": "aarch64v80compat",
|
"static_binary_name": "aarch64v80compat",
|
||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "For ARMv8.1 and older",
|
||||||
},
|
},
|
||||||
"binary_freebsd": {
|
"binary_freebsd": {
|
||||||
"compiler": "clang-16-freebsd",
|
"compiler": "clang-16-freebsd",
|
||||||
@ -128,6 +141,7 @@ CI_CONFIG = {
|
|||||||
"static_binary_name": "freebsd",
|
"static_binary_name": "freebsd",
|
||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "",
|
||||||
},
|
},
|
||||||
"binary_darwin_aarch64": {
|
"binary_darwin_aarch64": {
|
||||||
"compiler": "clang-16-darwin-aarch64",
|
"compiler": "clang-16-darwin-aarch64",
|
||||||
@ -137,6 +151,7 @@ CI_CONFIG = {
|
|||||||
"static_binary_name": "macos-aarch64",
|
"static_binary_name": "macos-aarch64",
|
||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "",
|
||||||
},
|
},
|
||||||
"binary_ppc64le": {
|
"binary_ppc64le": {
|
||||||
"compiler": "clang-16-ppc64le",
|
"compiler": "clang-16-ppc64le",
|
||||||
@ -146,6 +161,7 @@ CI_CONFIG = {
|
|||||||
"static_binary_name": "powerpc64le",
|
"static_binary_name": "powerpc64le",
|
||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "",
|
||||||
},
|
},
|
||||||
"binary_amd64_compat": {
|
"binary_amd64_compat": {
|
||||||
"compiler": "clang-16-amd64-compat",
|
"compiler": "clang-16-amd64-compat",
|
||||||
@ -155,6 +171,7 @@ CI_CONFIG = {
|
|||||||
"static_binary_name": "amd64compat",
|
"static_binary_name": "amd64compat",
|
||||||
"tidy": "disable",
|
"tidy": "disable",
|
||||||
"with_coverage": False,
|
"with_coverage": False,
|
||||||
|
"comment": "SSE2-only build",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"builds_report_config": {
|
"builds_report_config": {
|
||||||
|
@ -243,6 +243,7 @@ class BuildResult:
|
|||||||
sanitizer: str
|
sanitizer: str
|
||||||
status: str
|
status: str
|
||||||
elapsed_seconds: int
|
elapsed_seconds: int
|
||||||
|
comment: str
|
||||||
|
|
||||||
|
|
||||||
BuildResults = List[BuildResult]
|
BuildResults = List[BuildResult]
|
||||||
@ -452,6 +453,7 @@ tr:hover td {{filter: brightness(95%);}}
|
|||||||
<th>Build log</th>
|
<th>Build log</th>
|
||||||
<th>Build time</th>
|
<th>Build time</th>
|
||||||
<th class="artifacts">Artifacts</th>
|
<th class="artifacts">Artifacts</th>
|
||||||
|
<th>Comment</th>
|
||||||
</tr>
|
</tr>
|
||||||
{rows}
|
{rows}
|
||||||
</table>
|
</table>
|
||||||
@ -519,6 +521,8 @@ def create_build_html_report(
|
|||||||
links = links[: -len(link_separator)]
|
links = links[: -len(link_separator)]
|
||||||
row += f"<td>{links}</td>"
|
row += f"<td>{links}</td>"
|
||||||
|
|
||||||
|
row += f"<td>{build_result.comment}</td>"
|
||||||
|
|
||||||
row += "</tr>"
|
row += "</tr>"
|
||||||
rows += row
|
rows += row
|
||||||
return HTML_BASE_BUILD_TEMPLATE.format(
|
return HTML_BASE_BUILD_TEMPLATE.format(
|
||||||
|
Loading…
Reference in New Issue
Block a user