Uh oh!
There was an error while loading. Please reload this page.
[go_router] Fix some leaks discovered by leak_tracker_flutter_testing - #6210
Conversation
ValentinVignal
commented
Feb 27, 2024
@polina-c Is there an issue to link this PR to? |
ValentinVignal
commented
Feb 27, 2024
But |
Will investigate. Thank you. Converted the PR to draft for now. |
Okay, it should be |
ValentinVignal
commented
Feb 28, 2024
Great thank you! I changed it in chore: Use any version for leak_tracker_flutter_testing |
polina-c
commented
Feb 28, 2024
I see tests are failing. And they are failing because of leaks. And many of them are originated by flutter itself. For example, leaking "_NotAnnounced" was cleaned up this week in Flutter master. It seems packages that use Thank you for the experiment. It helped:
Converting this to draft. |
ValentinVignal
commented
Feb 29, 2024
@chunhtai what do you want me to do? Maybe I can remove |
polina-c
commented
Feb 29, 2024
Yes, I like it: to merge fixes, while postponing regression testing. @chunhtai, how does it sound for you? |
polina-c
commented
Mar 6, 2024
chunhtai is unavailable at the moment |
ValentinVignal
commented
Mar 7, 2024
I removed the |
polina-c
commented
Mar 7, 2024
'Linux analyze_legacy N-2' is failing because HeroController did not have method dispose yet. @johnpryan, is this legacy job fixed forever or we can upgrade it for newer versions of flutter? |
polina-c
commented
Mar 7, 2024
More information: https://github.com/flutter/packages/blob/main/.ci/legacy_project/README.md @ValentinVignal, invoked dispose does not exist for this job, that is on Flutter 2.0.6. What is minimal version of Flutter that has this method? @stuartmorgan, are you right person to help here? Is it ok to stop supporting 2.0.6 and increase minimal supported version a little? |
stuartmorgan-g
commented
Mar 7, 2024
The earliest version of Flutter that any package in this repo is allowed to support (enforced by CI) is 3.13, so I don't really understand the question. If N-2 is failing, then the PR doesn't work in 3.13.9. It's fine to drop 3.13 per the wiki, but that's unrelated to 2.0.6. |
Thanks. I took 2.0.6 from https://github.com/flutter/packages/blob/main/.ci/legacy_project/README.md, but now i see it is just very first supported version. |
ValentinVignal
commented
Mar 8, 2024
I'm a bit unsure of what I should do, should I stop using |
That's actually unrelated to |
polina-c
commented
Mar 8, 2024
To choose between these two options we need to find out what pipeline change is needed. Then we will decide if this change makes sense or if it is better not to use dispose for now and instead create tech debt issue and leave TODO to dispose when all supported versions of flutter have the dispose. Does it help? |
ValentinVignal
commented
Mar 11, 2024
@polina-c After looking at it, it is because
Is that okay? Or is it too soon? |
| @@ -5,7 +5,7 @@ publish_to: none | |||
| environment: | |||
| sdk: ^3.1.0 | |||
There was a problem hiding this comment.
You'll need to change this to match (3.2.0), which is why CI is failing.
| ## 13.2.1 | ||
| * Updates minimum supported SDK version to Flutter 3.13/Dart 3.1. | ||
| - Updates minimum supported SDK version to Flutter 3.13/Dart 3.1. |
There was a problem hiding this comment.
This is no longer accurate.
There was a problem hiding this comment.
Oops sorry about that.
I updated it in doc: Update the changelog to specify the new flutter and dart versions
leak_tracker_flutter_testingleak_tracker_flutter_testingflutter/packages@b21c542...756dcc1 2024-03-15 32538273+ValentinVignal@users.noreply.github.com [go_router] Use `leak_tracker_flutter_testing` (flutter/packages#6210) 2024-03-15 10687576+bparrishMines@users.noreply.github.com [camera_web][google_maps_flutter] Fix tests throwing errors after test completion with manual roll (flutter/packages#6318) 2024-03-14 10687576+bparrishMines@users.noreply.github.com [pigeon] Fixes double prefixes added to enum names for Objc HostApis and FlutterApis (flutter/packages#6263) 2024-03-14 10687576+bparrishMines@users.noreply.github.com [webview_flutter_android][webview_flutter_wkwebview] Adds platform implementations for onHttpError (flutter/packages#6149) 2024-03-14 34871572+gmackall@users.noreply.github.com [image_picker_android] Fix deprecation warnings by branching based on build version, and suppressing only when needed (flutter/packages#6233) 2024-03-14 30870216+gaaclarke@users.noreply.github.com [google_maps_flutter] Started dispatching platform messages from platform thread (flutter/packages#6069) 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://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Fix some memory issues discovered by
leak_tracker_flutter_testing.Activation of
leak_tracker_flutter_testingin the tests to detect memory leak issues is not feasible yet, because of leaks in Flutter stable.cc @polina-c
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.