Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Unified Diff: tools/gardening/bin/compare_failures.dart

Issue 2751543006: structure gardening tool (Closed)
Patch Set: oops Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gardening/README.md ('k') | tools/gardening/bin/current_summary.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gardening/bin/compare_failures.dart
diff --git a/tools/gardening/lib/compare_failures.dart b/tools/gardening/bin/compare_failures.dart
similarity index 96%
rename from tools/gardening/lib/compare_failures.dart
rename to tools/gardening/bin/compare_failures.dart
index 5f225dd2b5de7617abdf42b656c3148a1c4af199..fc0935fdd4b04e9deaf5e752884986a46e077b1f 100644
--- a/tools/gardening/lib/compare_failures.dart
+++ b/tools/gardening/bin/compare_failures.dart
@@ -7,11 +7,10 @@
/// Use this to detect flakiness of failures, especially timeouts.
import 'dart:async';
-import 'dart:convert';
import 'dart:io';
-import 'src/buildbot_structures.dart';
-import 'src/util.dart';
+import 'package:gardening/src/buildbot_structures.dart';
+import 'package:gardening/src/util.dart';
main(List<String> args) async {
if (args.length != 1) {
@@ -47,13 +46,6 @@ Future<List<BuildResult>> readBuildResults(
return summaries;
}
-/// Reads the content of [uri] as text.
-Future<String> readUriAsText(HttpClient client, Uri uri) async {
- HttpClientRequest request = await client.getUrl(uri);
- HttpClientResponse response = await request.close();
- return UTF8.decode(await response.expand((l) => l).toList());
-}
-
/// Parses the [buildUri] test log and creates a [BuildResult] for it.
Future<BuildResult> readBuildResult(
HttpClient client, BuildUri buildUri) async {
« no previous file with comments | « tools/gardening/README.md ('k') | tools/gardening/bin/current_summary.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698