Skip to content

[dynamic_layouts] relax layout test to fix tree - #4677

Merged
auto-submit[bot] merged 6 commits into
flutter:mainfrom
tarrinneal:relax
Aug 10, 2023
Merged

[dynamic_layouts] relax layout test to fix tree#4677
auto-submit[bot] merged 6 commits into
flutter:mainfrom
tarrinneal:relax

Conversation

@tarrinneal

Copy link
Copy Markdown
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-actionsgithub-actionsBot added the p: dynamic_layouts The dynamic_layouts package label Aug 10, 2023

@PiinksPiinks left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
Contributor

Filed flutter/flutter#132321

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

Copy link
Copy Markdown
Contributor

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-submitauto-submitBot removed the autosubmit Merge PR when tree becomes green via auto submit App label Aug 10, 2023
@tarrinnealtarrinneal added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 10, 2023
@auto-submit
auto-submitBot merged commit 9b15c2e into flutter:mainAug 10, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 11, 2023
auto-submitBot 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
@PiinksPiinks mentioned this pull request Aug 11, 2023
11 tasks
auto-submitBot 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.
Fixesflutter/flutter#132321
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
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.
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
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 flutter#4513 and flutter#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.
Fixesflutter/flutter#132321
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
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.
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
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 flutter#4513 and flutter#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.
Fixesflutter/flutter#132321
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmitMerge PR when tree becomes green via auto submit Appp: dynamic_layoutsThe dynamic_layouts package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@tarrinneal@Piinks