[current results] Update the package dependencies to work with 2.12
Also add error handling when a load of results data fails
This is only needed in initialization. The gRPC service implementation
catches errors when serving requests.
Change-Id: I296c01913d9a6a689258cc5faaf00f30478028dd
Reviewed-on: https://dart-review.googlesource.com/c/dart_ci/+/194782
Reviewed-by: Alexander Thomas <athom@google.com>
diff --git a/current_results/bin/server.dart b/current_results/bin/server.dart
index 4d267ec..c7e6273 100644
--- a/current_results/bin/server.dart
+++ b/current_results/bin/server.dart
@@ -29,11 +29,16 @@
Future<void> loadData() async {
final configurationDirectories = await bucket.configurationDirectories();
await Pool(10).forEach(configurationDirectories,
- (configurationDirectory) async {
- final resultsDate = await bucket.latestResultsDate(configurationDirectory);
- if (DateTime.now().difference(resultsDate) <= maximumAge) {
- final results = await bucket.latestResults(configurationDirectory);
- current.add(results);
+ (String configurationDirectory) async {
+ try {
+ final resultsDate =
+ await bucket.latestResultsDate(configurationDirectory);
+ if (DateTime.now().difference(resultsDate) <= maximumAge) {
+ final results = await bucket.latestResults(configurationDirectory);
+ current.add(results);
+ }
+ } catch (e, stack) {
+ print('Error loading configuration $configurationDirectory: $e\n$stack');
}
}).drain();
}
diff --git a/current_results/pubspec.lock b/current_results/pubspec.lock
index 5b84ff6..836733a 100644
--- a/current_results/pubspec.lock
+++ b/current_results/pubspec.lock
@@ -7,419 +7,412 @@
name: _discoveryapis_commons
url: "https://pub.dartlang.org"
source: hosted
- version: "0.2.0"
+ version: "0.2.1"
_fe_analyzer_shared:
dependency: transitive
description:
name: _fe_analyzer_shared
url: "https://pub.dartlang.org"
source: hosted
- version: "4.0.0"
+ version: "19.0.0"
analyzer:
dependency: transitive
description:
name: analyzer
url: "https://pub.dartlang.org"
source: hosted
- version: "0.39.10"
+ version: "1.3.0"
+ archive:
+ dependency: transitive
+ description:
+ name: archive
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "3.1.2"
args:
dependency: transitive
description:
name: args
url: "https://pub.dartlang.org"
source: hosted
- version: "1.6.0"
+ version: "2.0.0"
async:
dependency: transitive
description:
name: async
url: "https://pub.dartlang.org"
source: hosted
- version: "2.4.1"
+ version: "2.5.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
- version: "2.0.0"
+ version: "2.1.0"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
- version: "1.1.3"
+ version: "1.2.0"
+ cli_util:
+ dependency: transitive
+ description:
+ name: cli_util
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "0.3.0"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
- version: "1.14.12"
+ version: "1.15.0"
convert:
dependency: transitive
description:
name: convert
url: "https://pub.dartlang.org"
source: hosted
- version: "2.1.1"
+ version: "3.0.0"
coverage:
dependency: transitive
description:
name: coverage
url: "https://pub.dartlang.org"
source: hosted
- version: "0.14.1"
+ version: "1.0.2"
crypto:
dependency: transitive
description:
name: crypto
url: "https://pub.dartlang.org"
source: hosted
- version: "2.1.5"
- csslib:
- dependency: transitive
- description:
- name: csslib
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.16.1"
+ version: "3.0.1"
dart_style:
dependency: transitive
description:
name: dart_style
url: "https://pub.dartlang.org"
source: hosted
- version: "1.3.6"
+ version: "1.3.14"
+ file:
+ dependency: transitive
+ description:
+ name: file
+ url: "https://pub.dartlang.org"
+ source: hosted
+ version: "6.1.0"
fixnum:
dependency: transitive
description:
name: fixnum
url: "https://pub.dartlang.org"
source: hosted
- version: "0.10.11"
+ version: "1.0.0"
gcloud:
dependency: "direct main"
description:
name: gcloud
url: "https://pub.dartlang.org"
source: hosted
- version: "0.7.2"
+ version: "0.7.3"
glob:
dependency: transitive
description:
name: glob
url: "https://pub.dartlang.org"
source: hosted
- version: "1.2.0"
+ version: "2.0.1"
googleapis:
dependency: transitive
description:
name: googleapis
url: "https://pub.dartlang.org"
source: hosted
- version: "0.55.0"
+ version: "0.56.1"
googleapis_auth:
dependency: "direct main"
description:
name: googleapis_auth
url: "https://pub.dartlang.org"
source: hosted
- version: "0.2.12"
+ version: "1.1.0"
grpc:
dependency: "direct main"
description:
name: grpc
url: "https://pub.dartlang.org"
source: hosted
- version: "2.2.0"
- html:
- dependency: transitive
- description:
- name: html
- url: "https://pub.dartlang.org"
- source: hosted
- version: "0.14.0+3"
+ version: "3.0.0"
http:
- dependency: transitive
+ dependency: "direct overridden"
description:
name: http
url: "https://pub.dartlang.org"
source: hosted
- version: "0.12.1"
+ version: "0.13.1"
http2:
dependency: transitive
description:
name: http2
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.0"
+ version: "2.0.0"
http_multi_server:
dependency: transitive
description:
name: http_multi_server
url: "https://pub.dartlang.org"
source: hosted
- version: "2.2.0"
+ version: "3.0.0"
http_parser:
dependency: transitive
description:
name: http_parser
url: "https://pub.dartlang.org"
source: hosted
- version: "3.1.4"
+ version: "4.0.0"
io:
dependency: transitive
description:
name: io
url: "https://pub.dartlang.org"
source: hosted
- version: "0.3.4"
+ version: "1.0.0"
js:
dependency: transitive
description:
name: js
url: "https://pub.dartlang.org"
source: hosted
- version: "0.6.2"
+ version: "0.6.3"
logging:
dependency: transitive
description:
name: logging
url: "https://pub.dartlang.org"
source: hosted
- version: "0.11.4"
+ version: "1.0.1"
matcher:
dependency: transitive
description:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
- version: "0.12.9"
+ version: "0.12.10"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
- version: "1.1.8"
+ version: "1.3.0"
mime:
dependency: transitive
description:
name: mime
url: "https://pub.dartlang.org"
source: hosted
- version: "0.9.7"
- node_interop:
- dependency: transitive
- description:
- name: node_interop
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.1.1"
- node_io:
- dependency: transitive
- description:
- name: node_io
- url: "https://pub.dartlang.org"
- source: hosted
- version: "1.1.1"
+ version: "1.0.0"
node_preamble:
dependency: transitive
description:
name: node_preamble
url: "https://pub.dartlang.org"
source: hosted
- version: "1.4.12"
+ version: "2.0.0"
package_config:
dependency: transitive
description:
name: package_config
url: "https://pub.dartlang.org"
source: hosted
- version: "1.9.3"
+ version: "2.0.0"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
- version: "1.7.0"
+ version: "1.8.0"
pedantic:
dependency: "direct dev"
description:
name: pedantic
url: "https://pub.dartlang.org"
source: hosted
- version: "1.9.0"
+ version: "1.11.0"
pool:
dependency: "direct main"
description:
name: pool
url: "https://pub.dartlang.org"
source: hosted
- version: "1.4.0"
+ version: "1.5.0"
protobuf:
dependency: "direct main"
description:
name: protobuf
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.1"
+ version: "2.0.0"
protoc_plugin:
dependency: "direct dev"
description:
name: protoc_plugin
url: "https://pub.dartlang.org"
source: hosted
- version: "19.0.1"
+ version: "20.0.0"
pub_semver:
dependency: transitive
description:
name: pub_semver
url: "https://pub.dartlang.org"
source: hosted
- version: "1.4.4"
+ version: "2.0.0"
shelf:
dependency: "direct main"
description:
name: shelf
url: "https://pub.dartlang.org"
source: hosted
- version: "0.7.5"
+ version: "1.1.0"
shelf_packages_handler:
dependency: transitive
description:
name: shelf_packages_handler
url: "https://pub.dartlang.org"
source: hosted
- version: "2.0.0"
+ version: "3.0.0"
shelf_static:
dependency: transitive
description:
name: shelf_static
url: "https://pub.dartlang.org"
source: hosted
- version: "0.2.8"
+ version: "1.0.0"
shelf_web_socket:
dependency: transitive
description:
name: shelf_web_socket
url: "https://pub.dartlang.org"
source: hosted
- version: "0.2.3"
+ version: "1.0.1"
source_map_stack_trace:
dependency: transitive
description:
name: source_map_stack_trace
url: "https://pub.dartlang.org"
source: hosted
- version: "2.0.0"
+ version: "2.1.0"
source_maps:
dependency: transitive
description:
name: source_maps
url: "https://pub.dartlang.org"
source: hosted
- version: "0.10.9"
+ version: "0.10.10"
source_span:
dependency: transitive
description:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
- version: "1.7.0"
+ version: "1.8.1"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
- version: "1.9.3"
+ version: "1.10.0"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
- version: "2.0.0"
+ version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
- version: "1.0.5"
+ version: "1.1.0"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
- version: "1.1.0"
+ version: "1.2.0"
test:
dependency: "direct dev"
description:
name: test
url: "https://pub.dartlang.org"
source: hosted
- version: "1.15.4"
+ version: "1.16.8"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
- version: "0.2.18"
+ version: "0.3.0"
test_core:
dependency: transitive
description:
name: test_core
url: "https://pub.dartlang.org"
source: hosted
- version: "0.3.11+1"
+ version: "0.3.19"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
- version: "1.1.6"
+ version: "1.3.0"
vm_service:
dependency: transitive
description:
name: vm_service
url: "https://pub.dartlang.org"
source: hosted
- version: "4.2.0"
+ version: "6.2.0"
watcher:
dependency: transitive
description:
name: watcher
url: "https://pub.dartlang.org"
source: hosted
- version: "0.9.7+15"
+ version: "1.0.0"
web_socket_channel:
dependency: transitive
description:
name: web_socket_channel
url: "https://pub.dartlang.org"
source: hosted
- version: "1.1.0"
+ version: "2.0.0"
webkit_inspection_protocol:
dependency: transitive
description:
name: webkit_inspection_protocol
url: "https://pub.dartlang.org"
source: hosted
- version: "0.7.3"
+ version: "1.0.0"
yaml:
dependency: transitive
description:
name: yaml
url: "https://pub.dartlang.org"
source: hosted
- version: "2.2.1"
+ version: "3.1.0"
sdks:
- dart: ">=2.7.2 <3.0.0"
+ dart: ">=2.12.0 <3.0.0"
diff --git a/current_results/pubspec.yaml b/current_results/pubspec.yaml
index a3904a5..e4eb9f7 100644
--- a/current_results/pubspec.yaml
+++ b/current_results/pubspec.yaml
@@ -5,14 +5,17 @@
sdk: '>=2.7.2 <3.0.0'
dependencies:
- shelf: ^0.7.5
+ shelf: ^1.1.0
gcloud: ^0.7.0
- googleapis_auth: ^0.2.11
- grpc: ^2.1.3
+ googleapis_auth: ^1.1.0
+ grpc: ^3.0.0
pool: ^1.4.0
- protobuf: ^1.0.0
+ protobuf: ^2.0.0
+
+dependency_overrides:
+ http: 0.13.1
dev_dependencies:
pedantic: ^1.8.0
- protoc_plugin: 19.0.1
+ protoc_plugin: 20.0.0
test: ^1.15.0