Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # | 2 # |
| 3 # Runs all steps in vm_setup_slave.sh, calls run_multipage_benchmarks and copies | 3 # Runs all steps in vm_setup_slave.sh, calls run_multipage_benchmarks and copies |
| 4 # the output (if any) to Google Storage. | 4 # the output (if any) to Google Storage. |
| 5 # | 5 # |
| 6 # The script should be run from the skia-telemetry-slave GCE instance's | 6 # The script should be run from the skia-telemetry-slave GCE instance's |
| 7 # /home/default/skia-repo/buildbot/compute_engine_scripts/telemetry/telemetry_sl ave_scripts | 7 # /home/default/skia-repo/buildbot/compute_engine_scripts/telemetry/telemetry_sl ave_scripts |
| 8 # directory. | 8 # directory. |
| 9 # | 9 # |
| 10 # Copyright 2013 Google Inc. All Rights Reserved. | 10 # Copyright 2013 Google Inc. All Rights Reserved. |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 140 mv $LARGEST_SKP /home/default/storage/skps/$PAGESETS_TYPE/$CHROMIUM_BUILD_DI R/$SKP.skp | 140 mv $LARGEST_SKP /home/default/storage/skps/$PAGESETS_TYPE/$CHROMIUM_BUILD_DI R/$SKP.skp |
| 141 done | 141 done |
| 142 | 142 |
| 143 # Leave only SKP files in the skps directory. | 143 # Leave only SKP files in the skps directory. |
| 144 rm -rf /home/default/storage/skps/$PAGESETS_TYPE/$CHROMIUM_BUILD_DIR/*/ | 144 rm -rf /home/default/storage/skps/$PAGESETS_TYPE/$CHROMIUM_BUILD_DIR/*/ |
| 145 | 145 |
| 146 # Delete all SKP files less than 10K (they will be the ones with errors). | 146 # Delete all SKP files less than 10K (they will be the ones with errors). |
| 147 find . -type f -size -10k | 147 find . -type f -size -10k |
| 148 find . -type f -size -10k -exec rm {} \; | 148 find . -type f -size -10k -exec rm {} \; |
| 149 | 149 |
| 150 # Remove invalid SKPs found using the skpinfo binary. | |
| 151 # Sync trunk and build tools. | |
| 152 cd /home/default/skia-repo/trunk | |
| 153 for i in {1..3}; do /home/default/depot_tools/gclient sync && break || sleep 2 ; done | |
|
borenet
2014/03/14 16:22:58
Why do we need to retry this? Is there a need to
rmistry
2014/03/14 16:29:39
Discussed this in person: Retrying this because of
| |
| 154 make clean | |
| 155 GYP_DEFINES="skia_warnings_as_errors=0" make tools BUILDTYPE=Release | |
| 156 echo "=====Calling remove_invalid_skps.py=====" | |
| 157 cd /home/default/skia-repo/buildbot/compute_engine_scripts/telemetry/telemetry _slave_scripts | |
| 158 python remove_invalid_skps.py --skp_dir=/home/default/storage/skps/$PAGESETS_T YPE/$CHROMIUM_BUILD_DIR/ --path_to_skpinfo=/home/default/skia-repo/trunk/out/Rel ease/skpinfo | |
| 159 | |
| 150 # Now copy the SKP files to Google Storage. | 160 # Now copy the SKP files to Google Storage. |
| 151 gsutil cp /home/default/storage/skps/$PAGESETS_TYPE/$CHROMIUM_BUILD_DIR/* \ | 161 gsutil cp /home/default/storage/skps/$PAGESETS_TYPE/$CHROMIUM_BUILD_DIR/* \ |
| 152 gs://chromium-skia-gm/telemetry/skps/slave$SLAVE_NUM/$PAGESETS_TYPE/$CHROMIU M_BUILD_DIR/ | 162 gs://chromium-skia-gm/telemetry/skps/slave$SLAVE_NUM/$PAGESETS_TYPE/$CHROMIU M_BUILD_DIR/ |
| 153 # Set ACLs for only google.com accounts to read the SKPs. | 163 # Set ACLs for only google.com accounts to read the SKPs. |
| 154 gsutil acl ch -g google.com:READ gs://chromium-skia-gm/telemetry/skps/slave$SL AVE_NUM/$PAGESETS_TYPE/$CHROMIUM_BUILD_DIR/* | 164 gsutil acl ch -g google.com:READ gs://chromium-skia-gm/telemetry/skps/slave$SL AVE_NUM/$PAGESETS_TYPE/$CHROMIUM_BUILD_DIR/* |
| 155 | 165 |
| 156 # Create a TIMESTAMP file and copy it to Google Storage. | 166 # Create a TIMESTAMP file and copy it to Google Storage. |
| 157 TIMESTAMP=`date +%s` | 167 TIMESTAMP=`date +%s` |
| 158 echo $TIMESTAMP > /tmp/$TIMESTAMP | 168 echo $TIMESTAMP > /tmp/$TIMESTAMP |
| 159 cp /tmp/$TIMESTAMP /home/default/storage/skps/$PAGESETS_TYPE/$CHROMIUM_BUILD_D IR/TIMESTAMP | 169 cp /tmp/$TIMESTAMP /home/default/storage/skps/$PAGESETS_TYPE/$CHROMIUM_BUILD_D IR/TIMESTAMP |
| 160 gsutil cp /tmp/$TIMESTAMP gs://chromium-skia-gm/telemetry/skps/slave$SLAVE_NUM /$PAGESETS_TYPE/$CHROMIUM_BUILD_DIR/TIMESTAMP | 170 gsutil cp /tmp/$TIMESTAMP gs://chromium-skia-gm/telemetry/skps/slave$SLAVE_NUM /$PAGESETS_TYPE/$CHROMIUM_BUILD_DIR/TIMESTAMP |
| 161 rm /tmp/$TIMESTAMP | 171 rm /tmp/$TIMESTAMP |
| 162 fi | 172 fi |
| 163 | 173 |
| 164 # Clean up logs and the worker file. | 174 # Clean up logs and the worker file. |
| 165 rm -rf ${OUTPUT_DIR}* | 175 rm -rf ${OUTPUT_DIR}* |
| 166 delete_worker_file TELEMETRY_${RUN_ID} | 176 delete_worker_file TELEMETRY_${RUN_ID} |
| OLD | NEW |