-
Notifications
You must be signed in to change notification settings - Fork 624
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
Conversation
Binary Size ReportAffected SDKs
Test Logs
NotesHead commit (3547a4ff) is created by Prow via merging commits: a5f2f99 53905fb. |
Coverage ReportAffected SDKs
Test Logs
NotesHTML coverage reports can be produced locally with Head commit (3547a4ff) is created by Prow via merging commits: a5f2f99 53905fb. |
firebase-common/src/main/java/com/google/firebase/heartbeatinfo/HeartBeatController.java
Outdated
Show resolved
Hide resolved
firebase-common/src/main/java/com/google/firebase/heartbeatinfo/HeartBeatController.java
Outdated
Show resolved
Hide resolved
firebase-common/src/main/java/com/google/firebase/heartbeatinfo/DefaultHeartBeatController.java
Outdated
Show resolved
Hide resolved
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 |
There was a problem hiding this comment.
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) { /* .. */ }
?
There was a problem hiding this comment.
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?
firebase-common/src/main/java/com/google/firebase/heartbeatinfo/HeartBeatInfoStorage.java
Outdated
Show resolved
Hide resolved
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\"}]" |
There was a problem hiding this comment.
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": []
}
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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?
firebase-common/src/main/java/com/google/firebase/FirebaseApp.java
Outdated
Show resolved
Hide resolved
firebase-common/src/main/java/com/google/firebase/heartbeatinfo/DefaultHeartBeatController.java
Outdated
Show resolved
Hide resolved
firebase-common/src/main/java/com/google/firebase/heartbeatinfo/HeartBeatInfoStorage.java
Outdated
Show resolved
Hide resolved
firebase-common/src/main/java/com/google/firebase/heartbeatinfo/HeartBeatInfoStorage.java
Outdated
Show resolved
Hide resolved
firebase-common/src/main/java/com/google/firebase/heartbeatinfo/HeartBeatInfoStorage.java
Outdated
Show resolved
Hide resolved
firebase-common/src/main/java/com/google/firebase/heartbeatinfo/HeartBeatInfoStorage.java
Outdated
Show resolved
Hide resolved
firebase-common/src/main/java/com/google/firebase/heartbeatinfo/HeartBeatInfoStorage.java
Outdated
Show resolved
Hide resolved
firebase-common/src/main/java/com/google/firebase/heartbeatinfo/HeartBeatInfoStorage.java
Outdated
Show resolved
Hide resolved
firebase-common/src/main/java/com/google/firebase/heartbeatinfo/DefaultHeartBeatController.java
Outdated
Show resolved
Hide resolved
firebase-common/src/main/java/com/google/firebase/heartbeatinfo/DefaultHeartBeatController.java
Outdated
Show resolved
Hide resolved
firebase-common/src/main/java/com/google/firebase/heartbeatinfo/HeartBeatInfoStorage.java
Outdated
Show resolved
Hide resolved
String expected = | ||
Base64.getEncoder() | ||
.encodeToString( | ||
"[{\"date\":[\"2015-03-02\"],\"agent\":\"test-agent\",\"version\":\"1\"},{\"date\":[\"2015-03-03\"],\"agent\":\"test-agent-1\",\"version\":\"1\"}]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
firebase-common/src/main/java/com/google/firebase/heartbeatinfo/HeartBeatController.java
Outdated
Show resolved
Hide resolved
...e-common/src/test/java/com/google/firebase/heartbeatinfo/DefaultHeartBeatControllerTest.java
Outdated
Show resolved
Hide resolved
/test check-changed |
@VinayGuthal: The following test failed, say
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. |
No description provided.