Skip to content

Add keep on ComponentRegistrar to prevent renaming of key lookup #3287

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

Merged
merged 2 commits into from
Feb 3, 2022

Conversation

mkj-gram
Copy link
Contributor

@mkj-gram mkj-gram commented Jan 5, 2022

The name com.google.firebase.components.ComponentRegistrar is used as a key for looking up in the manifest by ComponentDiscovery. If a developer uses -adaptclassstrings the string will be renamed and fail to lookup the correct name in the manifest. One such bug was reported at https://issuetracker.google.com/issues/209817768.

The developer should never use -adaptclassstrings without specifying a filter but since the code uses a type name for component discovery it is best practice to keep the name to ensure it is not renamed.

@google-oss-bot
Copy link
Contributor

Hi @mkj-gram. Thanks for your PR.

I'm waiting for a firebase member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@rlazo
Copy link
Collaborator

rlazo commented Jan 31, 2022

/ok-to-test

@google-oss-bot
Copy link
Contributor

Size Report 1

Affected Products

  • firebase-components

    TypeBase (66797a8)Merge (b8ee6fb)Diff
    aar41.4 kB41.4 kB+19 B (+0.0%)

Test Logs

Notes

  • Commit (b8ee6fb) is created by Prow via merging PR base commit (66797a8) and head commit (b09426c).

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/Qo2GKNzGlt.html

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jan 31, 2022

Coverage Report 1

Affected Products

No changes between base commit (53ff022) and merge commit (d41b839).

Test Logs

Notes

  • Commit (d41b839) is created by Prow via merging PR base commit (53ff022) and head commit (deac088).
  • Run gradle <product>:checkCoverage to produce HTML coverage reports locally. After gradle commands finished, report files can be found under <product-build-dir>/reports/jacoco/.

  1. https://storage.googleapis.com/firebase-sdk-metric-reports/4bbDJVjImH.html

@rlazo
Copy link
Collaborator

rlazo commented Jan 31, 2022

@mkj-gram thanks for your contribution! Could you try syncing your branch to head and re-running the tests (commenting /retest)? Not sure what's causing the failures in check-changed.

@rlazo
Copy link
Collaborator

rlazo commented Jan 31, 2022

Also, please wait until #3384 is in to rebase your branch to make sure the fix is included. Thanks!

@mkj-gram
Copy link
Contributor Author

mkj-gram commented Feb 3, 2022

/retest

@rlazo
Copy link
Collaborator

rlazo commented Feb 3, 2022

/test device-check-changed

@google-oss-bot
Copy link
Contributor

@mkj-gram: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
device-check-changed deac088 link /test device-check-changed

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@rlazo
Copy link
Collaborator

rlazo commented Feb 3, 2022

Test failing is not related to the changes. Approved. Thanks!

@rlazo rlazo merged commit a1f36d5 into firebase:master Feb 3, 2022
@firebase firebase locked and limited conversation to collaborators Mar 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants