Adds functionalities to update latest file to generic archive

In this way, we can get the latest uploads from the latest file content.
Without this, we need 'gsutil ls' to figure out the latest file.
With 8300 folders, 'gsutil ls' takes about 20 seconds, which is too long.
This will be used in
https://source.chromium.org/chromium/chromium/src/+/master:infra/config/subprojects/chromium/master-only/ci.star;l=1511;drc=1939ce11f5267976dd5c797031f6f8532b4678bd

Bug: 1109287
Change-Id: I43b4deb8bcca24187040ee610de85bd0f2f14435
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/2334865
Commit-Queue: Sven Zheng <svenzheng@chromium.org>
Reviewed-by: Ben Pastene <bpastene@chromium.org>
4 files changed
tree: 5c0b6ce89cf4346c08e92bbe77e7527fc7cd5fed
  1. infra/
  2. scripts/
  3. site_config/
  4. third_party/
  5. .gitattributes
  6. .gitignore
  7. .style.yapf
  8. .vpython
  9. .yapfignore
  10. codereview.settings
  11. CROS_OWNERS
  12. DEPS
  13. environment.cfg.py
  14. LICENSE
  15. OWNERS
  16. PRESUBMIT.py
  17. README.md
  18. WATCHLISTS
README.md

Recipes

If you're here to make a change to ‘recipes’ (the code located in scripts/slave/recipes*), please take a look at the README for more information pertaining to recipes.

Style

The preferred style is PEP8 with two-space indent; that is, the Chromium Python style. Functions use lowercase_with_underscores, with the exception of the special functions RunSteps and RunTests in recipes. Use yapf (git cl format) to autoformat new code.