Bug 1392262 - [update verification] verify.sh: Print out what locale failed r=nthomas
authorJohan Lorenzo <jlorenzo@mozilla.com>
Mon, 21 Aug 2017 15:42:13 +0200
changeset 8026 366a7b278252cf7497e34fd79e3294da610b2db5
parent 8025 1a2561c06194d6c3473e2d91088db33f9f996e89
child 8027 fcd429270616d7d5a9273170dac13788ae0365c5
child 8028 882dcb9b8840677abcf2e84d3f30fa1d3007bcdf
push id234
push userbmo:jlorenzo@mozilla.com
push dateWed, 23 Aug 2017 06:48:43 +0000
reviewersnthomas
bugs1392262
Bug 1392262 - [update verification] verify.sh: Print out what locale failed r=nthomas MozReview-Commit-ID: 7OplUxzXwUo
release/updates/verify.sh
--- a/release/updates/verify.sh
+++ b/release/updates/verify.sh
@@ -128,17 +128,17 @@ do
             "${to_build_id}" "${to_app_version}" "${to_display_version}"
           err=$?
         else
           download_mars "${aus_server}/update/3/$product/$release/$build_id/$platform/$locale/$channel/default/default/default/update.xml?force=1" $patch_type 0 \
             "${to_build_id}" "${to_app_version}" "${to_display_version}"
           err=$?
         fi
         if [ "$err" != "0" ]; then
-          echo "FAIL: download_mars returned non-zero exit code: $err"
+          echo "FAIL: [$release $locale $patch_type] download_mars returned non-zero exit code: $err"
           continue
         fi
       else
         update_path="$product/$release/$build_id/$platform/$locale/$channel/default/default/default"
         mkdir -p updates/$update_path/complete
         mkdir -p updates/$update_path/partial
         $retry wget --no-check-certificate -q -O $patch_type updates/$update_path/$patch_type/update.xml "${aus_server}/update/3/$update_path/update.xml?force=1"
 
@@ -149,41 +149,41 @@ do
         then
           continue
         fi
         from_path=`echo $from | sed "s/%locale%/${locale}/"`
         to_path=`echo $to | sed "s/%locale%/${locale}/"`
         download_builds "${ftp_server_from}${from_path}" "${ftp_server_to}${to_path}"
         err=$?
         if [ "$err" != "0" ]; then
-          echo "FAIL: download_builds returned non-zero exit code: $err"
+          echo "FAIL: [$release $locale $patch_type] download_builds returned non-zero exit code: $err"
           continue
         fi
         source_file=`basename "$from_path"`
         target_file=`basename "$to_path"`
         check_updates "$platform" "downloads/$source_file" "downloads/$target_file" $locale $use_old_updater $mar_channel_IDs
         err=$?
         if [ "$err" == "0" ]; then
           continue
         elif [ "$err" == "1" ]; then
-          echo "FAIL: check_updates returned failure for $platform downloads/$source_file vs. downloads/$target_file: $err"
+          echo "FAIL: [$release $locale $patch_type] check_updates returned failure for $platform downloads/$source_file vs. downloads/$target_file: $err"
         elif [ "$err" == "2" ]; then
-          echo "WARN: check_updates returned warning for $platform downloads/$source_file vs. downloads/$target_file: $err"
+          echo "WARN: [$release $locale $patch_type] check_updates returned warning for $platform downloads/$source_file vs. downloads/$target_file: $err"
         else
-          echo "FAIL: check_updates returned unknown error for $platform downloads/$source_file vs. downloads/$target_file: $err"
+          echo "FAIL: [$release $locale $patch_type] check_updates returned unknown error for $platform downloads/$source_file vs. downloads/$target_file: $err"
         fi
       fi
     done
     if [ -f update/partial.size ] && [ -f update/complete.size ]; then
         partial_size=`cat update/partial.size`
         complete_size=`cat update/complete.size`
         if [ $partial_size -gt $complete_size ]; then
-            echo "FAIL: partial updates are larger than complete updates"
+            echo "FAIL: [$release $locale $patch_type] partial updates are larger than complete updates"
         elif [ $partial_size -eq $complete_size ]; then
-            echo "WARN: partial updates are the same size as complete updates, this should only happen for major updates"
+            echo "WARN: [$release $locale $patch_type] partial updates are the same size as complete updates, this should only happen for major updates"
         else
-            echo "SUCCESS: partial updates are smaller than complete updates, all is well in the universe"
+            echo "SUCCESS: [$release $locale $patch_type] partial updates are smaller than complete updates, all is well in the universe"
         fi
     fi
   done
 done < $config_file
 
 clear_cache