[debugsyms] Revive upload_debug_symbols tool
This brings upload_debug_symbols back to tools.git.
It is renamed debugsyms, to be slightly more generic,
with one subcommand `upload`.
Now that artifactory has succeeded upload_debug_symbols
as the default tool for uploading build artifacts,
upload_debug_symbols has no reason to live in fuchsia.git
anymore. It is reworked here to be build-agnostic and
operate on the standard .build-id format.
debugsyms upload -bucket $GCS_BUCKET
-namespace $GCS_NAMESPACE $BUILD_ID_DIR1 ...
will upload debug symbols in the specified .build-id
dir(s), which have nested .debug files:
Note that unlike the previous iteration of the tool,
we fail loudly if any of the .debug files are invalid.
The fact that we had previously thrown warnings
was a loose rule based on the hack that we were
walking a checkout, not strictly .build-id dirs.
We also allow an optional -namespace, which will place
.debug files at the namespace in the bucket, rather
than at the root. This is to accommodate multiple
schemes of debug symbol storage.
10 files changed