Skip to content

Conversation

@darrenaustin
Copy link
Contributor

The current analyzer bot script looks for dev versions in the deprecated warnings. As we no longer have dev releases this PR updates the check to only look for beta version numbers (i.e. vX.X.X).

This also cleans up some lint warnings for some of the regexp raw strings.

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.

@flutter-dashboard flutter-dashboard bot added the c: contributor-productivity Team-specific productivity, code health, technical debt. label Jun 3, 2022
@jonahwilliams
Copy link
Contributor

Adding @gspencergoog for Regex readability

Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

In looking at this again, it looks like you don't need capture groups at all, much less named ones, for half of those regexps (except for the ones where you actually used namedGroup).

I don't recommend removing them though, because they serve as good built-in documentation. If speed/memory were a concern, I might say remove the groups, because they do have to be parsed out and kept, so there's a small cost, but in this case I think the documentation value is higher than the performance value.

Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

I'm still trying to understand this change, but from the PR description, I'm not sure this is the right change to make. Requesting changes for the moment while I do a more thorough review...

Copy link
Contributor

Choose a reason for hiding this comment

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

beta release versions look like dev release versions, so I'm pretty sure we still need this logic, unless I'm misunderstanding the context for this change.

Copy link
Contributor

@christopherfujino christopherfujino Jun 3, 2022

Choose a reason for hiding this comment

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

I think the fix to make is to just s/dev/beta in the exception message

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair enough. I am not that familiar with this logic and build version numbers, so I am likely the one misunderstanding something 😄.

I was trying to land #105291 which has deprecations in it. I looked at the releases and the latest beta release is '3.1.0' which doesn't pass this check. When I asked about it on discord it was mentioned that perhaps we needed to update this check to support beta releases, so I thought that meant relaxing this check.

Any guidance here is appreciated. Thx.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ahh, oh yeah, so that was a one-time mistake that we named a beta release 3.1.0

Copy link
Contributor

Choose a reason for hiding this comment

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

maybe we need to special case 3.1.0 in the test?

Copy link
Contributor

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, I put back the previous logic (with some name cleanups) and special cased v3.1.0 so that it will pass. Please give this another look. Thx.

Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

LGTM!

@darrenaustin darrenaustin merged commit d9be807 into flutter:master Jun 7, 2022
@darrenaustin darrenaustin deleted the analyze_beta_deprecations branch June 7, 2022 04:16
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Jun 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jun 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jun 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jun 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jun 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jun 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jun 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Jun 7, 2022
camsim99 pushed a commit to camsim99/flutter that referenced this pull request Aug 10, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 30, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

c: contributor-productivity Team-specific productivity, code health, technical debt.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants