[cloud functions] Add tools to create staging database

test/tools/extract_recent.dart extracts the most recent data from
the production database dart-ci into a json file.

test/tools/create_staging.dart imports that data from the json file
into the dart-ci-staging Firestore database

Change-Id: I29f13e53ba6cbf90a49d479b22b5289c22eb290c
Reviewed-on: https://dart-review.googlesource.com/c/dart_ci/+/124181
Reviewed-by: Alexander Thomas <athom@google.com>
4 files changed
tree: aea20f4d53a03be018bc61037271d364fb3069f7
  1. appengine/
  2. functions/
  3. results_feed/
  4. .firebaserc
  5. .gitignore
  6. AUTHORS
  7. firebase.json
  8. LICENSE
  9. 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.