-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[go_router] Fix some leaks discovered by leak_tracker_flutter_testing
#6210
[go_router] Fix some leaks discovered by leak_tracker_flutter_testing
#6210
Conversation
@polina-c Is there an issue to link this PR to? |
But |
Will investigate. Thank you. Converted the PR to draft for now. |
Okay, it should be |
Great thank you! I changed it in chore: Use any version for leak_tracker_flutter_testing |
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. |
@chunhtai what do you want me to do? Maybe I can remove |
Yes, I like it: to merge fixes, while postponing regression testing. @chunhtai, how does it sound for you? |
chunhtai is unavailable at the moment |
I removed the |
'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? |
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.
LGTM
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? |
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. |
I'm a bit unsure of what I should do, should I stop using |
That's actually unrelated to |
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? |
@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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You'll need to change this to match (3.2.0), which is why CI is failing.
packages/go_router/CHANGELOG.md
Outdated
|
||
* 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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is no longer accurate.
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.
Oops sorry about that.
I updated it in doc: Update the changelog to specify the new flutter and dart versions
leak_tracker_flutter_testing
leak_tracker_flutter_testing
flutter/packages@b21c542...756dcc1 2024-03-15 [email protected] [go_router] Use `leak_tracker_flutter_testing` (flutter/packages#6210) 2024-03-15 [email protected] [camera_web][google_maps_flutter] Fix tests throwing errors after test completion with manual roll (flutter/packages#6318) 2024-03-14 [email protected] [pigeon] Fixes double prefixes added to enum names for Objc HostApis and FlutterApis (flutter/packages#6263) 2024-03-14 [email protected] [webview_flutter_android][webview_flutter_wkwebview] Adds platform implementations for onHttpError (flutter/packages#6149) 2024-03-14 [email protected] [image_picker_android] Fix deprecation warnings by branching based on build version, and suppressing only when needed (flutter/packages#6233) 2024-03-14 [email protected] [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 [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://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_testing
in 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.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to 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.