Module: tools
Branch: master
Commit: 98990095c322bda80a416744f76bc14f0bfdc31f
URL: https://source.winehq.org/git/tools.git/?a=commit;h=98990095c322bda80a41674…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Jan 29 12:54:23 2020 +0100
testbot: Lower the priority of long running mailing list jobs.
This helps get as many patches tested as possible when a patch
(series) requires full rebuilds and keeps the TestBot busy for a long
time.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/lib/WineTestBot/Patches.pm | 11 ++++++++---
testbot/web/Submit.pl | 2 +-
2 files changed, 9 insertions(+), 4 deletions(-)
diff --git a/testbot/lib/WineTestBot/Patches.pm b/testbot/lib/WineTestBot/Patches.pm
index d021f9c..ca8d57f 100644
--- a/testbot/lib/WineTestBot/Patches.pm
+++ b/testbot/lib/WineTestBot/Patches.pm
@@ -152,7 +152,8 @@ sub Submit($$$)
# Create a new job for this patch
my $Jobs = CreateJobs();
my $NewJob = $Jobs->Add();
- $NewJob->Priority(6);
+ my $Priority = 5;
+ $NewJob->Priority($Priority);
my $PropertyDescriptor = $Jobs->GetPropertyDescriptorByName("Remarks");
my $Subject = $self->Subject;
$Subject =~ s/\[PATCH[^\]]*]//i;
@@ -282,8 +283,11 @@ sub Submit($$$)
my $Task = $Tasks->Add();
$Task->VM($VM);
- $Task->Timeout(GetBuildTimeout($Impacts, $TaskMissions) +
- GetTestTimeout($Impacts, $TaskMissions));
+ my $Timeout = GetBuildTimeout($Impacts, $TaskMissions) +
+ GetTestTimeout($Impacts, $TaskMissions);
+ # Let short-running jobs run first
+ $Priority = 6 if ($Timeout >= $WineBuildTimeout);
+ $Task->Timeout($Timeout);
$Task->Missions($TaskMissions->{Statement});
}
}
@@ -320,6 +324,7 @@ sub Submit($$$)
# Switch Status to staging to indicate we are done setting up the job
$NewJob->Status("staging");
+ $NewJob->Priority($Priority);
($ErrKey, $ErrProperty, $ErrMessage) = $Jobs->Save();
if (defined $ErrMessage)
{
diff --git a/testbot/web/Submit.pl b/testbot/web/Submit.pl
index 1943b42..f76ca6e 100644
--- a/testbot/web/Submit.pl
+++ b/testbot/web/Submit.pl
@@ -1088,7 +1088,7 @@ sub _SubmitJob($$)
my $Jobs = CreateJobs();
my $NewJob = $Jobs->Add();
$NewJob->User($self->GetCurrentSession()->User);
- $NewJob->Priority(5);
+ $NewJob->Priority(4);
$NewJob->Remarks($self->{Remarks} || $self->{CmdLineArg} || "");
my $Branch = CreateBranches()->GetItem($self->{Branch});
$NewJob->Branch($Branch) if (defined $Branch);
Module: tools
Branch: master
Commit: e8596e5b7a7d9710e367dfa3952cfca99992cd77
URL: https://source.winehq.org/git/tools.git/?a=commit;h=e8596e5b7a7d9710e367dfa…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Jan 29 04:00:13 2020 +0100
testbot: Share code to access the latest reference WineTest reports.
Also take the latest WineTest reports snapshot when the corresponding
task completes rather than when the build task they depend on completes.
This way the snapshot is taken closest to when the reference reports are
needed.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/bin/UpdateTaskLogs | 12 ++---
testbot/bin/WineRunBuild.pl | 31 -----------
testbot/bin/WineRunTask.pl | 34 +++++-------
testbot/bin/WineRunWineTest.pl | 65 ++++------------------
testbot/lib/WineTestBot/LogUtils.pm | 104 +++++++++++++++++++++++++++++++++++-
testbot/lib/WineTestBot/Tasks.pm | 30 +++++++++++
6 files changed, 160 insertions(+), 116 deletions(-)
Diff: https://source.winehq.org/git/tools.git/?a=commitdiff;h=e8596e5b7a7d9710e36…
Module: tools
Branch: master
Commit: f8b184aac20305cab757b7b4682e2b39c4867761
URL: https://source.winehq.org/git/tools.git/?a=commit;h=f8b184aac20305cab757b7b…
Author: Francois Gouget <fgouget(a)codeweavers.com>
Date: Wed Jan 29 04:01:47 2020 +0100
testbot/UpdateTaskLogs: Delete reference reports that are not supposed to exist.
WineRunBuild used to take a snapshot of the reference logs for all the
other tasks even if the build failed. Thus there could be reference logs
even when the matching log does not exist.
This patch ensures that 'UpdateTaskLogs --delete' still finds and
deletes those.
Signed-off-by: Francois Gouget <fgouget(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/bin/UpdateTaskLogs | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
diff --git a/testbot/bin/UpdateTaskLogs b/testbot/bin/UpdateTaskLogs
index 5f858de..93b6504 100755
--- a/testbot/bin/UpdateTaskLogs
+++ b/testbot/bin/UpdateTaskLogs
@@ -256,11 +256,16 @@ sub ProcessTaskLogs($$$)
if (($OptDelete or $OptRebuild) and !$CollectOnly)
{
- # Save / delete the task's reference reports
- foreach my $ReportName (@{GetLogFileNames($TaskDir)})
+ # Save / delete the task's reference reports... all of them,
+ # even if they were not supposed to exist (e.g. failed builds).
+ my ($ErrMessage, $ReportNames, $_TaskMissions) = $Task->GetReportNames();
+ if ($ErrMessage)
+ {
+ Error "$ErrMessage\n";
+ $Rc = 1;
+ }
+ foreach my $ReportName (@$ReportNames)
{
- next if ($ReportName !~ /\.report$/);
-
my $RefReportName = $Task->GetRefReportName($ReportName);
my $RefReportPath = "$StepDir/$RefReportName";