Collect rbe execution stats before build times out

This CL makes sure:
1) if a build finishes successfully within a normal range, collect rbe logs after
2) if a build takes longer than a predefined latency (default 30mins), collect rbe logs proactively after the latency without failing the build.

LED for 1)
https://ci.chromium.org/raw/build/logs.chromium.org/flutter/led/keyonghan_google.com/525e6a08e3cdcec9ce7b0ca1d8e586b0752745e8cf972d8fcc84758ff3344664/+/build.proto?server=chromium-swarm.appspot.com (collect logs after the build finishes in step 23)
LED for 2)
https://ci.chromium.org/raw/build/logs.chromium.org/flutter/led/keyonghan_google.com/a38b16b8e82f789eea5f8fce03fe9d77265c381e0f6781df699f8c42e7e1db5b/+/build.proto?server=chromium-swarm.appspot.com (collect logs when the build execution time exceeds 60s - see step 23, with a latency of 60s)(See also step 24 where the logs are also collected when the build step finishes)

Change-Id: I03f4c973d299c52f0307f0e500b30712e4753b35
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/54521
Commit-Queue: Keyong Han <keyonghan@google.com>
Reviewed-by: Yusuf Mohsinally <mohsinally@google.com>
Reviewed-by: Ricardo Amador <ricardoamador@google.com>
15 files changed
tree: b55f5823a23ab88797a35342131c35679b3292ac
  1. infra/
  2. recipe_modules/
  3. recipes/
  4. .gitignore
  5. .style.yapf
  6. AUTHORS
  7. CONTRIBUTING.md
  8. LICENSE
  9. OWNERS
  10. README.md
  11. recipes.py
README.md

Flutter LUCI Recipes

This repository contains Flutter's LUCI recipes. For the LUCI infrastructure config, see flutter/infra. Builds can be found in the Flutter Dashboard.

Supported repositories roll their .ci.yaml into flutter/infra, which updates what properties builds have. For example, flutter config specifies various dependencies the different tests require, which are then used by the flutter_deps recipe_module No modifications to flutter/infra are required to work on the recipes.

Contributing

Please follow instructions on Contributing docs to set up your development environment.