DataflowTemplates icon indicating copy to clipboard operation
DataflowTemplates copied to clipboard

Add integration tests to bulk spanner migration for table and index limits

Open nmemond opened this issue 1 year ago • 1 comments

This adds integration tests (or updates existing ones) to verify table and index limits during bulk spanner data migration.

This includes tests for the following limits: - max size of a STRING cell - max size of data per cell - max size of a primary key - max size of an index - total size of non-key columns (currently ignored because of OOM issues with low-provisioned VMs/DBs)

nmemond avatar Nov 28 '25 21:11 nmemond

Summary of Changes

Hello @nmemond, I'm Gemini Code Assist[^1]! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the robustness of the bulk Spanner migration by adding comprehensive integration tests for various data size and structural limits within Spanner. These tests ensure that the migration pipeline can handle large data volumes and complex schema configurations, including support for PostgreSQL dialect, thereby improving the reliability and predictability of data migrations.

Highlights

  • New Integration Tests for Spanner Limits: Introduces new integration tests to validate the bulk Spanner migration process against various Spanner table and index limits.
  • Specific Limit Coverage: Tests cover the maximum size of a STRING cell, overall data per cell, primary key size, and index size.
  • PostgreSQL Dialect Support: Existing and new tests now include coverage for PostgreSQL dialect in Spanner.
  • OOM Acknowledgment: Notes that testing the total size of non-key columns is currently ignored due to Out-Of-Memory issues on low-provisioned VMs/DBs.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with :thumbsup: and :thumbsdown: on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

[^1]: Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

gemini-code-assist avatar Nov 28 '25 21:11 gemini-code-assist

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 55.84%. Comparing base (fa4c196) to head (951ba04).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #3033      +/-   ##
============================================
+ Coverage     50.48%   55.84%   +5.35%     
+ Complexity     5040     1634    -3406     
============================================
  Files           973      471     -502     
  Lines         59721    26473   -33248     
  Branches       6511     2775    -3736     
============================================
- Hits          30149    14783   -15366     
+ Misses        27443    10794   -16649     
+ Partials       2129      896    -1233     
Components Coverage Δ
spanner-templates 71.83% <ø> (+1.10%) :arrow_up:
spanner-import-export ∅ <ø> (∅)
spanner-live-forward-migration 80.08% <ø> (-0.02%) :arrow_down:
spanner-live-reverse-replication 77.80% <ø> (-0.02%) :arrow_down:
spanner-bulk-migration 88.22% <ø> (-0.02%) :arrow_down:
see 521 files with indirect coverage changes
:rocket: New features to boost your workflow:
  • :snowflake: Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • :package: JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

codecov[bot] avatar Dec 12 '25 06:12 codecov[bot]