Changeset 217636 in webkit
- Timestamp:
- May 31, 2017 4:14:22 PM (7 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r217635 r217636 1 2017-05-31 Ryan Haddad <ryanhaddad@apple.com> 2 3 EWS bots should reboot themselves more frequently 4 https://bugs.webkit.org/show_bug.cgi?id=172402 5 6 Reviewed by Alexey Proskuryakov. 7 8 Instead of rebooting once a day, EWS bots will reboot after running 10 iterations. 9 10 * EWSTools/start-queue-mac.sh: Remove the restriction placed on the time that the bot will perform a reboot. 11 1 12 2017-05-31 Ryan Haddad <ryanhaddad@apple.com> 2 13 -
trunk/Tools/EWSTools/start-queue-mac.sh
r213974 r217636 53 53 fi 54 54 55 # We reboot every night between 1 and 6 to reduce the likelihood of unexpected reboots while people are looking into things. 56 TIME_TO_REBOOT=$(( $(date +%s) + 3600 * 12)) 55 # Delete log files older than 30 days, move aside the main $QUEUE_NAME-ews.log file to prevent it from growing extra large. 56 cd $LOGS_DIR 57 find . -mtime +30 -delete 58 if [ -s $QUEUE_NAME.log ]; then 59 filesize=$(stat -f%z "$QUEUE_NAME.log") # filesize in bytes. 60 if [ $filesize -ge 100000 ]; then 61 mv -f $QUEUE_NAME.log ${QUEUE_NAME}_$(date +%Y-%m-%d_%H-%m).log 62 fi 63 fi 64 cd $WEBKIT_HOME 57 65 58 while [ $TIME_TO_REBOOT -gt $(date +%s) ] || [ $(date +%H) -lt 1 ] || [ $(date +%H) -ge 6 ]; do 59 # Delete log files older than 30 days, move aside the main $QUEUE_NAME-ews.log file to prevent it from growing extra large. 60 cd $LOGS_DIR 61 find . -mtime +30 -delete 62 if [ -s $QUEUE_NAME.log ]; then 63 filesize=$(stat -f%z "$QUEUE_NAME.log") # filesize in bytes. 64 if [ $filesize -ge 100000 ]; then 65 mv -f $QUEUE_NAME.log ${QUEUE_NAME}_$(date +%Y-%m-%d_%H-%m).log 66 fi 67 fi 68 cd $WEBKIT_HOME 69 70 # Delete WebKitBuild to force a clean build 71 rm -rf $WEBKIT_HOME/WebKitBuild 72 73 # This somewhat quirky sequence of steps seems to clear up all the broken 74 # git situations we've gotten ourself into in the past. 75 git clean -f # Remove any left-over layout test results, added files, etc. 76 git rebase --abort # If we got killed during a git rebase, we need to clean up. 77 git fetch origin # Avoid updating the working copy to a stale revision. 78 git checkout origin/master -f 79 git branch -D master 80 git checkout origin/master -b master 66 # Delete WebKitBuild to force a clean build 67 rm -rf $WEBKIT_HOME/WebKitBuild 81 68 82 # Most queues auto-update as part of their normal operation, but updating 83 # here makes sure that we get the latest version of the master process. 84 ./Tools/Scripts/update-webkit 69 # This somewhat quirky sequence of steps seems to clear up all the broken 70 # git situations we've gotten ourself into in the past. 71 git clean -f # Remove any left-over layout test results, added files, etc. 72 git rebase --abort # If we got killed during a git rebase, we need to clean up. 73 git fetch origin # Avoid updating the working copy to a stale revision. 74 git checkout origin/master -f 75 git branch -D master 76 git checkout origin/master -b master 85 77 86 # test-webkitpy has code to remove orphaned .pyc files, so we 87 # run it before running webkit-patch to avoid stale .pyc files 88 # preventing webkit-patch from launching. 89 ./Tools/Scripts/test-webkitpy 78 # Most queues auto-update as part of their normal operation, but updating 79 # here makes sure that we get the latest version of the master process. 80 ./Tools/Scripts/update-webkit 90 81 91 # We use --exit-after-iteration to pick up any changes to webkit-patch, including 92 # changes to the contributors.json file. 93 ./Tools/Scripts/webkit-patch $QUEUE_NAME --bot-id=$BOT_ID --no-confirm --exit-after-iteration $RESET_AFTER_ITERATION $QUEUE_PARAMS 82 # test-webkitpy has code to remove orphaned .pyc files, so we 83 # run it before running webkit-patch to avoid stale .pyc files 84 # preventing webkit-patch from launching. 85 ./Tools/Scripts/test-webkitpy 94 86 95 done 87 # We use --exit-after-iteration to pick up any changes to webkit-patch, including 88 # changes to the contributors.json file. 89 ./Tools/Scripts/webkit-patch $QUEUE_NAME --bot-id=$BOT_ID --no-confirm --exit-after-iteration $RESET_AFTER_ITERATION $QUEUE_PARAMS 96 90 97 91 osascript -e 'tell app "System Events" to restart'
Note: See TracChangeset
for help on using the changeset viewer.