[PATCH] testbot: Give a higher priority to wine VMs.

Francois Gouget fgouget at codeweavers.com
Fri Nov 22 08:54:18 CST 2019


They are needed for patches that don't impact the Windows tests and
thus are more likely to be needed next than Windows VMs.
The build VMs should still remain in the top spot because delaying
their tasks delays all the corresponding Windows tasks, which would
leave the TestBot partially idle.

Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/lib/WineTestBot/Engine/Scheduler.pm | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/testbot/lib/WineTestBot/Engine/Scheduler.pm b/testbot/lib/WineTestBot/Engine/Scheduler.pm
index b6a89984c..c28e14331 100644
--- a/testbot/lib/WineTestBot/Engine/Scheduler.pm
+++ b/testbot/lib/WineTestBot/Engine/Scheduler.pm
@@ -411,9 +411,9 @@ sub _CheckAndClassifyVMs()
          $VM->Role eq "winetest" ? 10 :
          20) + # extra
         ($VM->Type eq "build" ? 0 :
-         $VM->Type eq "win64" ? 1 :
-         $VM->Type eq "win32" ? 2 :
-         3); # wine
+         $VM->Type eq "wine"  ? 1 :
+         $VM->Type eq "win64" ? 2 :
+         3); # win32
   }
 
   # If a VM was in an inconsistent state, update the jobs status fields before
-- 
2.20.1



More information about the wine-devel mailing list