Module: tools
Branch: master
Commit: b7387722ec5c12b237b7a597d105e92e0465de6a
URL: https://source.winehq.org/git/tools.git/?a=commit;h=b7387722ec5c12b237b7a59…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Thu May 5 16:57:26 2022 +0200
winetest/build-patterns: Show failure counts <= 9 when over a pattern.
The failure count can help distinguish the failure counts when there are
many different values. But this makes the patterns more noisy so only
show them when hovering over the pattern.
Also each build result only gets one character so this is only possible
if the failure count is 9 or less.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
winetest/build-patterns | 4 ++++
winetest/patterns.js | 21 +++++++++++++++++++++
2 files changed, 25 insertions(+)
diff --git a/winetest/build-patterns b/winetest/build-patterns
index b6e5531..7acb153 100755
--- a/winetest/build-patterns
+++ b/winetest/build-patterns
@@ -975,6 +975,10 @@ sub get_status_html($$)
return @{$status2html{$status}} if ($status2html{$status});
+ if ($status =~ /^[1-9]$/)
+ {
+ return ("F", "F", "$status failures", "t", " fcount='$status' style='background-color: $failcolors->{$status}'");
+ }
if ($status =~ /^[0-9]+$/)
{
return ("F", "F", "$status failures", "t", " style='background-color: $failcolors->{$status}'");
diff --git a/winetest/patterns.js b/winetest/patterns.js
index 65e9cb8..4591903 100644
--- a/winetest/patterns.js
+++ b/winetest/patterns.js
@@ -170,6 +170,24 @@ function toggledReportCB(e)
refreshPage(changes);
}
+function showRangeCounts(e)
+{
+ const domtest = e.target.closest("div.testfile");
+ domtest.querySelectorAll(":scope [fcount]").forEach(frange => {
+ const fcount = frange.getAttribute("fcount");
+ frange.innerHTML = fcount.repeat(frange.innerHTML.length);
+ });
+}
+
+function hideRangeCounts(e)
+{
+ const domtest = e.target.closest("div.testfile");
+ domtest.querySelectorAll(":scope [fcount]").forEach(frange => {
+ const fcount = frange.getAttribute("fcount");
+ frange.innerHTML = "F".repeat(frange.innerHTML.length);
+ });
+}
+
function init()
{
hide_reruns = false; /* reruns are shown by default */
@@ -225,6 +243,9 @@ function init()
cb.patlines.push(patline);
test.patlines.push(patline);
if (cb.checked) test.linecount++;
+ const pattern = domline.querySelector("div.pattern");
+ pattern.addEventListener('mouseenter', showRangeCounts);
+ pattern.addEventListener('mouseleave', hideRangeCounts);
}
});
if (test.linecount < test.patlines.length)
Module: tools
Branch: master
Commit: 80005171b3d0b727d8dc2a394b3ab41d8152b29c
URL: https://source.winehq.org/git/tools.git/?a=commit;h=80005171b3d0b727d8dc2a3…
Author: Jeremy White <jwhite(a)codeweavers.com>
Date: Tue May 3 15:21:36 2022 -0500
Add a 100ms delay when sending patches.
The hope is that this will cause the timing of message
arrival to work out well for naive mail display programs,
such as the winehq patch tracker.
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
gitlab/gitlab-to-mail/gitlabtomail.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gitlab/gitlab-to-mail/gitlabtomail.py b/gitlab/gitlab-to-mail/gitlabtomail.py
index 15fa5dd..db74b5b 100755
--- a/gitlab/gitlab-to-mail/gitlabtomail.py
+++ b/gitlab/gitlab-to-mail/gitlabtomail.py
@@ -7,6 +7,7 @@ import re
import sys
import datetime
import dateutil.parser
+import time
import requests
import mailbox
import smtplib
@@ -615,6 +616,8 @@ def process_mr(mr, update_db):
send_email(cover)
if nr_patches <= settings.MAXIMUM_PATCHES:
for nr, mail in enumerate(patches):
+ # The hope is that a slight delay will allow receivers to order the patches correctly.
+ time.sleep(0.1)
fixup_patch(mail, iid, version, nr+1)
date = date + datetime.timedelta(seconds=1)
fixup_date(mail, date)