aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDan Willemsen <dwillemsen@google.com>2018-05-17 16:37:09 -0700
committerDan Willemsen <dwillemsen@google.com>2018-07-12 14:15:31 -0700
commitb82471ad6dfec4790b2d86e49525dadc3fc06416 (patch)
treebca7e73da63c7506bbc3c967468034a351aaad94 /scripts
parent5e48b1d183a8333528f529c7e677c4ab644f8caf (diff)
downloadbuild_soong-b82471ad6dfec4790b2d86e49525dadc3fc06416.tar.gz
build_soong-b82471ad6dfec4790b2d86e49525dadc3fc06416.tar.bz2
build_soong-b82471ad6dfec4790b2d86e49525dadc3fc06416.zip
Add a unified status reporting UI
This adds a new status package that merges the running of "actions" (ninja calls them edges) of multiple tools into one view of the current state, and gives that to a number of different outputs. For inputs: Kati's output parser has been rewritten (and moved) to map onto the StartAction/FinishAction API. A byproduct of this is that the build servers should be able to extract errors from Kati better, since they look like the errors that Ninja used to write. Ninja is no longer directly connected to the terminal, but its output is read via the protobuf frontend API, so it's just another tool whose output becomes merged together. multiproduct_kati loses its custom status routines, and uses the common one instead. For outputs: The primary output is the ui/terminal.Status type, which along with ui/terminal.Writer now controls everything about the terminal output. Today, this doesn't really change any behaviors, but having all terminal output going through here allows a more complicated (multi-line / full window) status display in the future. The tracer acts as an output of the status package, tracing all the action start / finish events. This replaces reading the .ninja_log file, so it now properly handles multiple output files from a single action. A new rotated log file (out/error.log, or out/dist/logs/error.log) just contains a description of all of the errors that happened during the current build. Another new compressed and rotated log file (out/verbose.log.gz, or out/dist/logs/verbose.log.gz) contains the full verbose (showcommands) log of every execution run by the build. Since this is now written on every build, the showcommands argument is now ignored -- if you want to get the commands run, look at the log file after the build. Test: m Test: <built-in tests> Test: NINJA_ARGS="-t list" m Test: check the build.trace.gz Test: check the new log files Change-Id: If1d8994890d43ef68f65aa10ddd8e6e06dc7013a
Diffstat (limited to 'scripts')
-rw-r--r--scripts/microfactory.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/microfactory.bash b/scripts/microfactory.bash
index 65ba55d9..4bb6058a 100644
--- a/scripts/microfactory.bash
+++ b/scripts/microfactory.bash
@@ -59,7 +59,7 @@ function soong_build_go
BUILDDIR=$(getoutdir) \
SRCDIR=${TOP} \
BLUEPRINTDIR=${TOP}/build/blueprint \
- EXTRA_ARGS="-pkg-path android/soong=${TOP}/build/soong" \
+ EXTRA_ARGS="-pkg-path android/soong=${TOP}/build/soong -pkg-path github.com/golang/protobuf=${TOP}/external/golang-protobuf" \
build_go $@
}