Skip to content

chore: move snippets to library output - #14705

Merged
JoeWang1127 merged 3 commits into
googleapis:mainfrom
JoeWang1127:chore/update-snippets-2
Jun 4, 2026
Merged

JoeWang1127 merged 3 commits into
googleapis:mainfrom
JoeWang1127:chore/update-snippets-2

Conversation

@JoeWang1127

@JoeWang1127 JoeWang1127 commented Jun 4, 2026 •

Copy link
Copy Markdown
Contributor

Move snippets to {library}/examples directory.

The snippets in internal/generated/snippets will be removed after snippet directories are updated in the internal system.

See go/sdk-librarian-cglo for more details.

Fixes googleapis/librarian#6294

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

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.

Code Review

This pull request adds auto-generated Go code examples and snippet metadata files for several Google Cloud client libraries, including Access Approval, Access Context Manager, Advisory Notifications, Generative Language, and AlloyDB. These files provide boilerplate templates for calling various API methods. As there are no review comments, I have no feedback to provide.

@JoeWang1127
JoeWang1127 marked this pull request as ready for review June 4, 2026 14:49
@JoeWang1127
JoeWang1127 requested review from a team as code owners June 4, 2026 14:49
@snippet-bot

snippet-bot Bot commented Jun 4, 2026 •

Copy link
Copy Markdown

Here is the summary of possible violations 😱

Details

There are 212 possible violations for not having product prefix.

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

@JoeWang1127
JoeWang1127 merged commit a4dddde into googleapis:main Jun 4, 2026
15 of 17 checks passed
bhshkh added a commit that referenced this pull request Jun 9, 2026
…#19927)

The continuous integration script runs tests in directories containing
Go files. However, the generated examples in directories matching
/examples/ (such as
accesscontextmanager/examples/apiv1/Client/CommitServicePerimeters)
contain only example code with the examples build tag. Running tests in
these directories without the examples tag causes go test to fail
because all files are excluded by build constraints.

To prevent these failures, skip running tests in directories that
contain /examples/ in their path, unless they are inside
/internal/examples/.

2381 tests failed:
https://github.com/googleapis/google-cloud-go/issues?q=is%3Aissue%20state%3Aopen%20%22examples%22%20created%3A2026-06-05%20label%3A%22flakybot%3A%20issue%22%20label%3A%22type%3A%20bug%22


Snippets were recently moved in
#14705

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
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.

google-cloud-go: move snippets to library directory

2 participants