Skip to content

Conversation

@Piinks
Copy link
Contributor

@Piinks Piinks commented Sep 11, 2019

Skia Gold Support

This is part of the changes laid out in the design doc: flutter.dev/go/golden-workflow

GoldenTriageMessage:

Nice merge! 🎉
It looks like this PR made changes to golden files. Be sure to visit Flutter Gold to triage the results when post-submit testing has completed. The status of these tests can be seen on the Flutter Dashboard.

For more information about working with golden files, see the wiki page Writing a Golden File Test for package:flutter/flutter.

TODO

  • Update wiki to provide guidance on Skia Gold triage

@Piinks Piinks changed the title WIP Skia Gold support & other improvements WIP Skia Gold support & github_webhook clean-up Sep 12, 2019
@Piinks Piinks marked this pull request as ready for review September 12, 2019 19:13
@Piinks Piinks changed the title WIP Skia Gold support & github_webhook clean-up Skia Gold support & github_webhook clean-up Sep 12, 2019
@Piinks Piinks requested a review from dnfield September 12, 2019 19:15
Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few questions - also, do you think you could split this into two PRs? One with the removing todos/improvement for commenting on drafts, and one with the changes for Skia gold?

@Piinks
Copy link
Contributor Author

Piinks commented Sep 12, 2019

A few questions - also, do you think you could split this into two PRs? One with the removing todos/improvement for commenting on drafts, and one with the changes for Skia gold?

You are right. 😝
I will split these up.

@Piinks Piinks changed the title Skia Gold support & github_webhook clean-up Skia Gold support Sep 12, 2019
@Piinks
Copy link
Contributor Author

Piinks commented Sep 12, 2019

Changes unrelated to Skia Gold have been put up in this PR: #413
I recommend landing that first and then merging changes. :)

@Piinks Piinks changed the title Skia Gold support WIP Skia Gold support Sep 13, 2019
@Piinks Piinks changed the title WIP Skia Gold support Skia Gold support Sep 16, 2019
@Piinks
Copy link
Contributor Author

Piinks commented Sep 16, 2019

All green now @dnfield PTAL. :)

break;
}
}
} catch(_) {}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are we actually trying to catch here? We should generally avoid catch blocks that catch all exceptions, and also avoid catch blocks that swallow exceptions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I figured that if there is an error making the request it should just return false. If (let us hope never) Skia Gold is down and the request fails, I wouldn't want it to have a domino effect and break the bot as a result.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in that case we should just try to catch SocketException and maybe HttpException, and just print something to the log that we couldn't reach Skia Gold.

We may also want to catch FormatException and print out the raw data we got and rethrow in case the response format changes.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM! I'll put it together! :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe just catch IOException instead of Socket/Http separately.

Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Will you be deploying this?

@Piinks
Copy link
Contributor Author

Piinks commented Sep 17, 2019

LGTM!

Will you be deploying this?

Thanks! Can do! I haven't done that before - should be fun!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants