From 4fc6efad7823b44b9e8582254c7e2886132e8153 Mon Sep 17 00:00:00 2001 From: Matan Lurey Date: Fri, 15 Mar 2024 14:44:06 -0700 Subject: [PATCH] Log messages when an image successfully uploads to Skia Gold (flutter/engine#51455) Work towards https://github.com/flutter/flutter/issues/145219. Combined with https://github.com/flutter/engine/pull/51454, we should be more "sure" that (a) Skia Gold is getting every image we're uploading and (b) Flutter Gold is correctly flagging untriaged images. /cc @gaaclarke --- .../testing/scenario_app/bin/run_android_tests.dart | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/testing/scenario_app/bin/run_android_tests.dart b/engine/src/flutter/testing/scenario_app/bin/run_android_tests.dart index 9c16fb9ed6..669a255440 100644 --- a/engine/src/flutter/testing/scenario_app/bin/run_android_tests.dart +++ b/engine/src/flutter/testing/scenario_app/bin/run_android_tests.dart @@ -196,8 +196,14 @@ Future _run({ } if (SkiaGoldClient.isAvailable()) { final Future comparison = skiaGoldClient! - // Each color channel can be off by 2. - .addImg(fileName, goldenFile, screenshotSize: screenshot.pixelCount, pixelColorDelta: 8) + .addImg( + fileName, + goldenFile, + screenshotSize: screenshot.pixelCount, + // Each color channel can be off by 2. + pixelColorDelta: 8, + ) + .then((_) => logImportant('skia gold comparison succeeded: $fileName')) .catchError((Object error) { logWarning('skia gold comparison failed: $error'); comparisonsFailed++;