-
Notifications
You must be signed in to change notification settings - Fork 88
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: adapt toString
tests to introduction of java.time in gax
#2274
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diegomarquezp
added
the
do not merge
Indicates a pull request not ready for merge, due to either quality or timing.
label
Jul 5, 2024
product-auto-label
bot
added
size: s
Pull request size is small.
api: bigtable
Issues related to the googleapis/java-bigtable API.
labels
Jul 5, 2024
diegomarquezp
added a commit
to googleapis/sdk-platform-java
that referenced
this pull request
Jul 8, 2024
…all (#3016) Fixes #3015 Fixes #3014 Gax tracing internally works with `attemptFailedDuration`, which defaults to a no-op. Downstream libraries use `attemptFailed`, which has a custom behavior. What happens when an attempt-failed event occurs is that `attemptFailedDuration` is called instead (in favor of using java.time methods internally). This fix makes `attemptFailedDuration`'s behavior to delegate the logic to `attemptFailed`. The downstreams will keep failing because the repos haven't got adapted to the new change in gax. See the follow ups below. ### Fixes in `java-spanner` ![image](https://github.com/googleapis/sdk-platform-java/assets/22083784/85e50341-fe8b-46c8-9743-8de1ca300058) ### Fixes in `java-bigtable` ![image](https://github.com/googleapis/sdk-platform-java/assets/22083784/026af401-1607-4465-abd5-1ee5ddc353d0) ### Follow ups in `java-bigtable` More failures in java-bigtable to be addressed in that repo: ``` Error: BigtableTableAdminSettingsTest.testToString:175 expected to contain: totalTimeout=PT13H32M but was : BigtableTableAdminSettings{projectId=our-project-85, instanceId=our-instance-06, ... ``` Fixed in googleapis/java-bigtable#2274 ### Follow ups in `java-spanner` ``` Error: Failures: Error: CompositeTracerTest.testMethodsOverrideMetricsTracer:238 Method not found in compositeTracerMethods: public void com.google.api.gax.tracing.MetricsTracer.attemptFailedDuration(java.lang.Throwable,java.time.Duration) ``` Fixed in googleapis/java-spanner#3200
This was referenced Jul 9, 2024
Warning: This pull request is touching the following templated files:
|
gcf-owl-bot
bot
removed
the
owlbot:run
Add this label to trigger the Owlbot post processor.
label
Aug 5, 2024
lqiu96
added
kokoro:force-run
Add this label to force Kokoro to re-run the tests.
and removed
do not merge
Indicates a pull request not ready for merge, due to either quality or timing.
kokoro:force-run
Add this label to force Kokoro to re-run the tests.
labels
Aug 5, 2024
lqiu96
approved these changes
Aug 5, 2024
@igorbernstein2 I merged #2274 into this PR. I believe this PR will need the latest shared-deps to pass. This fix should resolve the failing unit tests in the other PRs. |
igorbernstein2
approved these changes
Aug 6, 2024
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
api: bigtable
Issues related to the googleapis/java-bigtable API.
size: s
Pull request size is small.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
to be merged once
gapic-genreator-java
is updated to>2.42.0
Adapts the
toString
tests of*SettingsTest
given the new internal variables usingjava.time
in gax (introduced by googleapis/sdk-platform-java#1872)Confirmed it works by using
gax 2.51.1-SNAPSHOT
BEGIN_COMMIT_OVERRIDE
fix: adapt toString tests to introduction of java.time in gax
deps: update shared dependencies
END_COMMIT_OVERRIDE