firebase-android-sdk icon indicating copy to clipboard operation
firebase-android-sdk copied to clipboard

Store registered context for sync task unregistrations

Open welishr opened this issue 10 months ago β€’ 6 comments

For issue #6558, this is an attempt at fixing the IllegalArgumentException by ensuring that the context we use for registering the SyncTask is the same context we use to unregister the task. Race conditions dont seem like a culprit here since unregister is only triggered by the Receiver itself, which should be only executed synchronously on the main thread.

welishr avatar Mar 07 '25 19:03 welishr

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

google-cla[bot] avatar Mar 07 '25 19:03 google-cla[bot]

πŸ“ PRs merging into main branch

Our main branch should always be in a releasable state. If you are working on a larger change, or if you don't want this change to see the light of the day just yet, consider using a feature branch first, and only merge into the main branch when the code complete and ready to be released.

github-actions[bot] avatar Mar 07 '25 19:03 github-actions[bot]

1 Warning
:warning: Did you forget to add a changelog entry? (Add the 'no-changelog' label to the PR to silence this warning.)

Generated by :no_entry_sign: Danger

google-oss-bot avatar Mar 07 '25 19:03 google-oss-bot

Test Results

 64 files   -β€Šβ€‡β€‡β€ˆ970   64 suites   -β€Š970   6m 24s :stopwatch: - 27m 57s 487 tests  -β€Šβ€‡5β€ˆ406  487 :white_check_mark:  -β€Šβ€‡5β€ˆ384  0 :zzz:  -β€Š22  0 :x: Β±0  980 runsβ€Š  -β€Š10β€ˆ869  980 :white_check_mark:  -β€Š10β€ˆ825  0 :zzz:  -β€Š44  0 :x: Β±0 

Results for commit 8f8d9c3d. ± Comparison against base commit 4128d9a7.

This pull request removes 5406 tests.
com.google.android.datatransport.cct.CctBackendFactoryTest ‑ create_returnCCTBackend_WhenBackendNameIsCCT
com.google.android.datatransport.cct.CctDestinationTest ‑ cctDestination_shouldOnlySupportProtoAndJson
com.google.android.datatransport.cct.CctDestinationTest ‑ cctDestination_shouldSupportProtoAndJson
com.google.android.datatransport.cct.CctTransportBackendTest ‑ decorate_whenOffline_shouldProperlyPopulateNetworkInfo
com.google.android.datatransport.cct.CctTransportBackendTest ‑ decorate_whenOnline_shouldProperlyPopulateNetworkInfo
com.google.android.datatransport.cct.CctTransportBackendTest ‑ schedule_shouldAddCookieOnPseudonymousIds
com.google.android.datatransport.cct.CctTransportBackendTest ‑ schedule_shouldDropCookieOnMixedPseudonymousIds
com.google.android.datatransport.cct.CctTransportBackendTest ‑ send_CompressedResponseIsUncompressed
com.google.android.datatransport.cct.CctTransportBackendTest ‑ send_whenBackendRedirectsMoreThan5Times_shouldOnlyRedirect4Times
com.google.android.datatransport.cct.CctTransportBackendTest ‑ send_whenBackendRedirects_shouldCorrectlyFollowTheRedirectViaPost
…

:recycle: This comment has been updated with latest results.

github-actions[bot] avatar Mar 07 '25 19:03 github-actions[bot]

Coverage Report 1

Affected Products

No changes between base commit (4128d9a) and merge commit (c5d40e9).

Test Logs

google-oss-bot avatar Mar 07 '25 19:03 google-oss-bot

Size Report 1

Affected Products

  • firebase-messaging

    TypeBase (4128d9a)Merge (0e5738e)Diff
    aar149 kB149 kB+47 B (+0.0%)
    apk (aggressive)578 kB578 kB-60 B (-0.0%)
    apk (release)5.31 MB5.31 MB+8 B (+0.0%)

Test Logs

google-oss-bot avatar Mar 07 '25 19:03 google-oss-bot