WebRTC: Don't require `got_revision_cp` property

Obtain `revision_number` in a deferred manner, only when necessary.
This will allow testing commits that aren't on master branch.
Also assert that we're on master branch just in case, the actions that depend on the number make sense only then.

Change-Id: I571487badbee3a26bd7e15c0d096a82ae27d16aa
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/1609489
Reviewed-by: Artem Titarenko <artit@chromium.org>
Commit-Queue: Oleh Prypin <oprypin@chromium.org>
3 files changed
tree: 908541bb81fc98f6c6955afcd95fe42810d54252
  1. .gitattributes
  2. .gitignore
  3. .vpython
  4. DEPS
  5. LICENSE
  6. OWNERS
  7. PRESUBMIT.py
  8. README.md
  9. WATCHLISTS
  10. codereview.settings
  11. environment.cfg.py
  12. infra/
  13. masters/
  14. scripts/
  15. site_config/
  16. slave/
  17. tests/
  18. third_party/
README.md

build

Hi build contributor! If you do any change in scripts/master/ or touching any master's html/ directories, you must restart master.chromium.fyi first and ensure that it still works before restarting other masters.

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.