Francois Gouget : testbot: Keep track of the revert processes and handle server restarts more gracefully .
Alexandre Julliard
julliard at winehq.org
Tue Mar 26 11:52:22 CDT 2013
Module: tools
Branch: master
Commit: 2ecbb72c59e04b0b079267db948b83581db2b1d0
URL: http://source.winehq.org/git/tools.git/?a=commit;h=2ecbb72c59e04b0b079267db948b83581db2b1d0
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Tue Mar 26 11:47:48 2013 +0100
testbot: Keep track of the revert processes and handle server restarts more gracefully.
On startup the WineTestBot server now:
* Detects tasks that are still running and lets them complete.
* Cleans up and requeues the running tasks that died.
* Lets VMs that are currently reverting complete their revert.
* Leaves the idle powered on VMs and those used by running tasks as it.
* Shuts down any other active VM and marks them as dirty.
This makes it possible to kill and restart a WineTestBot server without impacting the running tasks.
Also, should the server reboot unexpectedly, the tasks that were running will be restarted.
---
testbot/bin/Engine.pl | 149 +++++++++++++++++++++++++++++++-----
testbot/bin/RevertVM.pl | 2 +
testbot/ddl/update21.sql | 5 +
testbot/ddl/winetestbot.sql | 1 +
testbot/doc/winetestbot-schema.dia | 20 +++++
testbot/lib/WineTestBot/Jobs.pm | 25 ++++--
testbot/lib/WineTestBot/Steps.pm | 23 ++++--
testbot/lib/WineTestBot/Tasks.pm | 2 +
testbot/lib/WineTestBot/VMs.pm | 19 +++++
testbot/web/admin/VMDetails.pl | 9 ++
10 files changed, 221 insertions(+), 34 deletions(-)
Diff: http://source.winehq.org/git/tools.git/?a=commitdiff;h=2ecbb72c59e04b0b079267db948b83581db2b1d0
More information about the wine-cvs
mailing list