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

Fix #4583: Deprecated Protobuf Version #4596

Closed
wants to merge 2 commits into from

Conversation

Smarshal21
Copy link

@Smarshal21 Smarshal21 commented Sep 15, 2022

Explanation

Essential Checklist

  • The PR Protobuf updates the protobuf version in order to run the app successfully without any gradle and bazel issues.
  • Any changes to scripts/assets files have their rationale included in the PR explanation.
  • The PR follows the style guide.
  • The PR does not contain any unnecessary code changes from Android Studio
  • The PR is made from a branch that's not called "develop" and is up-to-date with "develop".
  • The PR is assigned to the appropriate reviewers (reference).

For UI-specific PRs only

If your PR includes UI-related changes, then:

  • Add screenshots for portrait/landscape for both a tablet & phone of the before & after UI changes
  • For the screenshots above, include both English and pseudo-localized (RTL) screenshots (see RTL guide)
  • Add a video showing the full UX flow with a screen reader enabled (see accessibility guide)
  • Add a screenshot demonstrating that you ran affected Espresso tests locally & that they're passing

@Smarshal21 Smarshal21 changed the title Protobuf Deprecated Protobuf Version Sep 15, 2022
@Smarshal21 Smarshal21 changed the title Deprecated Protobuf Version #4965 Deprecated Protobuf Version Sep 15, 2022
@Smarshal21 Smarshal21 changed the title #4965 Deprecated Protobuf Version #4596 Deprecated Protobuf Version Sep 15, 2022
@Smarshal21 Smarshal21 changed the title #4596 Deprecated Protobuf Version Fixes #4596 :Deprecated Protobuf Version Sep 15, 2022
@Smarshal21 Smarshal21 changed the title Fixes #4596 :Deprecated Protobuf Version Fixes #4583 :Deprecated Protobuf Version Sep 15, 2022
Copy link
Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

Thanks @Smarshal21. I left one high-level comment, but otherwise I think we need to wait for the CI run here.

You'll also need to update the Bazel build. For reference, see:

strip_prefix = "protobuf-%s" % HTTP_DEPENDENCY_VERSIONS["protobuf_tools"]["version"],

"version": "3.11.0",

I'm also wondering whether we should consider introducing builds for the app on OS X to ensure that it builds correctly, as recent changes seem to periodically cause issues.

Finally, I'm updating this PR to be in 'draft' since it's not yet code complete.

@@ -3,12 +3,13 @@ apply plugin: 'com.google.protobuf'

protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.14.0:osx-x86_64'
Copy link
Member

Choose a reason for hiding this comment

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

I just started the CI run, so we'll need to see if it works, but will this artifact actually work non-OS X platforms?

Copy link
Author

Choose a reason for hiding this comment

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

@BenHenning i have updated the build bazel

Copy link
Member

Choose a reason for hiding this comment

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

I don't think that addresses my question @Smarshal21. It seems like this updated Gradle file won't work for non-Linux platforms (which is completely separate from the Bazel builds).

@BenHenning BenHenning marked this pull request as draft September 16, 2022 08:44
@BenHenning
Copy link
Member

Also @Smarshal21 please use the exact PR checklist & sections (if UI screenshots aren't relevant, you can leave a brief explanation for why but otherwise the section should still be there since reviewers specifically look for it).

@BenHenning BenHenning assigned Smarshal21 and unassigned BenHenning Sep 16, 2022
@Smarshal21
Copy link
Author

@BenHenning @seanlip ptal at the new commit , i have updated the build bazel

@oppiabot oppiabot bot assigned BenHenning and seanlip and unassigned Smarshal21 Sep 18, 2022
@oppiabot
Copy link

oppiabot bot commented Sep 18, 2022

Unassigning @Smarshal21 since a re-review was requested. @Smarshal21, please make sure you have addressed all review comments. Thanks!

@seanlip seanlip removed their assignment Sep 19, 2022
Copy link
Member

@BenHenning BenHenning left a comment

Choose a reason for hiding this comment

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

@Smarshal21 thanks for adding the Bazel change, but you'll need to build the app locally on both Gradle & Bazel to make sure it's working. Per the CI checks, it looks like the build isn't working on either build platform. PTAL at the CI checks to determine what needs to be changed in the PR.

@@ -3,12 +3,13 @@ apply plugin: 'com.google.protobuf'

protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.14.0:osx-x86_64'
Copy link
Member

Choose a reason for hiding this comment

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

I don't think that addresses my question @Smarshal21. It seems like this updated Gradle file won't work for non-Linux platforms (which is completely separate from the Bazel builds).

@BenHenning BenHenning assigned Smarshal21 and unassigned BenHenning Sep 19, 2022
@BenHenning BenHenning changed the title Fixes #4583 :Deprecated Protobuf Version Fixes #4583: Deprecated Protobuf Version Sep 19, 2022
@BenHenning BenHenning changed the title Fixes #4583: Deprecated Protobuf Version Fix #4583: Deprecated Protobuf Version Sep 19, 2022
@oppiabot
Copy link

oppiabot bot commented Sep 26, 2022

Hi @Smarshal21, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 7 days, it will be automatically closed so that others can take up the issue.
If you are still working on this PR, please make a follow-up commit within 3 days (and submit it for review, if applicable). Please also let us know if you are stuck so we can help you!

@oppiabot oppiabot bot added the stale Corresponds to items that haven't seen a recent update and may be automatically closed. label Sep 26, 2022
@oppiabot oppiabot bot closed this Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Corresponds to items that haven't seen a recent update and may be automatically closed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecated protobuf version
3 participants