Skip to content

Add PROTO BUNDLE integration tests and downstream usage docs - #72

Merged
apstndb merged 2 commits into
mainfrom
docs/proto-bundle-downstream-validation
Jun 26, 2026
Merged

Add PROTO BUNDLE integration tests and downstream usage docs#72
apstndb merged 2 commits into
mainfrom
docs/proto-bundle-downstream-validation

Conversation

@apstndb

@apstndb apstndb commented Jun 26, 2026

Copy link
Copy Markdown
Owner

Summary

  • Downstream validation in spanner-emulator-survey confirmed WithSetupFileDescriptorSet / WithSetupRawFileDescriptorSet work on the emulator create path; no API bug fixes were needed.
  • Add emulator integration tests that assert INFORMATION_SCHEMA.SCHEMATA.PROTO_BUNDLE is populated after bootstrap.
  • Document the WithSetupDDLs + descriptor option pairing in README, pkg.go.dev example, and option doc comment.

Test plan

  • go test -race -run 'TestSetupEmulatorWithClientsProtoBundle|TestSetupClientsProtoBundleWithRawDescriptors' .
  • golangci-lint run
  • CI

Made with Cursor

Downstream validation in spanner-emulator-survey confirmed the FileDescriptorSet bootstrap options work without API changes; document the pairing pattern and add emulator tests for both descriptor option variants.

Co-authored-by: Cursor <cursoragent@cursor.com>

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

Copy link
Copy Markdown

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 introduces support and documentation for setting up proto bundles in the Spanner emulator using WithSetupFileDescriptorSet and WithSetupRawFileDescriptorSet. It includes updates to the README, a new runnable example, and integration tests. The review feedback highlights that the test helper exampleShippingFileDescriptorSet constructs an invalid FileDescriptorProto because it lacks a syntax definition, a file name, and enum values, which are required by Cloud Spanner.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment thread proto_bundle_test.go
Set file name, syntax, and enum values so the bootstrap helper matches Cloud Spanner descriptor expectations.

Co-authored-by: Cursor <cursoragent@cursor.com>
@apstndb

apstndb commented Jun 26, 2026

Copy link
Copy Markdown
Owner Author

/gemini review

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

Copy link
Copy Markdown

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 documentation, examples, and tests for using CREATE PROTO BUNDLE and ALTER PROTO BUNDLE setup DDLs alongside WithSetupFileDescriptorSet and WithSetupRawFileDescriptorSet. Specifically, it updates the README, adds a runnable example in example_test.go, clarifies the documentation in options.go, and introduces integration tests in proto_bundle_test.go to verify the proto bundle setup. I have no feedback to provide as the changes are well-implemented and documented.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@apstndb
apstndb merged commit 6c0e4f9 into main Jun 26, 2026
4 checks passed
@apstndb
apstndb deleted the docs/proto-bundle-downstream-validation branch June 26, 2026 20:14
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.

1 participant