[roll] Roll fuchsia [cog] Improve error handling and logging in _run_command.

Wrap subprocess.run in a try-except block to catch CalledProcessError. When an error occurs, log the failed command and, if available, the captured stdout and stderr. For non-debug runs, capture output even when not explicitly requested, so it can be printed on error. Exit with the subprocess's return code on failure.

Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/1515576
Original-Revision: de5393ea146107bda3a97eaec54c6ed9a50077fb
GitOrigin-RevId: 59c7f4011feb179a648e266d423b00e82e37003b
Change-Id: I7825a1abc7a4dfe270bbe176c9146ea74e4bcc8a
1 file changed
tree: cee5d58dc4befb6dc71c906da297f6783512a1f3
  1. ctf/
  2. git-hooks/
  3. infra/
  4. third_party/
  5. cobalt
  6. flower
  7. jiri.lock
  8. MILESTONE
  9. minimal
  10. prebuilts
  11. README.md
  12. stem
  13. test_durations
README.md

Integration

This repository contains Fuchsia's Global Integration manifest files.

Making changes

All changes should be made to the internal version of this repository. Our infrastructure automatically updates this version when the internal one changes.

Currently all changes must be made by a Google employee. Non-Google employees wishing to make a change can ask for assistance in one of the communication channels documented at get involved.

Obtaining the source

First install Jiri.

Next run:

$ jiri init
$ jiri import minimal https://fuchsia.googlesource.com/integration
$ jiri update

Third party

Third party projects should have their own subdirectory in ./third_party.