Skip to content

Collect heartbeat in android #3120

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 9 commits into from
Nov 25, 2021

Conversation

VinayGuthal
Copy link
Contributor

No description provided.

@google-cla google-cla bot added the cla: yes Override cla label Nov 10, 2021
@google-oss-bot
Copy link
Contributor

google-oss-bot commented Nov 10, 2021

Binary Size Report

Affected SDKs

  • base

    Type Base (a5f2f99) Head (3547a4ff) Diff
    apk (aggressive) ? 8.39 kB ? (?)
    apk (release) ? 8.65 kB ? (?)
  • firebase-annotations

    Type Base (a5f2f99) Head (3547a4ff) Diff
    apk (aggressive) ? 8.39 kB ? (?)
    apk (release) ? 8.83 kB ? (?)
  • firebase-common

    Type Base (a5f2f99) Head (3547a4ff) Diff
    aar ? 49.0 kB ? (?)
    apk (aggressive) ? 80.7 kB ? (?)
    apk (release) ? 637 kB ? (?)
  • firebase-components

    Type Base (a5f2f99) Head (3547a4ff) Diff
    aar ? 41.4 kB ? (?)
    apk (aggressive) ? 8.68 kB ? (?)
    apk (release) ? 29.5 kB ? (?)
  • firebase-datatransport

    Type Base (a5f2f99) Head (3547a4ff) Diff
    aar ? 4.83 kB ? (?)
    apk (aggressive) ? 127 kB ? (?)
    apk (release) ? 723 kB ? (?)
  • firebase-encoders

    Type Base (a5f2f99) Head (3547a4ff) Diff
    apk (aggressive) ? 8.68 kB ? (?)
    apk (release) ? 15.3 kB ? (?)
  • firebase-encoders-json

    Type Base (a5f2f99) Head (3547a4ff) Diff
    aar ? 10.5 kB ? (?)
    apk (aggressive) ? 8.68 kB ? (?)
    apk (release) ? 20.1 kB ? (?)
  • firebase-encoders-proto

    Type Base (a5f2f99) Head (3547a4ff) Diff
    apk (aggressive) ? 8.68 kB ? (?)
    apk (release) ? 21.6 kB ? (?)
  • firebase-installations

    Type Base (a5f2f99) Head (3547a4ff) Diff
    aar ? 54.6 kB ? (?)
    apk (aggressive) ? 82.2 kB ? (?)
    apk (release) ? 659 kB ? (?)
  • firebase-installations-interop

    Type Base (a5f2f99) Head (3547a4ff) Diff
    aar ? 8.06 kB ? (?)
    apk (aggressive) ? 55.4 kB ? (?)
    apk (release) ? 607 kB ? (?)
  • firebase-messaging

    Type Base (a5f2f99) Head (3547a4ff) Diff
    aar ? 221 kB ? (?)
    apk (aggressive) ? 546 kB ? (?)
    apk (release) ? 2.46 MB ? (?)
  • transport-api

    Type Base (a5f2f99) Head (3547a4ff) Diff
    aar ? 6.57 kB ? (?)
    apk (aggressive) ? 8.68 kB ? (?)
    apk (release) ? 14.9 kB ? (?)
  • transport-backend-cct

    Type Base (a5f2f99) Head (3547a4ff) Diff
    aar ? 53.5 kB ? (?)
    apk (aggressive) ? 58.0 kB ? (?)
    apk (release) ? 105 kB ? (?)
  • transport-runtime

    Type Base (a5f2f99) Head (3547a4ff) Diff
    aar ? 178 kB ? (?)
    apk (aggressive) ? 43.8 kB ? (?)
    apk (release) ? 82.6 kB ? (?)

Test Logs

Notes

Head commit (3547a4ff) is created by Prow via merging commits: a5f2f99 53905fb.

@google-oss-bot
Copy link
Contributor

google-oss-bot commented Nov 10, 2021

Coverage Report

Affected SDKs

  • firebase-common

    SDK overall coverage changed from 53.21% (a5f2f99) to 56.37% (3547a4ff) by +3.16%.

    Filename Base (a5f2f99) Head (3547a4ff) Diff
    AutoValue_HeartBeatResult.java 0.00% 33.33% +33.33%
    AutoValue_SdkHeartBeatResult.java 54.55% 0.00% -54.55%
    DefaultHeartBeatController.java ? 42.86% ?
    DefaultHeartBeatInfo.java 10.34% 22.58% +12.24%
    FirebaseApp.java 52.68% 54.25% +1.56%
    FirebaseCommonRegistrar.java 95.74% 95.83% +0.09%
    HeartBeatController.java ? 0.00% ?
    HeartBeatInfoStorage.java 80.65% 87.80% +7.16%
    HeartBeatResult.java 0.00% 100.00% +100.00%
    SdkHeartBeatResult.java 100.00% 0.00% -100.00%

Test Logs

Notes

HTML coverage reports can be produced locally with ./gradlew <product>:checkCoverage.
Report files are located at <product-build-dir>/reports/jacoco/.

Head commit (3547a4ff) is created by Prow via merging commits: a5f2f99 53905fb.

@maksymmalyhin
Copy link

cc @paulb777

String persistenceKey,
Set<HeartBeatConsumer> consumers,
Provider<UserAgentPublisher> userAgentProvider) {
// It is very important the executor is single threaded as otherwise it would lead to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of having this hard requirement to have a single threaded executor, would it make sense to instead make critical sections synchronized(DefaultHeartBeatController.this) { /* .. */ }?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this comment be removed now?

@vkryachko
Copy link
Member

Looks like CI failures are legit

String expected =
Base64.getEncoder()
.encodeToString(
"[{\"date\":[\"2015-03-02\"],\"agent\":\"test-agent\",\"version\":\"1\"},{\"date\":[\"2015-03-03\"],\"agent\":\"test-agent-1\",\"version\":\"1\"}]"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the version part of every object? I think instead we wanted it to be:

{
  "version": "1",
  "heartbeats": []
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

String persistenceKey,
Set<HeartBeatConsumer> consumers,
Provider<UserAgentPublisher> userAgentProvider) {
// It is very important the executor is single threaded as otherwise it would lead to
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this comment be removed now?

String expected =
Base64.getEncoder()
.encodeToString(
"[{\"date\":[\"2015-03-02\"],\"agent\":\"test-agent\",\"version\":\"1\"},{\"date\":[\"2015-03-03\"],\"agent\":\"test-agent-1\",\"version\":\"1\"}]"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

@VinayGuthal VinayGuthal changed the base branch from master to platform_logging_main_branch November 25, 2021 09:03
@VinayGuthal
Copy link
Contributor Author

/test check-changed

@google-oss-bot
Copy link
Contributor

@VinayGuthal: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
device-check-changed 53905fb 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.

@VinayGuthal VinayGuthal merged commit feb69dd into platform_logging_main_branch Nov 25, 2021
@VinayGuthal VinayGuthal deleted the platform_heartbeat branch November 25, 2021 09:37
@firebase firebase locked and limited conversation to collaborators Dec 26, 2021
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.

5 participants