[resultdb] Add param to enable ResultDB integration in Swarming tests

In order to enable ResultDB integration in a Swarming Task,
the Swarming Task request must be set with with_resultdb().

This CL adds a param to chromium_swarm.task() to enable/disable ResultDB
integration in a given task, and update the test classes to propagate
the param value from build properities.

To enable ResultDB integration in a given test task, the test needs to
have a dict of {'enable': True} in properties with 'resultdb'.

Change-Id: I125098650140b24de641d174471fa5fed487ebf3
Bug: 1017288
R=dpranke@google.com,nodir@chromium.org
CC=chanli@chromium.org,iannucci@chromium.org
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/2309180
Commit-Queue: Scott Lee <ddoman@chromium.org>
Reviewed-by: Dirk Pranke <dpranke@google.com>
10 files changed
tree: 3fe2385f893a1ed67ff6a3b5932cab8442df7b68
  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.