-
Notifications
You must be signed in to change notification settings - Fork 567
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
Decouple user metadata from Crashlytics backend worker #6074
Merged
themiswang
merged 1 commit into
crashlytics-exception-handler
from
decoupleUserMetadataFromBackendWorker
Jul 3, 2024
Merged
Decouple user metadata from Crashlytics backend worker #6074
themiswang
merged 1 commit into
crashlytics-exception-handler
from
decoupleUserMetadataFromBackendWorker
Jul 3, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Generated by 🚫 Danger |
Coverage Report 1Affected Products
Test Logs |
Size Report 1Affected Products
Test Logs |
mrober
approved these changes
Jul 3, 2024
c1265fc
into
crashlytics-exception-handler
24 of 26 checks passed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Remove
CrashlyticsBackgroundWorker
fromUserMetaData
, use Firebase background common executor for user metadata logging such as user id, custom key value, internal key value and rollouts.Test:
![Screenshot 2024-07-03 at 4 08 00 PM](https://private-user-images.githubusercontent.com/16548721/345608495-0f210bd6-9155-46d3-ad50-7522fd812b8b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3NDkwMTIsIm5iZiI6MTcyMTc0ODcxMiwicGF0aCI6Ii8xNjU0ODcyMS8zNDU2MDg0OTUtMGYyMTBiZDYtOTE1NS00NmQzLWFkNTAtNzUyMmZkODEyYjhiLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIzVDE1MzE1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY4OTc4YjVlOThmYjdmMmY1NmNiNzgzYzAyYzA3NDFmMjRhYjUzNjhiMGE1YmUyZThjYmY4YWYxYzA3N2ZmZGEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.iudSk_ubAOUQoJ4ag38OjorSP5i7eH_6_n-s7gQE1hE)
Checking with log and see key data is writing from different Firebase background common thread
Also same unit test is tested on current implementation with Crashlytics Background Worker. Current way of doing it is actually less efficient since everything is run on the same Junit Test Thread, every iteration of change it need to update the writes to disk (where as the new implementation log you can see we skipped a lot writing entry):
![Screenshot 2024-07-03 at 4 01 17 PM](https://private-user-images.githubusercontent.com/16548721/345606211-9e356e36-9094-45d8-a32b-f5e3c2e79e2e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjE3NDkwMTIsIm5iZiI6MTcyMTc0ODcxMiwicGF0aCI6Ii8xNjU0ODcyMS8zNDU2MDYyMTEtOWUzNTZlMzYtOTA5NC00NWQ4LWEzMmItZjVlM2MyZTc5ZTJlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzIzVDE1MzE1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWRkNjkwOGFmNmI0OTk1ZTVkYWYwNWVhODE1YTM5ODM0YTQ1NzU1NTMyZWMxNzNlYWZlMmFiNDM2OTFmZGE0ZTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.FNdhmxO8BWpO5l1XpwMFoDxsBA3oz6djSFw0NThVNXU)