Title: [173671] trunk/Tools
- Revision
- 173671
- Author
- [email protected]
- Date
- 2014-09-16 15:14:42 -0700 (Tue, 16 Sep 2014)
Log Message
Mac queue slaves should reboot every so often
https://bugs.webkit.org/show_bug.cgi?id=136791
Reviewed by Alexey Proskuryakov.
Reboot Mac queue slaves every night between 1 A.M. and 6 A.M.
* EWSTools/start-queue-mac.sh:
Modified Paths
Diff
Modified: trunk/Tools/ChangeLog (173670 => 173671)
--- trunk/Tools/ChangeLog 2014-09-16 21:00:53 UTC (rev 173670)
+++ trunk/Tools/ChangeLog 2014-09-16 22:14:42 UTC (rev 173671)
@@ -1,3 +1,14 @@
+2014-09-12 Ryosuke Niwa <[email protected]>
+
+ Mac queue slaves should reboot every so often
+ https://bugs.webkit.org/show_bug.cgi?id=136791
+
+ Reviewed by Alexey Proskuryakov.
+
+ Reboot Mac queue slaves every night between 1 A.M. and 6 A.M.
+
+ * EWSTools/start-queue-mac.sh:
+
2014-09-16 Csaba Osztrogonác <[email protected]>
Unreviewed gardening, skip one more tests on Windows.
Modified: trunk/Tools/EWSTools/start-queue-mac.sh (173670 => 173671)
--- trunk/Tools/EWSTools/start-queue-mac.sh 2014-09-16 21:00:53 UTC (rev 173670)
+++ trunk/Tools/EWSTools/start-queue-mac.sh 2014-09-16 22:14:42 UTC (rev 173671)
@@ -38,8 +38,10 @@
shift 3
QUEUE_PARAMS="$@"
-while :
-do
+# We reboot every night between 1 and 6 to reduce the likelihood of unexpected reboots while people are looking into things.
+TIME_TO_REBOOT=$(( $(date +%s) + 3600 * 12))
+
+while [ $TIME_TO_REBOOT -gt $(date +%s) ] || [ $(date +%H) -lt 1 ] || [ $(date +%H) -ge 6 ]; do
# Delete log files older than 14 days, move aside the main mac-ews.log file to prevent it from growing extra large.
cd /Volumes/Data/EWS/$QUEUE_NAME-logs
find . -mtime +14 -delete
@@ -71,4 +73,7 @@
# We use --exit-after-iteration to pick up any changes to webkit-patch, including
# changes to the contributors.json file.
./Tools/Scripts/webkit-patch $QUEUE_NAME --bot-id=$BOT_ID --no-confirm --exit-after-iteration $RESET_AFTER_ITERATION $QUEUE_PARAMS
+
done
+
+osascript -e 'tell app "System Events" to restart'
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes