Skip to content

fix: Use a single instance of the default serializer#3156

Merged
amanda-tarafa merged 3 commits intogoogleapis:mainfrom
amanda-tarafa:static-default-serializer
Apr 20, 2026
Merged

fix: Use a single instance of the default serializer#3156
amanda-tarafa merged 3 commits intogoogleapis:mainfrom
amanda-tarafa:static-default-serializer

Conversation

@amanda-tarafa
Copy link
Copy Markdown
Contributor

Plus, fixes some tests that were failing for unrelated reasons.

Reviewing one commit at a time will be better.

@amanda-tarafa amanda-tarafa requested a review from a team as a code owner April 20, 2026 23:05
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request updates integration tests by replacing the CloudMachineLearningEngine service with BigtableAdmin for path testing, adds a license header to RestPathTests.cs, and optimizes BaseClientService to use a singleton for the JSON serializer. Feedback suggests strengthening translation assertions in DataWrapperTests.cs to include multiple keywords and removing trailing whitespace in RestPathTests.cs.

Comment thread Src/Support/Google.Apis.IntegrationTests/DataWrapperTests.cs
Comment thread Src/Support/Google.Apis.IntegrationTests/DataWrapperTests.cs
Comment thread Src/Support/Google.Apis.IntegrationTests/RestPathTests.cs Outdated
Comment thread Src/Support/Google.Apis.IntegrationTests/RestPathTests.cs Outdated
We get slightly different results every time.

Fixes b/504743127
when creating service clients, instead of creating a new one each time, which behaves the same as the single instance that's been created already.

Fixes googleapis#3148
@amanda-tarafa amanda-tarafa force-pushed the static-default-serializer branch from 5612808 to a67512d Compare April 20, 2026 23:31
@amanda-tarafa amanda-tarafa merged commit af061f5 into googleapis:main Apr 20, 2026
5 checks passed
@amanda-tarafa amanda-tarafa deleted the static-default-serializer branch April 20, 2026 23:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants