<!-- start_original_pr_link --> Reverts: flutter/flutter#165628 <!-- end_original_pr_link --> <!-- start_initiating_author --> Initiated by: jtmcdole <!-- end_initiating_author --> <!-- start_revert_reason --> Reason for reverting: breaking tree: https://ci.chromium.org/ui/p/flutter/builders/prod/Linux_mokey%20backdrop_filter_perf__e2e_summary/3833/overview <!-- end_revert_reason --> <!-- start_original_pr_author --> Original PR Author: matanlurey <!-- end_original_pr_author --> <!-- start_reviewers --> Reviewed By: {jtmcdole, yjbanov} <!-- end_reviewers --> <!-- start_revert_body --> This change reverts the following previous change: 🚫 **Do not merge** until https://flutter-review.googlesource.com/c/recipes/+/64220/1 is merged. --- Closes https://github.com/flutter/flutter/issues/165618. The `devicelab/bin/test_runner.dart upload-metrics` command use to have _two_ responsibilities: - Well, upload test **metrics** (benchmarks) to Skia Perf (it still does that) - Upload test **status** to Cocoon (it did until https://github.com/flutter/flutter/pull/165614) As https://github.com/flutter/flutter/pull/165614 proved, this API predated the current LUCI setup, where Cocoon itself receives task status updates from LUCI, and it turns out this entire time, DeviceLab was making (at best) NOP calls, and at worst, causing crashes and corrupt data (https://github.com/flutter/flutter/issues/165610). In other words, this is removing entirely dead/unused code (though the recipes have to be updated first). /cc @jason-simmons as I need Jason's help reviewing the recipes change and want to provide context. <!-- end_revert_body --> Co-authored-by: auto-submit[bot] <flutter-engprod-team@google.com>
This commit is contained in:
@@ -10,12 +10,11 @@ import 'package:meta/meta.dart';
|
||||
import 'package:vm_service/vm_service.dart';
|
||||
import 'package:vm_service/vm_service_io.dart';
|
||||
|
||||
import 'cocoon.dart';
|
||||
import 'devices.dart';
|
||||
import 'task_result.dart';
|
||||
import 'utils.dart';
|
||||
|
||||
const int retryNumber = 2;
|
||||
|
||||
/// Run a list of tasks.
|
||||
///
|
||||
/// For each task, an auto rerun will be triggered when task fails.
|
||||
@@ -50,7 +49,7 @@ Future<void> runTasks(
|
||||
for (final String taskName in taskNames) {
|
||||
TaskResult result = TaskResult.success(null);
|
||||
int failureCount = 0;
|
||||
while (failureCount <= retryNumber) {
|
||||
while (failureCount <= Cocoon.retryNumber) {
|
||||
result = await rerunTask(
|
||||
taskName,
|
||||
deviceId: deviceId,
|
||||
@@ -136,6 +135,16 @@ Future<TaskResult> rerunTask(
|
||||
print('Task result:');
|
||||
print(const JsonEncoder.withIndent(' ').convert(result));
|
||||
section('Finished task "$taskName"');
|
||||
|
||||
if (resultsPath != null) {
|
||||
final Cocoon cocoon = Cocoon();
|
||||
await cocoon.writeTaskResultToFile(
|
||||
builderName: luciBuilder,
|
||||
gitBranch: gitBranch,
|
||||
result: result,
|
||||
resultsPath: resultsPath,
|
||||
);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user