Skip to content

chore(spanner): accomodate experimental host in samples#12876

Open
Adarsh-Shrivastava-001 wants to merge 2 commits intogoogleapis:mainfrom
Adarsh-Shrivastava-001:experimental_samples
Open

chore(spanner): accomodate experimental host in samples#12876
Adarsh-Shrivastava-001 wants to merge 2 commits intogoogleapis:mainfrom
Adarsh-Shrivastava-001:experimental_samples

Conversation

@Adarsh-Shrivastava-001
Copy link
Copy Markdown

Add the support for experimental host in sample command.

@Adarsh-Shrivastava-001 Adarsh-Shrivastava-001 requested review from a team as code owners April 21, 2026 16:58
Copy link
Copy Markdown
Contributor

@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 the libraries-bom version to 26.79.0 and modifies several Spanner sample snippets to incorporate ExperimentalHostHelper for handling experimental host configurations. Additionally, it updates the main class reference in the pom.xml and adds a missing import in MutableCredentialsExample.java. I have no feedback to provide.

@snippet-bot
Copy link
Copy Markdown

snippet-bot Bot commented Apr 21, 2026

Here is the summary of changes.

You are about to add 1 region tag.
You are about to delete 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

<archive>
<index>false</index>
<manifest>
<mainClass>com.example.spanner.admin.archived.SpannerSample</mainClass>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don't think this change is intentional?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This change is intentional as we want to pick the newer version the mentioned class. Do you see any problems with this?

import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ThreadFactory;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is this intentional?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Yes, else this cause compilation failure. essentially its missing is current version of code.

Copy link
Copy Markdown
Contributor

@rahul2393 rahul2393 left a comment

Choose a reason for hiding this comment

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

Samples are snippets which customer can copy-paste as it is and run in there application, We should not be using testing helper methods here, also can you please share the use-case of these sample changes are they going to land on docs.cloud.google.com?

@Adarsh-Shrivastava-001
Copy link
Copy Markdown
Author

Samples are snippets which customer can copy-paste as it is and run in there application, We should not be using testing helper methods here, also can you please share the use-case of these sample changes are they going to land on docs.cloud.google.com?

I have created a new helper class and migrated required methods with proper error handling to examples package.

Regarding the use case and docs, that will be a followup as discussed.

@olavloite olavloite added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do not merge Indicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants