Skip to content

Adds generally useful executors#4305

Merged
vkryachko merged 1 commit intoexecutorsfrom
vk.more_executors
Nov 11, 2022
Merged

Adds generally useful executors#4305
vkryachko merged 1 commit intoexecutorsfrom
vk.more_executors

Conversation

@vkryachko
Copy link
Member

Namely, SequentialExecutor and directExecutor.

@google-oss-bot
Copy link
Collaborator

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

Generated by 🚫 Danger

@vkryachko vkryachko requested a review from daymxn November 10, 2022 19:35
Namely, SequentialExecutor and directExecutor.
@google-oss-bot
Copy link
Collaborator

google-oss-bot commented Nov 10, 2022

Coverage Report 1

Affected Products

  • firebase-common

    Overall coverage changed from ? (3cf020a) to 59.43% (7197814) by ?.

    39 individual files with coverage change

    FilenameBase (3cf020a)Merge (7197814)Diff
    AutoValue_HeartBeatResult.java?33.33%?
    AutoValue_LibraryVersion.java?58.33%?
    AutoValue_SdkHeartBeatResult.java?0.00%?
    ComponentDiscoveryService.java?0.00%?
    ComponentMonitor.java?100.00%?
    CustomThreadFactory.java?54.55%?
    DataCollectionConfigStorage.java?88.89%?
    DataCollectionDefaultChange.java?100.00%?
    DefaultHeartBeatController.java?95.59%?
    DefaultUserAgentPublisher.java?95.45%?
    DelegatingScheduledExecutorService.java?22.64%?
    DelegatingScheduledFuture.java?69.23%?
    EmulatedServiceSettings.java?0.00%?
    ExecutorsRegistrar.java?100.00%?
    FirebaseApp.java?56.02%?
    FirebaseAppLifecycleListener.java?0.00%?
    FirebaseCommonRegistrar.java?95.74%?
    FirebaseError.java?0.00%?
    FirebaseExecutors.java?0.00%?
    FirebaseInitProvider.java?58.82%?
    FirebaseNetworkException.java?0.00%?
    FirebaseOptions.java?31.94%?
    FirebaseTooManyRequestsException.java?0.00%?
    FirebaseTrace.java?100.00%?
    GlobalLibraryVersionRegistrar.java?75.00%?
    HeartBeatConsumer.java?0.00%?
    HeartBeatConsumerComponent.java?0.00%?
    HeartBeatController.java?0.00%?
    HeartBeatInfo.java?100.00%?
    HeartBeatInfoStorage.java?90.57%?
    HeartBeatResult.java?100.00%?
    KotlinDetector.java?66.67%?
    LibraryVersion.java?100.00%?
    LibraryVersionComponent.java?100.00%?
    PublicApi.java?0.00%?
    SdkHeartBeatResult.java?0.00%?
    SequentialExecutor.java?0.00%?
    UiExecutor.java?60.00%?
    UserAgentPublisher.java?0.00%?

Test Logs

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

@google-oss-bot
Copy link
Collaborator

Size Report 1

Affected Products

  • firebase-common

    TypeBase (3cf020a)Merge (76e7264)Diff
    aar58.3 kB64.4 kB+6.14 kB (+10.5%)
    apk (release)696 kB699 kB+2.69 kB (+0.4%)

Test Logs

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

@github-actions
Copy link
Contributor

Unit Test Results

   342 files     342 suites   17m 24s ⏱️
4 308 tests 4 285 ✔️ 22 💤 1
4 324 runs  4 301 ✔️ 22 💤 1

For more details on these failures, see this check.

Results for commit 8835b50.

@vkryachko vkryachko merged commit 6b7178a into executors Nov 11, 2022
@vkryachko vkryachko deleted the vk.more_executors branch November 11, 2022 18:09
vkryachko added a commit that referenced this pull request Nov 15, 2022
* Add qualifier support to firebase components. (#3180)

* Add qualifier support to firebase components.

Details: go/firebase-component-qualifiers

* fix errorprone error.

* change copyright year.

* Register executors as components. (#4288)

* Register executors as components.

The intent for those is to be used by all Firebase SDKs and forbid
creating their own at will.

* Add copyrights.

* add more copyrights

* ktlintformat

* gJF

* ktlint

* Address review comments.

* Adds generally useful executors (#4305)

Namely, SequentialExecutor and directExecutor.

* Enable strict mode for executors. (#4303)

Any violations would kill the app in debug builds of firebase-common,
and log a warning in release builds. This is done to fail tests that
incorrectly use executors while not affecting 3p apps in release builds.

Additionally correctly set thread priorities in an Android specific way.

* Enable thread pool linter check. (#4297)

* Enable thread pool linter check.

All violations are now suppressed, bugs filed to fix each product.

* ktlint

* Remove init

* Fix copyright
davidmotson pushed a commit that referenced this pull request Nov 28, 2022
* Add qualifier support to firebase components. (#3180)

* Add qualifier support to firebase components.

Details: go/firebase-component-qualifiers

* fix errorprone error.

* change copyright year.

* Register executors as components. (#4288)

* Register executors as components.

The intent for those is to be used by all Firebase SDKs and forbid
creating their own at will.

* Add copyrights.

* add more copyrights

* ktlintformat

* gJF

* ktlint

* Address review comments.

* Adds generally useful executors (#4305)

Namely, SequentialExecutor and directExecutor.

* Enable strict mode for executors. (#4303)

Any violations would kill the app in debug builds of firebase-common,
and log a warning in release builds. This is done to fail tests that
incorrectly use executors while not affecting 3p apps in release builds.

Additionally correctly set thread priorities in an Android specific way.

* Enable thread pool linter check. (#4297)

* Enable thread pool linter check.

All violations are now suppressed, bugs filed to fix each product.

* ktlint

* Remove init

* Fix copyright
@firebase firebase locked and limited conversation to collaborators Dec 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants