[151656] contrib/mp-buildbot

mojca at macports.org mojca at macports.org
Fri Aug 19 05:55:32 PDT 2016


Revision: 151656
          https://trac.macports.org/changeset/151656
Author:   mojca at macports.org
Date:     2016-08-19 05:55:32 -0700 (Fri, 19 Aug 2016)
Log Message:
-----------
mp-buildbot: changes in logs for ports-progress.txt (don't list subports, fix error reports)

Modified Paths:
--------------
    contrib/mp-buildbot/mpbb-install-dependencies
    contrib/mp-buildbot/mpbb-install-port
    contrib/mp-buildbot/mpbb-list-subports

Modified: contrib/mp-buildbot/mpbb-install-dependencies
===================================================================
--- contrib/mp-buildbot/mpbb-install-dependencies	2016-08-19 12:42:27 UTC (rev 151655)
+++ contrib/mp-buildbot/mpbb-install-dependencies	2016-08-19 12:55:32 UTC (rev 151656)
@@ -33,7 +33,7 @@
     dependencies=$("${option_prefix}/bin/port-tclsh" "${thisdir}/tools/dependencies.tcl" "${option_port}")
     if [ $? -ne 0 ]; then
         echo "Calculating dependencies for '${option_port}' failed, aborting." >&2
-        echo "[FAIL dependencies]" >> "$log_subports_progress"
+        echo "Building '${option_port}' ... [ERROR] (failed to calculate dependencies)" >> "$log_subports_progress"
         return 1
     fi
 
@@ -63,7 +63,7 @@
         if ! "${option_prefix}/bin/port" -d install --unrequested "$depname" $depvariants; then
             echo "Build of dependency '${depname}' failed, aborting." >&2
             echo "[FAIL]" >> "$log_status_dependencies"
-            echo "[FAIL dependency '${depname}']" >> "$log_subports_progress"
+            echo "Building '${option_port}' ... [ERROR] (failed to install dependency '${depname}')" >> "$log_subports_progress"
             return 1
         else
             echo "[OK]" >> "$log_status_dependencies"

Modified: contrib/mp-buildbot/mpbb-install-port
===================================================================
--- contrib/mp-buildbot/mpbb-install-port	2016-08-19 12:42:27 UTC (rev 151655)
+++ contrib/mp-buildbot/mpbb-install-port	2016-08-19 12:55:32 UTC (rev 151656)
@@ -27,9 +27,6 @@
     #> "$log_port_contents"
     > "$log_port_stats"
 
-    # log: summary for the portwatcher
-    echo -n "- Installing ${option_port} ... " >> "$log_subports_progress"
-
     local time_start
     local time_stop
     time_start=$(date +%s)
@@ -37,12 +34,14 @@
     # shellcheck disable=SC2154
     if ! "${option_prefix}/bin/port" -dk install "${option_port}"; then
         echo "Build of '${option_port}' failed."
-        echo "[FAIL]" >> "$log_subports_progress"
+        # log: summary for the portwatcher
+        echo "Building '${option_port}' ... [ERROR]" >> "$log_subports_progress"
         return 1
     fi
     time_stop=$(date +%s)
 
-    echo "[OK]" >> "$log_subports_progress"
+    # log: summary for the portwatcher
+    echo "Building '${option_port}' ... [OK]" >> "$log_subports_progress"
 
     # log: contents
     "${option_prefix}/bin/port" -q contents "${option_port}" > "$log_port_contents"

Modified: contrib/mp-buildbot/mpbb-list-subports
===================================================================
--- contrib/mp-buildbot/mpbb-list-subports	2016-08-19 12:42:27 UTC (rev 151655)
+++ contrib/mp-buildbot/mpbb-list-subports	2016-08-19 12:55:32 UTC (rev 151656)
@@ -20,7 +20,6 @@
     local reason
     # $option_logdir is set in mpbb
     # shellcheck disable=SC2154
-    local log_subports_progress="${option_logdir}/ports-progress.txt"
 
     os_version="$(sw_vers -productVersion | cut -d . -f 1-2)"
     is_64bit_capable="$(sysctl -n hw.cpu64bit_capable)"
@@ -55,17 +54,13 @@
 
         if [ $exclude -eq 0 ]; then
             echo "$port"
-            echo "- $port: added" >> "$log_subports_progress"
         else
             if [ ${#exclude_reasons[@]} -eq 1 ]; then
                 echo >&2 "Excluding '${port}' because ${exclude_reasons[0]}."
-                echo "- $port: SKIPPED because ${exclude_reasons[0]}" >> "$log_subports_progress"
             else
                 echo >&2 "Excluding '${port}' for the following reasons:"
-                echo "- $port: SKIPPED for the following reasons" >> "$log_subports_progress"
                 for reason in "${exclude_reasons[@]}"; do
                     echo >&2 " - ${reason}"
-                    echo "  - ${reason}" >> "$log_subports_progress"
                 done
             fi
         fi
@@ -84,7 +79,7 @@
 
     # prepare the log file and make sure to start with an empty one
     mkdir -p "$option_logdir"
-    echo "== Adding subports ==" > "$log_subports_progress"
+    > "$log_subports_progress"
 
     if [ -n "${option_port}" ]; then
         print-subports "${option_port}" && success=1
@@ -98,6 +93,4 @@
         errmsg "None of the specified ports were found in the port index."
         return 1
     fi
-
-    echo "== Building subports ==" >> "$log_subports_progress"
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160819/ca01c877/attachment.html>


More information about the macports-changes mailing list