Rework analyze DEPS logic to run before testing begins

Previously, this logic ran at the end of a build. This ran into the problem of the patch being deapplied in the "without changes" phase and thus this logic couldn't see which files were changed. Now it's split up to get a revised list of test targets during the analyze phase, while still doing the correctness checking at the end.

Bug: 923016
Change-Id: I120ff9d463c05d02515ed81ca83005ad9cb42ca3
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/build/+/2424888
Commit-Queue: Gregory Guterman <guterman@google.com>
Reviewed-by: Garrett Beaty <gbeaty@chromium.org>
5 files changed
tree: 51df56a3a1f3f25b92ddd03836701d957f228af9
  1. infra/
  2. recipes/
  3. scripts/
  4. site_config/
  5. third_party/
  6. .gitattributes
  7. .gitignore
  8. .style.yapf
  9. .vpython
  10. .yapfignore
  11. codereview.settings
  12. CROS_OWNERS
  13. DEPS
  14. environment.cfg.py
  15. LICENSE
  16. OWNERS
  17. PRESUBMIT.py
  18. README.md
  19. 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 --no-clang-format) to autoformat new code.