-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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_builder] Activate leak testing #8059
base: main
Are you sure you want to change the base?
[go_router_builder] Activate leak testing #8059
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption, contact "@test-exemption-reviewer" in the #hackers channel in Discord (don't just cc them here, they won't see it!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. The test exemption team is a small volunteer group, so all reviewers should feel empowered to ask for tests, without delegating that responsibility entirely to the test exemption group. |
cc @polina-c |
I think this PR is eligible for the tags |
For changelog you can say something like "Increased protection against memory leaks.". Why versioning is not needed? Can you add more details? Versioning is a good thing as a concrete version can be declared as 'bad', so users may want to be able to choose or hard code a version to avoid issues. (if i understand it right) |
@polina-c I was copying what we did for #7546. I don't mind adding a new version (I guess a patch increase?). Let me just explain why I thought it wouldn't need one first: Having said that. Let me know if you still prefer me to update the version number and changelog. If yes, I'll do it :) |
Also @polina-c @chunhtai , it looks like the ci If I understand correctly, it runs But Having said that, it didn't complain for the PR activating leak tracking on sdk: ^3.3.0
flutter: ">=3.19.0" packages/packages/go_router/pubspec.yaml Lines 8 to 10 in b9ac917
packages/packages/go_router_builder/pubspec.yaml Lines 9 to 11 in b9ac917
So I'm not sure what is the difference here or what I should do. I found that packages/script/configs/custom_analysis.yaml Lines 1 to 30 in b9ac917
|
I don't think custom analysis has thing to do with this. my suspicion is that something in go_router bump the lower limit on the leak_tracker. @polina-c do you know what may have cause this? |
Version of leak leak_tracker_flutter_testing is defined by version of current Flutter. So, if version of Flutter is not consistent across bots in router_builder, we may get collisions. And yes, it analyze_downgraded uses downgraded flutter intentionally. Good news is that leak_tracker is in dev dependencies, not in prod dependencies, so it should be ok to exempt it from the bot. Maybe the bot that downgrades Flutter, also should clean up dev dependencies? |
Yes, your explanation makes sense for me. Here is my explanation: for repositories I am not familiar with, it is much easier for me to satisfy the lints, than to explain why i need exception. You are welcome to go for exception, but I cannot help you with this for this repo, because i am not very familiar with it. |
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, or this PR is exempt from CHANGELOG changes.///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.