[roll] Roll fuchsia [fx][regen-goldens] Add --list and --reset options

This CL adds two options to `fx regen-goldens`: --list prints the
supported tools and their golden directories, and --reset deletes
everything first to help get out of a bad state.

Before, the supported tools were listed in the help message. This was
not ideal because I always had to remind people to update the help
message in addition to the all_tools array:

* https://fuchsia-review.googlesource.com/c/fuchsia/+/506315/3..9/tools/devshell/contrib/regen-goldens#b22
* https://fuchsia-review.googlesource.com/c/fuchsia/+/506782/2..10/tools/devshell/contrib/regen-goldens#b23

Another issue with regen-goldens was failures in GN or ninja at an early
stage preventing regen from completing. This can happen if the
goldens.txt file is missing, or is incorrect, or if golden files cause
formatters to fail (e.g. due to merge conflict markers). With this CL,
regen-goldens suggests you re-run with --reset, which first resets the
goldens directory to a clean slate, avoiding those issues. This causes
the build system to do more work, so it is not the default.

Test: fx self-test subcommands/fx_regen_goldens_test
Original-Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/510088
Original-Revision: 35acc60115cbf2faaed68d211053e18556150280
GitOrigin-RevId: be8b5f818ec976e9934c26fc3c7054bf04705173
Change-Id: I65a6e7193d92d5f3797218fc6b53fd9a5a0b97a8
1 file changed
tree: b8053f73d77bccf9d4d1de8927977eaacb5914f1
  1. garnet/
  2. infra/
  3. peridot/
  4. third_party/
  5. topaz/
  6. zircon/
  7. firmware
  8. flower
  9. jiri.lock
  10. minimal
  11. prebuilts
  12. README.md
  13. stem
  14. 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 via the IRC channel #fuchsia on Freenode.

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.