Module: tools
Branch: master
Commit: 626670bed80c5d98723702854112c2d6482f5751
URL: https://source.winehq.org/git/tools.git/?a=commit;h=626670bed80c5d987237028…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Tue May 3 19:40:12 2022 +0200
testbot/web: Colorize and link the JobDetails page's failure counts.
When there are a lot of tasks this makes it easier to identify and go
to those that have failures.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/web/JobDetails.pl | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/testbot/web/JobDetails.pl b/testbot/web/JobDetails.pl
index b0ef2a7..99c68bc 100644
--- a/testbot/web/JobDetails.pl
+++ b/testbot/web/JobDetails.pl
@@ -132,6 +132,13 @@ sub GenerateDataView($$$)
GenerateTipDateTime($StepTask->Ended, DurationToString($Duration));
return;
}
+ if ($PropertyName eq "TestFailures" and defined $StepTask->TestFailures)
+ {
+ my $class = $StepTask->TestFailures ? "testfail" : "success";
+ print "<a href='#k", $StepTask->GetKey(), "'><span class='$class'>",
+ $StepTask->TestFailures, "</span></a>";
+ return;
+ }
$self->SUPER::GenerateDataView($Row, $Col);
}
Module: tools
Branch: master
Commit: 66e2dde97105abd31f2e84cfe90b174986b7aded
URL: https://source.winehq.org/git/tools.git/?a=commit;h=66e2dde97105abd31f2e84c…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Tue May 3 19:38:21 2022 +0200
testbot/cgi: Improve the CollectionBlock::GetDetailsLink() documentation.
Specifically, better document the escaping situation.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/lib/ObjectModel/CGI/CollectionBlock.pm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/testbot/lib/ObjectModel/CGI/CollectionBlock.pm b/testbot/lib/ObjectModel/CGI/CollectionBlock.pm
index b2ebb2e..594ed56 100644
--- a/testbot/lib/ObjectModel/CGI/CollectionBlock.pm
+++ b/testbot/lib/ObjectModel/CGI/CollectionBlock.pm
@@ -200,6 +200,10 @@ sub GetSortedItems($$)
Returns the URL of the details page for the current row's object.
+If the URL contains parameters those must already be encoded (see uri_escape())
+but the returned URL as a whole may still need to be escaped for use in HTML
+documents (notably for the ampersands, see escapeHTML()).
+
See GenerateDataView() for details about the Row parameter.
=back