Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Bulk IT Tests #2005

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

asthamohta
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 52.93%. Comparing base (c67dd1e) to head (869a4c7).
Report is 4 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2005      +/-   ##
============================================
+ Coverage     45.40%   52.93%   +7.52%     
+ Complexity     3672     1367    -2305     
============================================
  Files           842      378     -464     
  Lines         49970    20661   -29309     
  Branches       5261     2090    -3171     
============================================
- Hits          22690    10936   -11754     
+ Misses        25608     9045   -16563     
+ Partials       1672      680     -992     
Components Coverage Δ
spanner-templates 67.93% <ø> (+1.25%) ⬆️
spanner-import-export ∅ <ø> (∅)
spanner-live-forward-migration 75.88% <ø> (ø)
spanner-live-reverse-replication 76.65% <ø> (ø)
spanner-bulk-migration 86.37% <ø> (ø)

see 481 files with indirect coverage changes

@asthamohta asthamohta marked this pull request as ready for review November 15, 2024 14:15
@asthamohta asthamohta requested a review from a team as a code owner November 15, 2024 14:15
* changes to schema. Changes include Index changes, Primary key transformations and Generated
* columns migration.
*/
@Category({TemplateIntegrationTest.class, SkipDirectRunnerTest.class})
Copy link
Contributor

@Deep1998 Deep1998 Nov 19, 2024

Choose a reason for hiding this comment

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

nit: If its meant to test primary key transformations and generated columns and index change specifically, can we modify the name to capture that, maybe advancedSchemaChangesIT or something like that.
with comments mentioning more details like this tests:

  • Different indexes
  • Different primary key columns
  • Generated and Default value columns at Source and Not on Spanner migrated correctly.
    THis helps track what sort of cases are covered.

spannerResourceManager.readTableRecords(
"employee_attribute", "employee_id", "attribute_name", "value");

SpannerAsserts.assertThatStructs(employeeAttribute).hasRows(4); // Supports composite keys
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason we are not doing full row matches like the first assert?

Copy link
Contributor

Choose a reason for hiding this comment

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

+1 add full row asserts wherever possible.

Copy link
Contributor

@darshan-sj darshan-sj left a comment

Choose a reason for hiding this comment

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

LGTM

spannerResourceManager.readTableRecords(
"employee_attribute", "employee_id", "attribute_name", "value");

SpannerAsserts.assertThatStructs(employeeAttribute).hasRows(4); // Supports composite keys
Copy link
Contributor

Choose a reason for hiding this comment

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

+1 add full row asserts wherever possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants