platform_build_soong/ui/status
Spandan Das 0506361a60 Add errorHints to stdout when read-only file system errors are detected
The source tree will eventually be made ReadOnly, and recipes that write
directly to the source tree will fail. Use a pattern-match approach on
the results of stdout/stderr to provide hints to the user in such a
scenario.

If multiple patterns are found in raw output, print error hint
corresponding to first pattern match. first pattern match is chosen
since the failing function will be at the top of the stack, and hence
will be logged first

Test: Wrote a unit test to assert errorhint is added to output.
Wrote an integration test that writes to a file in the source tree
1. When source_tree is RO, the recipe fails and an error hint is printed
to stdout
2. When source tree is RW, the recipe succeeds and no error hint is
printed

Bug: 174726238
Change-Id: Id67b48f8094cdf8a571c239ae469d60464a1e89c
2021-06-29 00:20:21 +00:00
..
build_error_proto Soong: Add build_error proto raw file to $(OUT_DIR). 2019-06-24 13:02:35 -07:00
build_progress_proto Add build progress in Soong UI 2020-03-19 13:15:05 -07:00
ninja_frontend Add stats from ninja subprocesses to build.trace.gz 2020-10-15 13:46:32 -07:00
Android.bp Add LOCAL_LICENSE_KINDS to build/soong 2021-02-06 04:23:21 +00:00
critical_path.go Don't print critical path parallelism ratio if elapsed time is 0. 2020-01-04 07:26:28 +00:00
critical_path_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
kati.go Increase max line length for KatiReader bufio.Scanner 2019-01-30 23:19:23 +00:00
kati_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
log.go Generate the build_error protobuf file on first build action error. 2020-03-19 18:23:26 -07:00
ninja.go Add errorHints to stdout when read-only file system errors are detected 2021-06-29 00:20:21 +00:00
ninja_test.go Add errorHints to stdout when read-only file system errors are detected 2021-06-29 00:20:21 +00:00
status.go Add stats from ninja subprocesses to build.trace.gz 2020-10-15 13:46:32 -07:00
status_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00