Skip to content

Conversation

@zanderso
Copy link
Member

@github-actions github-actions bot added a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels. labels Feb 20, 2024
jonahwilliams
jonahwilliams previously approved these changes Feb 20, 2024
Copy link
Contributor

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

LGTM

@jonahwilliams
Copy link
Contributor

Hmm but I thought I turned off all gold checks? Has this happened recently?

@zanderso
Copy link
Member Author

The backtrace has this line, which indicates that all the environment checks above have failed: https://github.com/flutter/flutter/blob/master/packages/flutter_goldens/lib/flutter_goldens.dart#L46

Is the sense of this check backwards? https://github.com/flutter/flutter/blob/master/packages/flutter_goldens/lib/flutter_goldens.dart#L428. That is, should it be checking that we are on the main or master branch?

@jonahwilliams
Copy link
Contributor

ahh interesting. I wouldn't think the default comparator would try to talk to skia gold?

see also: https://flutter-review.googlesource.com/c/recipes/+/54930

Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

I think... IIRC, the framework smoke tests in flutter/engine intentionally use FlutterLocalFileComparator, which first makes a blank (not referencing a real test) request to Gold using https://flutter-gold.skia.org/json/v2/latestpositivedigest/$traceID to see if we can actually access it, so then golden images can be retrieved for testing. So I am wondering if something changed on Gold's side that made this request not work anymore.

It looks like the engine tree is green currently, so I'd like to find out from the Gold team if they made a change before we just on a format error, it could be all local testing does not work.

Hmm but I thought I turned off all gold checks? Has this happened recently?

@jonahwilliams golden tests for flutter/engine should not be running based on https://flutter-review.googlesource.com/c/recipes/+/54930, but the comparator is still initialized for testing.

'SocketException occurred, could not reach Gold. '
'Switching to FlutterSkippingGoldenFileComparator.',
);
} on FormatException catch (_) {
Copy link
Contributor

Choose a reason for hiding this comment

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

I've not seen this error before from Gold in this context.

@kjlubick have there been any changes to https://flutter-gold.skia.org/json/v2/latestpositivedigest/$traceID?

Copy link
Contributor

Choose a reason for hiding this comment

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

No changes. A socket exception seems like something in the network stack/path. 🤷

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok thanks. I was referring to the FormatException, but it sounds like everything is stable! :)

Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe a reply got truncated? Thus JSON parsing failed?

@Piinks
Copy link
Contributor

Piinks commented Feb 20, 2024

Also FYI @Hixie who has been rewriting this logic in another PR

@zanderso zanderso dismissed jonahwilliams’s stale review February 20, 2024 17:50

Dismissing review to avoid this landing with open questions.

Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

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

With flutter/engine being green still, it seems like this was maybe a flake? I think it is ok to land. There are no changes on Gold's end, and if local testing does breakdown due to a format exception, there will be plenty output when folks run tests locally, so I doubt we will miss it. :)

LGTM. Thanks @zanderso.

@zanderso zanderso merged commit 8a8616f into flutter:master Feb 20, 2024
@zanderso zanderso deleted the gold-format-exception branch February 20, 2024 17:57
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 21, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 21, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 21, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 21, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 22, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: tests "flutter test", flutter_test, or one of our tests framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants