Collect cargo build timings

This commit is contained in:
Kirill Bulatov
2022-09-05 11:18:22 +03:00
committed by Kirill Bulatov
parent 31ec3b7906
commit 923f642549
5 changed files with 39 additions and 16 deletions

View File

@@ -155,7 +155,7 @@ def get_scale_for_db(size_mb: int) -> int:
ATTACHMENT_NAME_REGEX = re.compile(
r".+\.log|.+\.stderr|.+\.stdout|.+\.filediff|.+\.metrics|flamegraph\.svg|regression\.diffs"
r".+\.log|.+\.stderr|.+\.stdout|.+\.filediff|.+\.metrics|flamegraph\.svg|regression\.diffs|.+\.html"
)
@@ -180,6 +180,9 @@ def allure_attach_from_dir(dir: Path):
elif source.endswith(".svg"):
attachment_type = "image/svg+xml"
extension = "svg"
elif source.endswith(".html"):
attachment_type = "text/html"
extension = "html"
else:
attachment_type = "text/plain"
extension = attachment.suffix.removeprefix(".")