-
Notifications
You must be signed in to change notification settings - Fork 6k
[web] Start support for Skia Gold #29139
Conversation
0d90c7b
to
6cf5b52
Compare
@CaseyHillers I'm still not getting the
Other environment variables are working fine (e.g. |
@mdebbar the issue is the goldctl is being run on a drone. I'm not sure if we'd support this. Are the gold tests something we could run on the original bot? An alternative is the web engine recipe can be updated to pass its properties to the drone builds |
Gold has detected about 292 new digest(s) on patchset 6. |
Gold has detected about 86 new digest(s) on patchset 13. |
Gold has detected about 507 new digest(s) on patchset 14. |
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
Gold has detected about 217 new digest(s) on patchset 15. |
I am just back in office today, this look exciting! Will be able to do a full review tomorrow. 🎉 |
} on io.OSError catch (_) { | ||
print('OSError occurred, could not reach Gold.'); | ||
} on io.SocketException catch (_) { | ||
print('SocketException occurred, could not reach Gold.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should do io.stderr.writeln
, but as mentioned above, I think I'd prefer a hard failure in this case. Instead, if whether goldens are compared should be controlled by a command-line flag.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this line of code is the right place to do it, but I agree that we should fail if Skia Gold isn't available and we expect golden tests to run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right now, I don't want to introduce any failures caused by Skia Gold. In a future step, I'm going to start relying on Skia Gold to block PRs (until images are triaged). That's when I'm going to add the check to make sure Skia Gold is actually running when we expect it to.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM. Let's file an issue and leave a TODO pointing to it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there an issue filed & TODO added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I updated the issue to list all steps required to finish this work.
Gold has detected about 38 new digest(s) on patchset 17. |
// Skia Gold. The next step would be to actually use Skia Gold for | ||
// comparison. | ||
|
||
// TODO(mdebbar): Use Skia Gold for comparison, not only for uploading. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might be good to add to this comment that when this is being used for comparison, it should account for any auto rollers, they will break if it fails in presubmit. We should be able to really easily add support of the flutter-gold check to manage checking in images when it's ready, just a small adjustment in cocoon. :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. Autorollers:
We plan to rely on the gold check for failures in pre-submit (we won't fail any tests even if the golden match fails). This comment/TODO was meant for local testing. Sorry that wasn't clear.
2. gold-check & cocoon:
Out of the box, we got those comments by the gold bot that provide triage links. I looked at the cocoon repo and found a couple places that need to be adjusted to work for the engine. Is there anything else we need to do (besides the cocoon change) to get the extra gold check to appear on engine PRs?
Gold has detected about 108 new digest(s) on patchset 20. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
b1a8771
to
2962099
Compare
@CaseyHillers I see you switched this PR to the |
@Piinks Thanks for noticing that! The merge button was actually disabled because the "master" branch is now protected (?). So I had to switch the base back to main in order to re-enable the merge button. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This LGTM! Verified the engine instance of Gold received and has been approved with 540 images! Awesome! Can you cc me on the follow-up issue? Thanks!
} on io.OSError catch (_) { | ||
print('OSError occurred, could not reach Gold.'); | ||
} on io.SocketException catch (_) { | ||
print('SocketException occurred, could not reach Gold.'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was there an issue filed & TODO added?
This PR provides initial support for Skia Gold. It uploads all screenshots to the Skia Gold dashboard.
At this point, we still use the goldens repo for the actual comparison.