Skip to content
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

[vector_graphics_compiler] fix a renamed method parameter lint #8070

Merged
merged 5 commits into from
Nov 13, 2024
Merged

Conversation

pq
Copy link
Contributor

@pq pq commented Nov 12, 2024

An upcoming fix to avoid_renaming_method_parameters will flag this rename.

(I updated the base class since that seems more correct.)

For references, here's the fix in flight: https://dart-review.googlesource.com/c/sdk/+/394662

Pre-launch Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@flutter-dashboard
Copy link

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.

@pq pq changed the title [lint] fix a renamed method parameter [vector_graphics_compiler] fix a renamed method parameter lint Nov 12, 2024
Copy link
Member

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

Change LGTM

I think we would normally bump the version and do a bugfix release for this to avoid accumulating lots of unpublished changes? @stuartmorgan

@matanlurey
Copy link
Contributor

test-exempt: Lint compliance to be tested by said lint.

@pq
Copy link
Contributor Author

pq commented Nov 12, 2024

@jonahwilliams (or @stuartmorgan): in order to update what gets analyzed on the Dart SDK flutter-analyze try-bots, does a new version need to get vended in or does it grab package source at HEAD?

@stuartmorgan
Copy link
Contributor

I think we would normally bump the version and do a bugfix release for this to avoid accumulating lots of unpublished changes? @stuartmorgan

We bend the interpretation of the "PRs that only affect local development of the package (e.g., changes to ignored lints)." version exemption sometimes to include cases where technically what is changing is actually code, but it's very obvious that it isn't changing behavior. I'm fine with that in this case.

in order to update what gets analyzed on the Dart SDK flutter-analyze try-bots, does a new version need to get vended in or does it grab package source at HEAD?

It's analyzing repo source, not published source.

@jonahwilliams
Copy link
Member

Depends on where the analysis is failing. if its in the framework repo then it may be getting pulled in via pub, so we'd need to both publish and update deps.

If its in the packages repo then it doesn't matter if its published.

@stuartmorgan
Copy link
Contributor

Depends on where the analysis is failing. if its in the framework repo then it may be getting pulled in via pub

The upstream analysis (both flutter/fluter and Dart-level) are source-based. flutter/flutter uses a pinned version that is auto-rolled. I forget what the Dart variant does about the exact version, but it's repo source.

@pq
Copy link
Contributor Author

pq commented Nov 12, 2024

Here's the bot failure:

https://ci.chromium.org/ui/p/dart/builders/try/flutter-analyze-try/24085/overview

I can't tell from the output where the source is coming from but hoping we don't need to publish.

It's analyzing repo source, not published source.

EDIT: phew!

@pq pq added override: no versioning needed Override the check requiring version bumps for most changes override: no changelog needed Override the check requiring CHANGELOG updates for most changes labels Nov 12, 2024
@pq pq merged commit e547e7a into main Nov 13, 2024
77 checks passed
@pq pq deleted the pq-patch-1 branch November 13, 2024 00:01
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 13, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 13, 2024
@pq
Copy link
Contributor Author

pq commented Nov 13, 2024

Hmmm, looks like this caused a breakage after all:

https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket/8731382513574602801/+/u/Run_flutter_plugins_tests/stdout

(On the Flutter HHH bot).

@stuartmorgan, @jonahwilliams: Will this get fixed by an auto-roll?

@stuartmorgan
Copy link
Contributor

Assuming that's the flutter/flutter test, https://autoroll.skia.org/r/flutter-packages-flutter-autoroll is the relevant auto-roller.

@pq
Copy link
Contributor Author

pq commented Nov 13, 2024

Cool, thanks. Is there a good place for me to communicate that help is on the way?

@stuartmorgan
Copy link
Contributor

Sorry, I'm not sure what you are asking. Communicate to whom, and about what help? If a Dart-team-maintained tree is broken, I'm not familiar with the process for managing that.

@pq
Copy link
Contributor Author

pq commented Nov 13, 2024

Sorry, my question wasn't really well-posed. I'm trying to figure out the reach of the inconvenience and let impacted folks know this should get fixed w/ the auto-roll. I'll do some more poking but if this is just affecting a Dart-team-maintained tree, that's good and I'll communicate w/ Dart folks. Thanks!

@gspencergoog
Copy link
Contributor

@pq This is currently one of the things blocking the Flutter roll into google3, since it's causing the engine to flutter roller to fail, and that's blocking a needed Dart compiler fix from getting into the flutter repo. It looks like the flutter-packages-flutter-autoroll is blocked on some infra problems on macOS. Once that's resolved, I suspect things will all iron out, I just wanted to let you know about the pileup.

@pq
Copy link
Contributor Author

pq commented Nov 13, 2024

Thanks @gspencergoog! If we need to push this through before the auto-roll is unblocked, we could consider disabling avoid_renaming_method_parameters temporarily. (We've done that kind of thing in the past.) Let me know if I can help at all (and sorry for the added hassle!)

auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 13, 2024
flutter/packages@72356fd...26e123a

2024-11-13 [email protected] [camera_windows] Set device media type for video preview explicitly (flutter/packages#7447)
2024-11-13 [email protected] [go_router] Add support for relative routes (flutter/packages#6825)
2024-11-13 [email protected] [vector_graphics_compiler] fix a renamed method parameter lint (flutter/packages#8070)
2024-11-12 [email protected] [in_app_purchase] Add expiration date to Transaction (flutter/packages#8030)
2024-11-12 [email protected] [various] Clean up contributing guides (flutter/packages#8032)
2024-11-12 [email protected] [ci] Remove web renderer option from tools. (flutter/packages#8055)
2024-11-12 [email protected] [url_launcher] Update Pigeon version for Linux (flutter/packages#8065)
2024-11-12 [email protected] [go_router] Add support for preloading branches of StatefulShellRoute (revised solution) (flutter/packages#6467)
2024-11-12 [email protected] [pigeon] Make Linux type declarations public (flutter/packages#8040)
2024-11-11 [email protected] Roll Flutter from 73546b3 to c8510f2 (30 revisions) (flutter/packages#8042)
2024-11-11 [email protected] Use dependabot multi-directory configuration for Android package updates (flutter/packages#8048)
2024-11-11 [email protected] [tools] Run `pub get` before `format` (flutter/packages#8052)
2024-11-11 [email protected] [file_selector] Fix Linux cancel regression (flutter/packages#8051)
2024-11-09 [email protected] [shared_preferences] Fix confusing language in README (flutter/packages#8049)
2024-11-08 [email protected] Use dependabot multi-directory configuration for Android example gradle updates (flutter/packages#8036)
2024-11-08 [email protected] [animations] Remove `.flutter-plugins` reference from example app (flutter/packages#8002)
2024-11-08 [email protected] Group dependabot github-action update PRs, delete dead docker updates (flutter/packages#8044)
2024-11-08 [email protected] [vector_graphics_compiler] fix-null-exception (flutter/packages#8006)
2024-11-08 [email protected] [tools] Format Dart per-package (flutter/packages#8043)

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] 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
@gspencergoog
Copy link
Contributor

Seems like the packages roll made it through, so one less thing in the way. :-)

@pq
Copy link
Contributor Author

pq commented Nov 13, 2024

Woohoo! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
override: no changelog needed Override the check requiring CHANGELOG updates for most changes override: no versioning needed Override the check requiring version bumps for most changes p: vector_graphics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants