[151769] contrib/mp-buildbot

mojca at macports.org mojca at macports.org
Sun Aug 21 14:21:40 PDT 2016


Revision: 151769
          https://trac.macports.org/changeset/151769
Author:   mojca at macports.org
Date:     2016-08-21 14:21:40 -0700 (Sun, 21 Aug 2016)
Log Message:
-----------
mp-buildbot: list maintainers of failed builds in the log

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

Modified: contrib/mp-buildbot/mpbb-install-dependencies
===================================================================
--- contrib/mp-buildbot/mpbb-install-dependencies	2016-08-21 21:05:54 UTC (rev 151768)
+++ contrib/mp-buildbot/mpbb-install-dependencies	2016-08-21 21:21:40 UTC (rev 151769)
@@ -9,6 +9,12 @@
     echo "Build and install all dependencies of port --port."
 }
 
+get-maintainers() {
+    ${option_prefix}/bin/port info --index --maintainers --line $1 | tr ',' '\n' | sort | uniq | tr '\n' ',' | \
+        awk '{gsub(/(open|no)maintainer(@macports.org)?,/, ""); print}' | \
+        tr '$' '\n' | sed 's/,$//' | tr '@' ';'
+}
+
 install-dependencies() {
     local dependencies
     local dependencies_count
@@ -33,7 +39,7 @@
     dependencies=$("${option_prefix}/bin/port-tclsh" "${thisdir}/tools/dependencies.tcl" "${option_port}" "${option_variants}")
     if [ $? -ne 0 ]; then
         echo "Calculating dependencies for '${option_port}' failed, aborting." >&2
-        echo "Building '${option_port}' ... [ERROR] (failed to calculate dependencies)" >> "$log_subports_progress"
+        echo "Building '${option_port}' ... [ERROR] (failed to calculate dependencies) maintainers: $(get-maintainers "${option_port}")." >> "$log_subports_progress"
         return 1
     fi
 
@@ -63,7 +69,7 @@
         if ! "${option_prefix}/bin/port" -d install --unrequested "$depname" $depvariants ${option_variants}; then
             echo "Build of dependency '${depname}' failed, aborting." >&2
             echo "[FAIL]" >> "$log_status_dependencies"
-            echo "Building '${option_port}' ... [ERROR] (failed to install dependency '${depname}')" >> "$log_subports_progress"
+            echo "Building '${option_port}' ... [ERROR] (failed to install dependency '${depname}') maintainers: $(get-maintainers "${option_port} ${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-21 21:05:54 UTC (rev 151768)
+++ contrib/mp-buildbot/mpbb-install-port	2016-08-21 21:21:40 UTC (rev 151769)
@@ -9,6 +9,12 @@
     echo "Build and install the port --port itself."
 }
 
+get-maintainers() {
+    ${option_prefix}/bin/port info --index --maintainers --line $1 | tr ',' '\n' | sort | uniq | tr '\n' ',' | \
+        awk '{gsub(/(open|no)maintainer(@macports.org)?,/, ""); print}' | \
+        tr '$' '\n' | sed 's/,$//' | tr '@' ';'
+}
+
 install-port() {
     # $option_logdir is set in mpbb
     # shellcheck disable=SC2154
@@ -35,7 +41,7 @@
     if ! "${option_prefix}/bin/port" -dk install "${option_port}" ${option_variants}; then
         echo "Build of '${option_port}' failed."
         # log: summary for the portwatcher
-        echo "Building '${option_port}' ... [ERROR]" >> "$log_subports_progress"
+        echo "Building '${option_port}' ... [ERROR] maintainers: $(get-maintainers "${option_port}")." >> "$log_subports_progress"
         return 1
     fi
     time_stop=$(date +%s)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160821/ec2afa7e/attachment.html>


More information about the macports-changes mailing list