Skip to content
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

[dynamic_layouts] relax layout test to fix tree #4677

Merged
merged 6 commits into from
Aug 10, 2023

Conversation

tarrinneal
Copy link
Contributor

A current roll from the engine to flutter/flutter to packages has broken this test value by a small amount.

I wrote a small function to manage tolerances.

Let me know if this is a reasonable way to manage this for now.

@github-actions github-actions bot added the p: dynamic_layouts The dynamic_layouts package label Aug 10, 2023
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.

LGTM, I will file an issue to follow up on these tests. Thy appear to have become rather brittle to text changes.

@Piinks
Copy link
Contributor

Piinks commented Aug 10, 2023

Filed flutter/flutter#132321

@tarrinneal tarrinneal added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 10, 2023
@auto-submit
Copy link
Contributor

auto-submit bot commented Aug 10, 2023

auto label is removed for flutter/packages/4677, 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.

@auto-submit auto-submit bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 10, 2023
@tarrinneal tarrinneal added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 10, 2023
@auto-submit auto-submit bot merged commit 9b15c2e into flutter:main Aug 10, 2023
71 checks passed
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 11, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Aug 11, 2023
flutter/packages@881c1f5...9b15c2e

2023-08-10 tarrinneal@gmail.com [dynamic_layouts] relax layout test to fix tree (flutter/packages#4677)
2023-08-10 49699333+dependabot[bot]@users.noreply.github.com Bump github/codeql-action from 2.21.2 to 2.21.3 (flutter/packages#4664)
2023-08-09 jhy03261997@gmail.com go_router should allow setting requestFocus (flutter/packages#4636)
2023-08-09 10687576+bparrishMines@users.noreply.github.com [webview_flutter_android][webview_flutter_wkwebview] Fixes widget rebuild bug caused by key type (flutter/packages#4667)

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 flutter-ecosystem@google.com,rmistry@google.com 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
@Piinks Piinks mentioned this pull request Aug 11, 2023
11 tasks
auto-submit bot pushed a commit that referenced this pull request Aug 11, 2023
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App p: dynamic_layouts The dynamic_layouts package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants