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
This commit is contained in:
Matan Lurey
2024-03-15 14:44:06 -07:00
committed by GitHub
parent 2d4c61e417
commit 4fc6efad78

View File

@@ -196,8 +196,14 @@ Future<void> _run({
}
if (SkiaGoldClient.isAvailable()) {
final Future<void> 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++;