-
Notifications
You must be signed in to change notification settings - Fork 3.3k
[ci] Roll Flutter to f842ed91 #4513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ci] Roll Flutter to f842ed91 #4513
Conversation
@Piinks I bisected to the M3 switch commit, so I'm sure that's the cause. I'm assuming that means these changes are expected, but if that's not the case I'd like to spin that out into an issue for follow-up so that I can get the roller unblocked. |
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 - thank you for fixing it!
@@ -23,10 +22,21 @@ void main() { | |||
expect(find.text('Index 3'), findsOneWidget); | |||
expect(find.text('Index 4'), findsOneWidget); | |||
|
|||
// Material 3 changes the expected layout positioning. | |||
final bool usesMaterial3 = (app.theme ?? ThemeData.light()).useMaterial3; |
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.
Yes, I double checked. The slight change in offset is expected.
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.
Perfect, thanks for verifying!
auto label is removed for flutter/packages, pr: 4513, due to - The status or check suite Linux_web web_dart_unit_test_shard_1 master has failed. Please fix the issues identified (or deflake) before re-applying this label. |
Ugh, looks like web has slightly different offsets. I'll adjust accordingly for web... |
Oh man. @HansMuller is there meant to be such discrepancies with Material 3 across platforms? I would expect the pixels to be the same when building the same across platforms. It was the same when this was tested in M2. The disparity here is coming from the text, is there a different visual density across platforms for Material 3? |
It's exactly half a pixel different, so maybe it's a physical pixel alignment thing? |
I pushed a version that does half-pixel adjustment for web. The other option I can see is that I could do within-half-a-pixel checks on all platforms instead. |
}); | ||
} | ||
|
||
double _getExpectedYOffset(double nonWeb) { | ||
return kIsWeb ? nonWeb - 0.5 : nonWeb; |
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.
Yikes! Is this a "web is rounding wrong" bug?
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.
Hmmm maybe @yjbanov would know?
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 brought this up to the team chat as well!
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 vaguely recall we had a special-case for an off-by-one issue in text for Firefox, but not generally. @mdebbar might know more.
I'm going to go ahead and autosubmit this as-is since our roller is many days behind and I want to unblock it; we can definitely iterate on how exactly we handle the web diff (and investigate the framework if that's a concern) after the fact. |
@stuartmorgan ACK, we'll revisit this adjustment if we end up doing any changes that affect the vertical spacing in the web later. |
flutter/packages@3e8b813...209db21 2023-07-19 [email protected] [tooling] mark infra steps as infra steps in yaml files (flutter/packages#4473) 2023-07-19 [email protected] Manual roll Flutter from f842ed9 to 6f09064 (11 revisions) (flutter/packages#4518) 2023-07-19 [email protected] [ci] Enable new sharding (flutter/packages#4515) 2023-07-19 [email protected] [flutter_markdown] Change the way tests get screen size (flutter/packages#4514) 2023-07-18 [email protected] [ci] Roll Flutter to f842ed9 (flutter/packages#4513) 2023-07-18 [email protected] [image_picker] Update Android example (flutter/packages#4504) 2023-07-18 [email protected] [camerax] Fixes relistening to `onStreamedFrameAvailable`'s stream behavior (flutter/packages#4511) 2023-07-18 [email protected] [various] Deletes deprecated splash screen meta-data element (flutter/packages#4501) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@3e8b813...209db21 2023-07-19 [email protected] [tooling] mark infra steps as infra steps in yaml files (flutter/packages#4473) 2023-07-19 [email protected] Manual roll Flutter from f842ed9 to 6f09064 (11 revisions) (flutter/packages#4518) 2023-07-19 [email protected] [ci] Enable new sharding (flutter/packages#4515) 2023-07-19 [email protected] [flutter_markdown] Change the way tests get screen size (flutter/packages#4514) 2023-07-18 [email protected] [ci] Roll Flutter to f842ed9 (flutter/packages#4513) 2023-07-18 [email protected] [image_picker] Update Android example (flutter/packages#4504) 2023-07-18 [email protected] [camerax] Fixes relistening to `onStreamedFrameAvailable`'s stream behavior (flutter/packages#4511) 2023-07-18 [email protected] [various] Deletes deprecated splash screen meta-data element (flutter/packages#4501) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
This refactors a test for the example of a wrapped layout in dynamic_tests. This test had become brittle to small text changes because it would check the precise layout offset of the text. It was patched in these cases in #4513 and #4677 to address tiny text variations across platforms and material 2/3 defaults. This refactor changes the test to check the layout offset of the parent Container of the text, which should not have these subtle variations. Fixes flutter/flutter#132321
Rolls Flutter
master
to f842ed9 manually.The switch to Material 3 by default broke the expectations of the
dynamic_layouts
package; this updates them to handle the values reported starting with that switch.