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:
@@ -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++;
|
||||
|
||||
Reference in New Issue
Block a user