Skip to content

Commit 87c1c6e

Browse files
Test fix for Win EWS bots, catch various errors and restart script if necessary.
* EWSTools/start-queue-win.sh: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@146376 268f45cc-cd09-0410-ab3c-d52691b4dbfc
1 parent 97ae3fd commit 87c1c6e

File tree

2 files changed

+52
-33
lines changed

2 files changed

+52
-33
lines changed

Tools/ChangeLog

+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2013-03-20 Roger Fong <[email protected]>
2+
3+
Test fix for Win EWS bots, catch various errors and restart script if necessary.
4+
5+
* EWSTools/start-queue-win.sh:
6+
17
2013-03-20 Sami Kyostila <[email protected]>
28

39
Unreviewed, add myself to committers.py.

Tools/EWSTools/start-queue-win.sh

+46-33
Original file line numberDiff line numberDiff line change
@@ -2,36 +2,49 @@
22
export WEBKIT_BUGZILLA_USERNAME=$1
33
export WEBKIT_BUGZILLA_PASSWORD=$2
44
export BOT_ID=$3
5-
while :
6-
do
7-
date
8-
echo "TASK: cleaning up old log files."
9-
cd ~/win-ews-logs
10-
rm -rf win-ews.old
11-
mv win-ews.log win-ews.old
12-
find ~/win-ews-logs -mtime +7 -exec rm -f {} \;
13-
echo "TASK: Starting up"
14-
cd ~/WebKit
15-
echo "TASK: Cleaning WebKitBuild"
16-
rm -rf WebKitBuild
17-
date
18-
echo "TASK: Cleaning up"
19-
svn cleanup
20-
date
21-
echo "TASK: svn revert -R *"
22-
svn revert -R *
23-
date
24-
echo "TASK: svn status"
25-
svn status | grep "?" | awk '{print $2}' | xargs rm -rf
26-
date
27-
echo "TASK: webkit-patch clean"
28-
~/WebKit/Tools/Scripts/webkit-patch clean
29-
date
30-
echo "TASK: svn up --non-interactive"
31-
svn up --non-interactive
32-
date
33-
echo "TASK: kill orphaned tasks"
34-
taskkill.exe /f /im cl.exe
35-
echo "TASK: webkit-patch win-ews"
36-
~/WebKit/Tools/Scripts/webkit-patch win-ews --bot-id=$BOT_ID --no-confirm --exit-after-iteration 10
37-
done
5+
6+
function error_handler()
7+
{
8+
start_ews
9+
}
10+
11+
function start_ews()
12+
{
13+
trap 'error_handler ${LINENO} $?' ERR
14+
15+
while :
16+
do
17+
date
18+
echo "TASK: cleaning up old log files."
19+
cd ~/win-ews-logs
20+
rm -rf win-ews.old
21+
mv win-ews.log win-ews.old
22+
find ~/win-ews-logs -mtime +7 -exec rm -f {} \;
23+
echo "TASK: Starting up"
24+
cd ~/WebKit
25+
echo "TASK: Cleaning WebKitBuild"
26+
rm -rf WebKitBuild
27+
date
28+
echo "TASK: Cleaning up"
29+
svn cleanup
30+
date
31+
echo "TASK: svn revert -R *"
32+
svn revert -R *
33+
date
34+
echo "TASK: svn status"
35+
svn status | grep "?" | awk '{print $2}' | xargs rm -rf
36+
date
37+
echo "TASK: webkit-patch clean"
38+
~/WebKit/Tools/Scripts/webkit-patch clean
39+
date
40+
echo "TASK: svn up --non-interactive"
41+
svn up --non-interactive
42+
date
43+
echo "TASK: kill orphaned tasks"
44+
taskkill.exe /f /im cl.exe
45+
echo "TASK: webkit-patch win-ews"
46+
~/WebKit/Tools/Scripts/webkit-patch win-ews --bot-id=$BOT_ID --no-confirm --exit-after-iteration 10
47+
done
48+
}
49+
50+
start_ews

0 commit comments

Comments
 (0)