Module: tools
Branch: master
Commit: bcf62d46c35d3583617cc51797f070aaf915cb2c
URL: https://source.winehq.org/git/tools.git/?a=commit;h=bcf62d46c35d3583617cc51…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Fri Apr 2 03:27:11 2021 +0200
testbot/PatchUtils: Rework GetPatchImpacts() to fix patchset handling.
Rename the Tests set to Modules since it contains information about each
module impacted by the patch, including a full list of the still
existing and patched test units.
Better separate the build impacts from the test impacts: the former
impact the build of all following parts, while only the last part
impacts the tests that need to be run.
This stops the TestBot from running test units which were not impacted
by the _last part_ of the patchset.
Document the returned $Impacts structure.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/bin/WineRunBuild.pl | 6 +-
testbot/bin/build/WineTest.pl | 30 +--
testbot/lib/WineTestBot/PatchUtils.pm | 370 ++++++++++++++++++++--------------
testbot/lib/WineTestBot/Patches.pm | 15 +-
testbot/web/Submit.pl | 36 ++--
5 files changed, 266 insertions(+), 191 deletions(-)
Diff: https://source.winehq.org/git/tools.git/?a=commitdiff;h=bcf62d46c35d3583617…
Module: tools
Branch: master
Commit: 50ecc7020fc26c2117c3499c5e9256688ec7a933
URL: https://source.winehq.org/git/tools.git/?a=commit;h=50ecc7020fc26c2117c3499…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Thu Apr 1 15:52:34 2021 +0200
testbot/web: Fix Apache intermittently not finding CreatePatches().
If CreatePatches() is not refered to with its full name Apache (mod_perl
really) intermittently fails to find it and issues an error of the form:
Undefined subroutine &WineTestBot::Jobs::CreatePatches called at .../testbot/lib/ObjectModel/Item.pm line 275.
Strangely enough it never has trouble finding any of the other Create*()
functions.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/lib/WineTestBot/Jobs.pm | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/testbot/lib/WineTestBot/Jobs.pm b/testbot/lib/WineTestBot/Jobs.pm
index 5dbc1a7..a5ae135 100644
--- a/testbot/lib/WineTestBot/Jobs.pm
+++ b/testbot/lib/WineTestBot/Jobs.pm
@@ -454,7 +454,10 @@ my @PropertyDescriptors = (
CreateBasicPropertyDescriptor("Remarks", "Remarks", !1, !1, "A", 128),
CreateBasicPropertyDescriptor("Submitted", "Submitted", !1, !1, "DT", 19),
CreateBasicPropertyDescriptor("Ended", "Ended", !1, !1, "DT", 19),
- CreateItemrefPropertyDescriptor("Patch", "Submitted from patch", !1, !1, \&CreatePatches, ["PatchId"]),
+ # Somehow mod_perl sometimes fails to find CreatePatches() if not given the
+ # fully qualified name, but never has any trouble with the other Create*()
+ # functions.
+ CreateItemrefPropertyDescriptor("Patch", "Submitted from patch", !1, !1, \&WineTestBot::Patches::CreatePatches, ["PatchId"]),
CreateDetailrefPropertyDescriptor("Steps", "Steps", !1, !1, \&CreateSteps),
);
SetDetailrefKeyPrefix("Job", @PropertyDescriptors);