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 firebase-crashlytics-ktx instrumented tests #5068

Merged
merged 5 commits into from
Jun 16, 2023

Conversation

mrober
Copy link
Contributor

@mrober mrober commented Jun 8, 2023

This is needed because we upped the target sdk and firebase-crashlytics-ktx had been using some deprecated apis.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 8, 2023

Coverage Report 1

This report is too large (194,459 characters) to be displayed here in a GitHub comment. Please use the below link to see the full report on Google Cloud Storage.

Test Logs

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

@github-actions
Copy link
Contributor

github-actions bot commented Jun 8, 2023

Unit Test Results

   793 files     793 suites   34m 37s ⏱️
4 955 tests 4 932 ✔️ 21 💤 2
9 348 runs  9 304 ✔️ 42 💤 2

For more details on these failures, see this check.

Results for commit 135ccc5.

♻️ This comment has been updated with latest results.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Jun 8, 2023

Size Report 1

Affected Products

  • base

    TypeBase (e34dcf2)Merge (580d984)Diff
    apk (aggressive)?8.39 kB? (?)
    apk (release)?8.66 kB? (?)
  • firebase-abt

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?13.8 kB? (?)
    apk (aggressive)?116 kB? (?)
    apk (release)?1.27 MB? (?)
  • firebase-annotations

    TypeBase (e34dcf2)Merge (580d984)Diff
    apk (aggressive)?8.39 kB? (?)
    apk (release)?9.47 kB? (?)
  • firebase-appcheck

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?36.8 kB? (?)
    apk (aggressive)?362 kB? (?)
    apk (release)?1.56 MB? (?)
  • firebase-appcheck-debug

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?11.1 kB? (?)
    apk (aggressive)?363 kB? (?)
    apk (release)?1.56 MB? (?)
  • firebase-appcheck-debug-testing

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?7.26 kB? (?)
    apk (aggressive)?365 kB? (?)
    apk (release)?1.60 MB? (?)
  • firebase-appcheck-interop

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?5.03 kB? (?)
    apk (aggressive)?312 kB? (?)
    apk (release)?931 kB? (?)
  • firebase-appcheck-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?5.98 kB? (?)
    apk (aggressive)?370 kB? (?)
    apk (release)?1.94 MB? (?)
  • firebase-appcheck-playintegrity

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?11.0 kB? (?)
    apk (aggressive)?365 kB? (?)
    apk (release)?1.57 MB? (?)
  • firebase-appcheck-safetynet

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?10.4 kB? (?)
    apk (aggressive)?364 kB? (?)
    apk (release)?1.57 MB? (?)
  • firebase-appdistribution

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?247 kB? (?)
    apk (aggressive)?905 kB? (?)
    apk (release)?2.64 MB? (?)
  • firebase-appdistribution-api

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?16.0 kB? (?)
    apk (aggressive)?112 kB? (?)
    apk (release)?1.27 MB? (?)
  • firebase-appdistribution-api-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?5.84 kB? (?)
    apk (aggressive)?124 kB? (?)
    apk (release)?1.65 MB? (?)
  • firebase-common

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?75.6 kB? (?)
    apk (aggressive)?112 kB? (?)
    apk (release)?1.26 MB? (?)
  • firebase-common-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?13.3 kB? (?)
    apk (aggressive)?123 kB? (?)
    apk (release)?1.64 MB? (?)
  • firebase-components

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?44.9 kB? (?)
    apk (aggressive)?23.3 kB? (?)
    apk (release)?596 kB? (?)
  • firebase-config

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?88.9 kB? (?)
    apk (aggressive)?151 kB? (?)
    apk (release)?1.32 MB? (?)
  • firebase-config-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?9.90 kB? (?)
    apk (aggressive)?160 kB? (?)
    apk (release)?1.71 MB? (?)
  • firebase-crashlytics

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?354 kB? (?)
    apk (aggressive)?432 kB? (?)
    apk (release)?2.17 MB? (?)
  • firebase-crashlytics-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?7.31 kB? (?)
    apk (aggressive)?432 kB? (?)
    apk (release)?2.17 MB? (?)
  • firebase-crashlytics-ndk

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?1.66 MB? (?)
    apk (aggressive / arm64-v8a)?1.60 MB? (?)
    apk (aggressive / armeabi-v7a)?1.07 MB? (?)
    apk (aggressive / x86)?1.58 MB? (?)
    apk (aggressive / x86_64)?1.64 MB? (?)
    apk (release / arm64-v8a)?3.34 MB? (?)
    apk (release / armeabi-v7a)?2.81 MB? (?)
    apk (release / x86)?3.32 MB? (?)
    apk (release / x86_64)?3.38 MB? (?)
  • firebase-database

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?488 kB? (?)
    apk (aggressive)?359 kB? (?)
    apk (release)?1.72 MB? (?)
  • firebase-database-collection

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?33.6 kB? (?)
    apk (aggressive)?312 kB? (?)
    apk (release)?942 kB? (?)
  • firebase-database-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?28.1 kB? (?)
    apk (aggressive)?367 kB? (?)
    apk (release)?2.11 MB? (?)
  • firebase-datatransport

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?4.94 kB? (?)
    apk (aggressive)?161 kB? (?)
    apk (release)?1.35 MB? (?)
  • firebase-decoders-json

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?7.67 kB? (?)
    apk (aggressive)?8.69 kB? (?)
    apk (release)?15.3 kB? (?)
  • firebase-dynamic-links

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?54.6 kB? (?)
    apk (aggressive)?360 kB? (?)
    apk (release)?1.56 MB? (?)
  • firebase-dynamic-links-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?8.29 kB? (?)
    apk (aggressive)?368 kB? (?)
    apk (release)?1.94 MB? (?)
  • firebase-dynamic-module-support

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?5.67 kB? (?)
    apk (aggressive)?124 kB? (?)
    apk (release)?1.31 MB? (?)
  • firebase-encoders

    TypeBase (e34dcf2)Merge (580d984)Diff
    apk (aggressive)?8.69 kB? (?)
    apk (release)?15.3 kB? (?)
  • firebase-encoders-json

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?11.3 kB? (?)
    apk (aggressive)?24.0 kB? (?)
    apk (release)?596 kB? (?)
  • firebase-encoders-proto

    TypeBase (e34dcf2)Merge (580d984)Diff
    apk (aggressive)?8.86 kB? (?)
    apk (release)?21.7 kB? (?)
  • firebase-encoders-reflective

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?7.80 kB? (?)
    apk (aggressive)?9.06 kB? (?)
    apk (release)?22.5 kB? (?)
  • firebase-firestore

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?1.36 MB? (?)
    apk (aggressive)?520 kB? (?)
    apk (release)?3.95 MB? (?)
  • firebase-firestore-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?25.3 kB? (?)
    apk (aggressive)?528 kB? (?)
    apk (release)?4.34 MB? (?)
  • firebase-functions

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?46.9 kB? (?)
    apk (aggressive)?400 kB? (?)
    apk (release)?1.82 MB? (?)
  • firebase-functions-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?6.23 kB? (?)
    apk (aggressive)?408 kB? (?)
    apk (release)?2.19 MB? (?)
  • firebase-inappmessaging

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?452 kB? (?)
    apk (aggressive)?700 kB? (?)
    apk (release)?3.95 MB? (?)
  • firebase-inappmessaging-display

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?180 kB? (?)
    apk (aggressive)?1.53 MB? (?)
    apk (release)?5.21 MB? (?)
  • firebase-inappmessaging-display-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?17.6 kB? (?)
    apk (aggressive)?1.54 MB? (?)
    apk (release)?5.59 MB? (?)
  • firebase-inappmessaging-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?5.03 kB? (?)
    apk (aggressive)?708 kB? (?)
    apk (release)?4.33 MB? (?)
  • firebase-installations

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?55.2 kB? (?)
    apk (aggressive)?114 kB? (?)
    apk (release)?1.28 MB? (?)
  • firebase-installations-interop

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?8.05 kB? (?)
    apk (aggressive)?65.2 kB? (?)
    apk (release)?652 kB? (?)
  • firebase-installations-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?5.02 kB? (?)
    apk (aggressive)?127 kB? (?)
    apk (release)?1.67 MB? (?)
  • firebase-messaging

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?142 kB? (?)
    apk (aggressive)?465 kB? (?)
    apk (release)?1.72 MB? (?)
  • firebase-messaging-directboot

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?5.12 kB? (?)
    apk (aggressive)?465 kB? (?)
    apk (release)?1.72 MB? (?)
  • firebase-messaging-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?6.11 kB? (?)
    apk (aggressive)?472 kB? (?)
    apk (release)?2.10 MB? (?)
  • firebase-ml-modeldownloader

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?118 kB? (?)
    apk (aggressive)?168 kB? (?)
    apk (release)?1.41 MB? (?)
  • firebase-ml-modeldownloader-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?6.11 kB? (?)
    apk (aggressive)?176 kB? (?)
    apk (release)?1.79 MB? (?)
  • firebase-perf

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?317 kB? (?)
    apk (aggressive)?1.24 MB? (?)
    apk (release)?3.74 MB? (?)
  • firebase-perf-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?16.0 kB? (?)
    apk (aggressive)?1.24 MB? (?)
    apk (release)?3.75 MB? (?)
  • firebase-sessions

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?114 kB? (?)
    apk (aggressive)?364 kB? (?)
    apk (release)?2.06 MB? (?)
  • firebase-storage

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?115 kB? (?)
    apk (aggressive)?361 kB? (?)
    apk (release)?1.59 MB? (?)
  • firebase-storage-ktx

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?13.1 kB? (?)
    apk (aggressive)?369 kB? (?)
    apk (release)?1.97 MB? (?)
  • protolite-well-known-types

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?999 kB? (?)
    apk (aggressive)?134 kB? (?)
    apk (release)?666 kB? (?)
  • transport-api

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?6.74 kB? (?)
    apk (aggressive)?8.69 kB? (?)
    apk (release)?14.9 kB? (?)
  • transport-backend-cct

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?53.6 kB? (?)
    apk (aggressive)?57.6 kB? (?)
    apk (release)?105 kB? (?)
  • transport-runtime

    TypeBase (e34dcf2)Merge (580d984)Diff
    aar?180 kB? (?)
    apk (aggressive)?44.6 kB? (?)
    apk (release)?84.1 kB? (?)

Test Logs

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

@mrober mrober changed the title Fix firebase-crashlytics-ktx deps Fix firebase-crashlytics-ktx instrumented tests Jun 8, 2023
@mrober mrober requested a review from samedson June 8, 2023 18:25
firebase-crashlytics/ktx/ktx.gradle Show resolved Hide resolved
firebase-crashlytics/ktx/ktx.gradle Show resolved Hide resolved
@mrober mrober merged commit 0da1dd2 into firebase-sessions Jun 16, 2023
@mrober mrober deleted the sessions-fixndk branch June 16, 2023 13:40
davidmotson pushed a commit that referenced this pull request Jun 20, 2023
* Fix firebase-crashlytics-ktx deps

* Fix CrashlyticsTests and clean up build file

* Make FirebaseCrashlyticsKtxRegistrar internal

* Bump health metrics compile sdk

* Add versionName version
mrober added a commit that referenced this pull request Jun 26, 2023
* Initial commit for Firebase Sessions SDK (#4713)

* Initial commit for Firebase Sessions SDK

* Add copyright notice

* Remove redundant dependency

* Revert 'Remove redundant dependency' to avoid using api

* Generate api.txt file

* Implement SessionInitiator and hook it up to lifecycle events (#4723)

* Implement SessionInitiator and hook it up to lifecycle events

* Add a warning when failed to register lifecycle callbacks

* Fix formatting

* Use kotlin.time.Duration instead of Long for time intervals (#4733)

* Use kotlin.time.Duration instead of Long for time intervals

* Adjust test constants

* Simplify elapsedRealtime to always be millis precision

* Add SessionGenerator to generate the Session ID (#4747)

* Add SessionEvent data class (#4763)

* Add SessionEvent data class

* Add enum test case

* Remove serialization (this will be handled in encoders) and rename SessionState

* Generate a SessionEvent based on the SessionState

* Rename SessionState to SessionDetails

* Firebase Session Event

* Add Firebase Sessions Test App (#4775)

* Add Firebase Sessions Test App

* Remove boilerplate

* Add JSON encoder for SessionEvents (#4778)

* Use the private setter pattern on SessionGenerator.currentSession (#4785)

* Use the private setter pattern on SessionGenerator.currentSession

* Comments

* Integrate with FirebaseInstallations. (#4796)

* Populate firebaseInstallationId field in session (#4801)

* Package session start event's application information. (#4829)

* Fix workflows for Firebase Sessions (#4841)

* Use googleServices.gradle

* Move package level function to object to fix api surface check

* Add android manifest file with versionName set to fix android tests

* Update pinned deps

* Make getApplicationInfo look leaner

* Setup configuration layer for the library. (#4853)

* Fix Firebase Sessions test app temporarily (#4858)

* Add GDT to Firebase Sessions (#4851)

* Add README files (#4857)

* Fix test app and add README's

* Undo app changes

* Undo app changes

* Add description and formatting to README file

* Add google-services.json file to unit tests (#4868)

* Setup sessions e2e workflow (#4859)

* Start setting up sessions e2e workflow

* Remove schedule

* Format

* Setup gcloud

* Set FIREBASE_APP_CHECK_DEBUG_SECRET

* Set FTL_RESULTS_BUCKET

* Add schedule

* Add 20 min

* Implement local manifest override configs (#4877)

* Fix encoding for Session Events (#4870)

* Use test app for Sessions e2e test (#4881)

* Use test app for Sessions e2e test

* Add test lab plugin

* Use firebase-sessions branch

* Increase time to log session to 60 seconds

* Move currentTimeUs into WallClock (#4890)

* Populate sampling rate in session event (#4891)

* Populate sampling rate in session event

* Fix test

* Fix merge

* Add TimeProvider interface to abstract away the clock (#4905)

* Add TimeProvider interface to abstract away the clock

* Add comment about default elapsed time being zero

* Fill in device_model field for AQS (#4892)

* Implement sampling (#4896)

* Implement sampling

* return

* Remove collectEvents from SessionDetails, use sessionGenerator.collectEvents

* Don't generate whole Session Start event for sampled event

* Fix log message

* Add Sessions to benchmark config (#4914)

* Introduce remote config cache for storing configs fetched remotely. (#4917)

* Make logging consistent with Apple SDK (#4919)

* Pass a CoroutineContext, not CoroutineDispatcher, to SessionCoordinator (#4950)

* Implement remote config fetcher to fetch and cache configs. (#4967)

* Add os_version, app_build_version, device_manufacturer for Sessions #11222 (#4984)

* Add App information for config fetching. (#4992)

* Update the header params for network request. (#4995)

* Add thread safe FirebaseSessionsDependencies (#4983)

* Add thread safe FirebaseSessionsDependencies

* Remove debug line

* Format

* Address comments

* Rename to getRegisteredSubscribers

* Add register api to FirebaseSessions so products can integrate (#4989)

* Add thread safe FirebaseSessionsDependencies

* Remove debug line

* Format

* Add register api to FirebaseSessions so products can integrate

* Fix Android tests and api txt file

* Address comments

* Address comments

* Rename to getRegisteredSubscribers

* Fix callsite

* Add Sessions to Crashlytics (#4993)

* Add thread safe FirebaseSessionsDependencies

* Remove debug line

* Format

* Add register api to FirebaseSessions so products can integrate

* Fix Android tests and api txt file

* Add Sessions to Crashlytics

* Address comments

* Address comments

* Rename to getRegisteredSubscribers

* Fix callsite

* Add todo

* Fix gradle command in README

* Use firebase-encoders-processor instead of manually building encoder (#5030)

* Fix behaviour with multiple subscribers (#5031)

* Fix behaviour with multiple subscribers

* Fix format

* Integrate Firebase Performance with Firebase Sessions. (#5020)

* Clean up how we launch suspend functions (#5028)

* Make `initiateSessionStart` a suspend function

* Notify subscribers regardless of sampling and data collection state

* Add timestamp to SessionDetails

* Fix format

* Generate the session details on main thread

* Fix tests

* Call it sessionStartTimestampUs for clarity sake

* Add and populate appQualitySessionId in Crashlytics reports (#5045)

* Add and populate appQualitySessionId in Crashlytics reports

* Bump Crashlytics ktx target sdk to 33, same as Java sdk

* Log warning when missing AQS session id

* Pin firebase-datatransport version (#5070)

* Use AQS provided sessionId for Fireperf events. (#5060)

* Fix firebase-crashlytics-ktx instrumented tests (#5068)

* Fix firebase-crashlytics-ktx deps

* Fix CrashlyticsTests and clean up build file

* Make FirebaseCrashlyticsKtxRegistrar internal

* Bump health metrics compile sdk

* Add versionName version

* Add check if Sessions is disabled (#5061)

* Do not send session id to subscribers if Sessions is disabled

* Move the Sessions settings disabled check to after subscrubers

* Add fid to Crashlytics report (#5052)

* Add fid to Crashlytics report

* Format

* Handle IOExceptions when fetching remote settings (#5092)

* Handle IOExceptions went fetching remote settings

* Add failure test case for RemoteSettingsFetcher

* Make remote settings fetch non-blocking (#5095)

* Ensure the settings cache has loaded from disk before reading any values (#5103)

* Make remote settings fetch non-blocking

* Ensure the settings cache has loaded from disk before reading any values

* Fix runtime exception with a load-bearing empty block

* Inline the definition of metadata to avoid needing an empty block

* Comments

* Fetch remote settings on session, not on launch (#5107)

* Make remote settings fetch non-blocking

* Ensure the settings cache has loaded from disk before reading any values

* Fix runtime exception with a load-bearing empty block

* Inline the definition of metadata to avoid needing an empty block

* Fetch remote settings on session, not on launch

* Log warning when we fail to fetch the fid

---------

Co-authored-by: Sam Edson <samedson@google.com>
Co-authored-by: Visu <visumickey@gmail.com>
@firebase firebase locked and limited conversation to collaborators Jul 17, 2023
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