From 6d57116ac3b3137381ace9d984ef14e24ceb694d Mon Sep 17 00:00:00 2001 From: Yuqian Li Date: Wed, 20 Jan 2021 09:36:33 -0800 Subject: [PATCH] Migrate to use the published metrics_center (flutter/engine#23767) This change shouldn't affect anything except for the "Linux benchmarks" LUCI post-submit bot. We'll closely monitor the LUCI bot to see if this works as intended. If so, we'll continue the migration in Cocoon (https://github.com/flutter/cocoon/pull/1062) to cut the dependency on the old Cocoon datastore and Tong's desktop. Related issue: https://github.com/flutter/flutter/issues/73872 --- .../src/flutter/testing/benchmark/bin/parse_and_send.dart | 3 +-- engine/src/flutter/testing/benchmark/pubspec.yaml | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/engine/src/flutter/testing/benchmark/bin/parse_and_send.dart b/engine/src/flutter/testing/benchmark/bin/parse_and_send.dart index da247e44c4..64af78eb26 100644 --- a/engine/src/flutter/testing/benchmark/bin/parse_and_send.dart +++ b/engine/src/flutter/testing/benchmark/bin/parse_and_send.dart @@ -7,8 +7,7 @@ import 'dart:convert'; import 'dart:io'; import 'package:git/git.dart'; -import 'package:metrics_center/flutter.dart'; -import 'package:metrics_center/google_benchmark.dart'; +import 'package:metrics_center/metrics_center.dart'; Future _getGitRevision() async { final GitDir gitDir = await GitDir.fromExisting('../../'); diff --git a/engine/src/flutter/testing/benchmark/pubspec.yaml b/engine/src/flutter/testing/benchmark/pubspec.yaml index 078c7751aa..37e51ba42f 100644 --- a/engine/src/flutter/testing/benchmark/pubspec.yaml +++ b/engine/src/flutter/testing/benchmark/pubspec.yaml @@ -2,10 +2,8 @@ name: flutter_engine_benchmark dependencies: git: any - metrics_center: - # TODO(liyuqian): once metrics_center is properly reviewed, add it to - # flutter/packages, publish on pub.dev, and use the published package here. - git: https://github.com/liyuqian/metrics_center.git + + metrics_center: 0.0.4 dev_dependencies: test: any