[builder] Only upload 2000 changed tryjob results to Firestore

Because uploading 20000 changed results from a try builder
takes 50 minutes, we only upload up to 1000 new passes and
1000 new failures from a try builder.
In this case, we set a "truncated" field on the build.

Change-Id: Ifa6cb8a9a47253a71cba7213b9cbf7448cf820b0
Bug: b/207334998
Reviewed-on: https://dart-review.googlesource.com/c/dart_ci/+/220960
Reviewed-by: Alexander Thomas <athom@google.com>
3 files changed
tree: 4fe9bb5861456ec62c8346e2abdb75a3c7a79bfe
  1. appengine/
  2. baseline/
  3. builder/
  4. common/
  5. current_results/
  6. current_results_ui/
  7. functions/
  8. github-label-notifier/
  9. results_feed/
  10. .firebaserc
  11. .gitignore
  12. AUTHORS
  13. firebase.json
  14. LICENSE
  15. PRESUBMIT.py
  16. README.md
README.md

dart_ci

Tools used by Dart's continuous integration (CI) testing infrastructure.

The repository is based at dart.googlesource.com/dart_ci. It is mirrored to github.com/dart-lang/dart_ci. Do not land pull requests on Github.

Results Feed

The results feed is an angular Dart application that displays changed results from the CI and from CQ runs (tryjobs). The code is in the results_feed directory. It is deployed to ci.dart.dev, using Firebase hosting.

Cloud functions

The automated testing of Dart on the CI and CQ publishes results to Cloud Pubsub, and cloud functions triggered by those Pubsub messages process the data and store it in Firestore. These functions are located in the functions directory, and are deployed on the dart-ci Google Cloud project.

Github Label Notifier

Internal users get automatic notifications of new GitHub issues created in certain repositories, by subscribing to issue labels on those repositories. This tool provides a UI for internal users to subscribe to their chosen issue labels. That UI is hosted at dart-github-label-notifier.firebaseapp.com. It also defines cloud functions that are triggered by GitHub webhooks and use the issue label subscriptions to send email notifications using SendGrid.