Skip to content

Conversation

@ksokolovskyi
Copy link
Contributor

Description

This PR changes testWidgets by testWidgetsWithLeakTracking in number of flutter/test/widgets tests according to the dart-lang/leak_tracker#134.

Tests

  • Updates absorb_pointer_test.dart to use testWidgetsWithLeakTracking;
  • Updates actions_test.dart to use testWidgetsWithLeakTracking;
  • Updates align_test.dart to use testWidgetsWithLeakTracking;
  • Updates animated_align_test.dart to use testWidgetsWithLeakTracking;
  • Updates animated_container_test.dart to use testWidgetsWithLeakTracking;
  • Updates animated_cross_fade_test.dart to use testWidgetsWithLeakTracking;
  • Updates animated_grid_test.dart to use testWidgetsWithLeakTracking;
  • Updates animated_image_filtered_repaint_test.dart to use testWidgetsWithLeakTracking;
  • Updates animated_list_test.dart to use testWidgetsWithLeakTracking;
  • Updates animated_opacity_repaint_test.dart to use testWidgetsWithLeakTracking;
  • Updates animated_padding_test.dart to use testWidgetsWithLeakTracking;
  • Updates animated_positioned_test.dart to use testWidgetsWithLeakTracking.

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • All existing and new tests are passing.

@github-actions github-actions bot added the framework flutter/packages/flutter repository. See also f: labels. label Aug 31, 2023
@ksokolovskyi
Copy link
Contributor Author

@polina-c, could you please take a look at this PR?

Copy link
Contributor

@polina-c polina-c left a comment

Choose a reason for hiding this comment

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

Thank you!!!

@polina-c polina-c merged commit be06151 into flutter:master Aug 31, 2023
vashworth added a commit that referenced this pull request Aug 31, 2023
auto-submit bot pushed a commit that referenced this pull request Aug 31, 2023
Reverts #133767

Causing failures to Mac framework_tests_widgets and Linux framework_tests_widgets
@ksokolovskyi
Copy link
Contributor Author

@vashworth, thank you for the revert. My bad.
@polina-c, sorry, I will fix the test and create a new PR.

@polina-c
Copy link
Contributor

polina-c commented Aug 31, 2023

@vashworth, thank you for the revert. My bad. @polina-c, sorry, I will fix the test and create a new PR.

It is ok, as probability of test flakiness little increases when we deal with memory leaks. Thank you for taking care of it.

@polina-c
Copy link
Contributor

@vashworth , is it possible to get full list of failures?

@vashworth
Copy link
Contributor

@vashworth , is it possible to get full list of failures?

I'm pretty sure it's just those 2 tests I linked above that were failing. Linux framework_tests_widgets and Mac framework_tests_widgets.

It's possible it could have caused more failures, but it hasn't finished testing all tests. You can view what tests failed on https://flutter-dashboard.appspot.com/#/build

@ksokolovskyi
Copy link
Contributor Author

@polina-c As I understand, the problem is in test:

final ScrollController controller = ScrollController();

We now have ScrollController instrumentation which caused the error.

01:12 +2156 ~75 -1: /Volumes/Work/s/w/ir/x/w/flutter/packages/flutter/test/widgets/animated_list_test.dart: (tearDownAll) [E]                                                                          
  Expected: leak free
    Actual: <Instance of 'Leaks'>
     Which: contains leaks:
            # The text is generated by leak_tracker.
            # For leak troubleshooting tips open:
            # https://github.com/dart-lang/leak_tracker/blob/main/doc/TROUBLESHOOT.md
            notDisposed:
              total: 1
              objects:
                ScrollController:
                  test: AnimatedList.shrinkwrap is forwarded to its inner CustomScrollView
                  identityHashCode: 291972861

@vashworth
Copy link
Contributor

engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 3, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 3, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 3, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 4, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 4, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 5, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 5, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 5, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 6, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 6, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 6, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 6, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 6, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 6, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 6, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 6, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 7, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 7, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 7, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 7, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Sep 7, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Nov 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants