Skip to content

Parameterizing spanner Host in spanner tests#2020

Merged
darshan-sj merged 7 commits intoGoogleCloudPlatform:mainfrom
darshan-sj:import-export-it
Dec 3, 2024
Merged

Parameterizing spanner Host in spanner tests#2020
darshan-sj merged 7 commits intoGoogleCloudPlatform:mainfrom
darshan-sj:import-export-it

Conversation

@darshan-sj
Copy link
Copy Markdown
Contributor

@darshan-sj darshan-sj commented Nov 18, 2024

  • If "spannerHost" parameter is passed then the spanner tests will be run only on that spannerHost. Else, all of them will be run twice: once with "staging" as spanner host and once with "default" as spanner host. The test names will appear as testSpannerToGCSAvroBase[staging] and testSpannerToGCSAvroBase[default]

@darshan-sj darshan-sj requested a review from a team as a code owner November 18, 2024 09:29
@darshan-sj darshan-sj added the improvement Making existing code better label Nov 18, 2024
@codecov
Copy link
Copy Markdown

codecov bot commented Nov 18, 2024

Codecov Report

Attention: Patch coverage is 27.27273% with 8 lines in your changes missing coverage. Please review.

Project coverage is 45.92%. Comparing base (046865d) to head (9dc0b0a).
Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
...che/beam/it/gcp/spanner/SpannerTemplateITBase.java 0.00% 4 Missing ⚠️
.../java/org/apache/beam/it/gcp/TemplateTestBase.java 0.00% 3 Missing ⚠️
...he/beam/it/gcp/spanner/SpannerResourceManager.java 75.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2020      +/-   ##
============================================
+ Coverage     45.51%   45.92%   +0.41%     
- Complexity     3704     4101     +397     
============================================
  Files           845      850       +5     
  Lines         50084    50635     +551     
  Branches       5268     5318      +50     
============================================
+ Hits          22794    23253     +459     
- Misses        25618    25695      +77     
- Partials       1672     1687      +15     
Components Coverage Δ
spanner-templates 67.49% <ø> (+0.58%) ⬆️
spanner-import-export 65.42% <ø> (+1.21%) ⬆️
spanner-live-forward-migration 76.30% <ø> (+0.42%) ⬆️
spanner-live-reverse-replication 77.23% <ø> (+0.58%) ⬆️
spanner-bulk-migration 86.85% <ø> (+0.30%) ⬆️
Files with missing lines Coverage Δ
...he/beam/it/gcp/spanner/SpannerResourceManager.java 76.47% <75.00%> (+0.56%) ⬆️
.../java/org/apache/beam/it/gcp/TemplateTestBase.java 0.00% <0.00%> (ø)
...che/beam/it/gcp/spanner/SpannerTemplateITBase.java 0.00% <0.00%> (ø)

... and 35 files with indirect coverage changes

@darshan-sj darshan-sj requested a review from Polber November 19, 2024 13:51
Copy link
Copy Markdown
Contributor

@Polber Polber left a comment

Choose a reason for hiding this comment

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

LGTM - much cleaner than the existing solution. I will let someone from Spanner give the official approval

Also, there is other cleanup that will be required either in this PR, or I can submit the following changes after this PR is merged: main...Polber:DataflowTemplates:jkinard/spanner-cleanup

@darshan-sj darshan-sj merged commit a77d886 into GoogleCloudPlatform:main Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement Making existing code better size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants