[v8-builtins-pgo] Move pgo builder recipe into a module

In the past, the PGO builder run as a cron only. To increase infra
robustness, the builder will also run within V8's CI and be provided as
a trybot. This increased complexity in the original recipe.

This change moves the existing functionality in a dedicated
recipe_module. Additionally, it adds a check to ensure the git version
tag builder only runs in the ci-hp bucket.

No expectations or tests have been altered, besides mocking the
buildbucket bucket and a test for `invalid_builds`.

Bug: 353419839
Change-Id: Ib7bafa6a8fd6ce7ab58d49e8b01bff2680fedda8
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/5882739
Commit-Queue: Alexander Schulze <alexschulze@chromium.org>
Reviewed-by: Michael Achenbach <machenbach@chromium.org>
11 files changed
tree: 81abfedf64797aa86b02635ddb4b405562783219
  1. hook-scripts/
  2. infra/
  3. recipes/
  4. scripts/
  5. .gitattributes
  6. .gitignore
  7. .style.yapf
  8. .vpython3
  9. .yapfignore
  10. codereview.settings
  11. DEPS
  12. LICENSE
  13. OWNERS
  14. PRESUBMIT.py
  15. PRESUBMIT_test.py
  16. README.md
README.md

Recipes

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

Style

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