[current_results] Merge log and test source services from App Engine (#213)

* [current_results] Merge log and test source services from App Engine

Merge test log serving and test source redirection into current_results,
and remove the standalone appengine package and workflow.

* Rename ResultsBucket methods and implement in local test server

- Rename _read (formerly getCloudFile)
- Rename getLatestBuildNumber -> latestBuild
- Rename getLatestConfigurationBuildNumber -> latestConfigurationBuild
- Rename getLog -> logs
- Implement latestBuild, latestConfigurationBuild, and logs in DirectoryBasedBucket

* Address review comments on PR #213

- Validate log request parameters before latest build resolution in api_impl
- Return 404 and log exceptions with _log.severe in _redirectToTest
- Add dartdocs documenting preconditions and thrown exceptions in bucket.dart
- Validate default flags, handle UserVisibleFailure, and close client in bin/log.dart
- Fix adjacent string spacing and comments in test_source files
- Add unit tests for latest log request validation and CL lookup 404

* Validate pageToken, pageSize, and limit in REST API, and refine HTTP response codes

- Return 400 Bad Request for invalid log request parameters, pageSize, limit, and pageToken
- Return 404 Not Found for missing logs or builds
- Safely parse pageToken in PageStart.parse and avoid negative limits in Slice.results
- Inline single-line exception message in test_source.dart
- Add unit tests for validation and status codes
25 files changed
tree: 9c84b17377500afa48af6079feb3864d57447888
  1. .github/
  2. baseline/
  3. builder/
  4. common/
  5. current_results/
  6. current_results_ui/
  7. github-label-notifier/
  8. results_feed/
  9. .firebaserc
  10. .gitignore
  11. AUTHORS
  12. firebase.json
  13. LICENSE
  14. OWNERS
  15. README.md
README.md

dart_ci

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

The repository is based at github.com/dart-lang/dart_ci. It is mirrored to dart.googlesource.com/dart_ci. Changes need to be landed as pull requests in this repo.

Results Feed

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

Current results server and UI

A Flutter Web application that displays current test results fetched from a server that keeps all the latest test results in memory.

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.