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

[Reverse Replication] Adding load test for custom transformation #2061

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

Conversation

shreyakhajanchi
Copy link
Contributor

No description provided.

Copy link

codecov bot commented Dec 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.87%. Comparing base (d3074fc) to head (961e411).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##               main    #2061    +/-   ##
==========================================
  Coverage     46.87%   46.87%            
- Complexity     4009     4336   +327     
==========================================
  Files           874      874            
  Lines         52038    52042     +4     
  Branches       5453     5454     +1     
==========================================
+ Hits          24393    24397     +4     
+ Misses        25905    25904     -1     
- Partials       1740     1741     +1     
Components Coverage Δ
spanner-templates 68.80% <ø> (+<0.01%) ⬆️
spanner-import-export 65.63% <ø> (ø)
spanner-live-forward-migration 76.50% <ø> (ø)
spanner-live-reverse-replication 78.67% <ø> (+0.01%) ⬆️
spanner-bulk-migration 87.87% <ø> (ø)

see 4 files with indirect coverage changes

@shreyakhajanchi shreyakhajanchi marked this pull request as ready for review December 29, 2024 07:04
@shreyakhajanchi shreyakhajanchi requested a review from a team as a code owner December 29, 2024 07:04
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.

Some minor comments.

MigrationTransformationResponse response =
new MigrationTransformationResponse(responseRow, false);
return response;
} else if (request.getTableName().equals("Person")) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add a todo and probably create a bug to rename this file? Looks like we are reusing this for Reverse replication Load tests, so the name should not contain ForLive and IT suffix.

}

@Test
public void reverseReplication1KTpsLoadTest()
Copy link
Contributor

Choose a reason for hiding this comment

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

Please change the method name to contain context of full test case. reverseReplication1KTpsWithCustomTransformation maybe?

private final String spannerDdlResource = "SpannerToMySqlSourceLT/spanner-schema.sql";
private final String sessionFileResource = "SpannerToMySqlCustomTransformationLT/session.json";
private final String dataGeneratorSchemaResource =
"SpannerToMySqlSourceLT/datagenerator-schema.json";
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you not need a new datagenerator-schema?

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.

2 participants