-
Notifications
You must be signed in to change notification settings - Fork 39
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
test: fix list logs test flakiness #301
test: fix list logs test flakiness #301
Conversation
Merge branch 'api-logs-codeowners' of github.com:googleapis/java-logging
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.
Some suggestions could not be made:
- google-cloud-logging/src/main/java/com/google/cloud/logging/LogEntry.java
- lines 35-40
- google-cloud-logging/src/main/java/com/google/cloud/logging/Logging.java
- lines 440-442
- lines 461-465
- lines 681-682
- google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingHandler.java
- lines 38-39
- lines 56-58
- lines 75-76
- google-cloud-logging/src/main/java/com/google/cloud/logging/Metric.java
- lines 29-30
- google-cloud-logging/src/main/java/com/google/cloud/logging/MetricInfo.java
- lines 27-28
- google-cloud-logging/src/main/java/com/google/cloud/logging/SinkInfo.java
- lines 458-459
- lines 617-618
- google-cloud-logging/src/main/java/com/google/cloud/logging/Synchronicity.java
- lines 20-22
- google-cloud-logging/src/main/java/com/google/cloud/logging/spi/v2/LoggingRpc.java
- lines 99-101
google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingLevel.java
Outdated
Show resolved
Hide resolved
google-cloud-logging/src/test/java/com/google/cloud/logging/BaseSystemTest.java
Outdated
Show resolved
Hide resolved
google-cloud-logging/src/test/java/com/google/cloud/logging/BaseSystemTest.java
Outdated
Show resolved
Hide resolved
google-cloud-logging/src/test/java/com/google/cloud/logging/it/ITLoggingTest.java
Outdated
Show resolved
Hide resolved
google-cloud-logging/src/test/java/com/google/cloud/logging/it/ITLoggingTest.java
Outdated
Show resolved
Hide resolved
google-cloud-logging/src/test/java/com/google/cloud/logging/it/ITLoggingTest.java
Outdated
Show resolved
Hide resolved
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.
Some suggestions could not be made:
- google-cloud-logging/src/main/java/com/google/cloud/logging/LogEntry.java
- lines 35-40
- google-cloud-logging/src/main/java/com/google/cloud/logging/Logging.java
- lines 440-442
- lines 461-465
- lines 681-682
- google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingHandler.java
- lines 38-39
- lines 56-58
- lines 75-76
- google-cloud-logging/src/main/java/com/google/cloud/logging/Metric.java
- lines 29-30
- google-cloud-logging/src/main/java/com/google/cloud/logging/MetricInfo.java
- lines 27-28
- google-cloud-logging/src/main/java/com/google/cloud/logging/SinkInfo.java
- lines 458-459
- lines 617-618
- google-cloud-logging/src/main/java/com/google/cloud/logging/Synchronicity.java
- lines 20-22
- google-cloud-logging/src/main/java/com/google/cloud/logging/spi/v2/LoggingRpc.java
- lines 99-101
google-cloud-logging/src/main/java/com/google/cloud/logging/LoggingLevel.java
Outdated
Show resolved
Hide resolved
google-cloud-logging/src/test/java/com/google/cloud/logging/BaseSystemTest.java
Outdated
Show resolved
Hide resolved
google-cloud-logging/src/test/java/com/google/cloud/logging/BaseSystemTest.java
Outdated
Show resolved
Hide resolved
google-cloud-logging/src/test/java/com/google/cloud/logging/it/ITLoggingTest.java
Outdated
Show resolved
Hide resolved
google-cloud-logging/src/test/java/com/google/cloud/logging/it/ITLoggingTest.java
Outdated
Show resolved
Hide resolved
google-cloud-logging/src/test/java/com/google/cloud/logging/it/ITLoggingTest.java
Outdated
Show resolved
Hide resolved
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.
please run mvn com.coveo:fmt-maven-plugin:format
. I'm not sure what's going on with the bot suggestions.
Your PR has attempted to merge for 3 hours. Please check that all required checks have passed, you have an automerge label, and that all your reviewers have approved the PR |
1 similar comment
Your PR has attempted to merge for 3 hours. Please check that all required checks have passed, you have an automerge label, and that all your reviewers have approved the PR |
Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, or one of your required reviews was not approved. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot. |
1 similar comment
Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, or one of your required reviews was not approved. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot. |
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.
Are there Devsite docs that contain these samples with mentions of "stackdriver"? If so, you might want to request changes there as well if you haven't done so already.
String monitoredResourceFilter = | ||
appendResourceTypeFilter(filter.toString(), monitoredResources); | ||
|
||
Logging.EntryListOption[] options = {Logging.EntryListOption.filter(monitoredResourceFilter)}; |
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.
Do you think we should change Logging.EntryListOption.filter
to use a 1 day timestamp filter by default? That's what I did in Python. It seems like a bad developer experience to hang on this function using the default options
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.
That's what I did here too - even a bit more restrictive filter of 1 hour back instead of 24 hours back. If you look at line 106 - I call createTimestampFilter(1) to restrict logs range, then on line 110 I add resourceType filter to further restrict the filter on top of time range.
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.
It looks like you changed the test, but should we change the function itself too? (unless I missed that)
There is a bot that will open a bunch of bugs to verify that all docs pages that include the sample are "OK" with it. I'll verify them as we go. |
Codecov Report
@@ Coverage Diff @@
## master #301 +/- ##
=========================================
Coverage 75.34% 75.34%
Complexity 593 593
=========================================
Files 42 42
Lines 3715 3715
Branches 259 259
=========================================
Hits 2799 2799
Misses 762 762
Partials 154 154
Continue to review full report at Codecov.
|
Fixes #288
Fixes #271
Fixes #270
Fixes #268
Fixes #264 ☕️