Skip to content
GitLab
Explore
Sign in
Register
Commits on Source (2)
reproducible: Also format the log size of the second build in HTML pages (eg. "12KB" vs "12345")
· 080d7ba3
Chris Lamb
authored
Aug 16, 2019
080d7ba3
Merge branch 'format-size-of-build2-log' of salsa.debian.org:lamby/jenkins.debian.net
· 6727f4a1
Mattia Rizzolo
authored
Aug 17, 2019
MR:
!39
Signed-off-by:
Mattia Rizzolo
<
mattia@debian.org
>
6727f4a1
Show whitespace changes
Inline
Side-by-side
bin/reproducible_html_packages.py
View file @
6727f4a1
...
...
@@ -182,7 +182,7 @@ def gen_suitearch_details(package, version, suite, arch, status, spokenstatus,
context
[
'
buildlogs
'
]
=
{}
if
build
.
build2
and
build
.
logdiff
:
context
[
'
buildlogs
'
][
'
build2_uri
'
]
=
build
.
build2
.
url
context
[
'
buildlogs
'
][
'
build2_size
'
]
=
build
.
build2
.
size
context
[
'
buildlogs
'
][
'
build2_size
'
]
=
sizeof_fmt
(
build
.
build2
.
size
)
context
[
'
buildlogs
'
][
'
diff_uri
'
]
=
build
.
logdiff
.
url
else
:
log
.
error
(
'
Either {} or {} is missing
'
.
format
(
...
...