Skip to content

Conversation

@darshan-sj
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Sep 21, 2025

Codecov Report

❌ Patch coverage is 0% with 23 lines in your changes missing coverage. Please review.
✅ Project coverage is 50.85%. Comparing base (3a6e719) to head (6489adc).
⚠️ Report is 11 commits behind head on main.

Files with missing lines Patch % Lines
...he/beam/it/gcp/spanner/SpannerResourceManager.java 0.00% 11 Missing ⚠️
...ain/java/org/apache/beam/it/gcp/TestConstants.java 0.00% 7 Missing ⚠️
.../java/org/apache/beam/it/gcp/TemplateTestBase.java 0.00% 3 Missing ⚠️
...c/main/java/org/apache/beam/it/gcp/JDBCBaseIT.java 0.00% 2 Missing ⚠️

❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (80.00%). You can increase the patch coverage or adjust the target coverage.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2803      +/-   ##
============================================
+ Coverage     50.79%   50.85%   +0.05%     
- Complexity     5122     5510     +388     
============================================
  Files           976      976              
  Lines         60058    60100      +42     
  Branches       6569     6574       +5     
============================================
+ Hits          30509    30564      +55     
+ Misses        27407    27383      -24     
- Partials       2142     2153      +11     
Components Coverage Δ
spanner-templates 71.00% <ø> (-0.01%) ⬇️
spanner-import-export 68.98% <ø> (+0.01%) ⬆️
spanner-live-forward-migration 80.10% <ø> (+<0.01%) ⬆️
spanner-live-reverse-replication 77.71% <ø> (-0.07%) ⬇️
spanner-bulk-migration 88.43% <ø> (-0.02%) ⬇️
Files with missing lines Coverage Δ
...c/main/java/org/apache/beam/it/gcp/JDBCBaseIT.java 0.00% <0.00%> (ø)
.../java/org/apache/beam/it/gcp/TemplateTestBase.java 0.00% <0.00%> (ø)
...ain/java/org/apache/beam/it/gcp/TestConstants.java 0.00% <0.00%> (ø)
...he/beam/it/gcp/spanner/SpannerResourceManager.java 76.86% <0.00%> (-0.58%) ⬇️

... and 9 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@darshan-sj darshan-sj force-pushed the spanner-pr-on-new-project branch from 11ac51d to 94dd7c0 Compare November 3, 2025 23:14
@darshan-sj darshan-sj force-pushed the spanner-pr-on-new-project branch 3 times, most recently from b2bb7ab to 9f02241 Compare January 8, 2026 07:59
@darshan-sj darshan-sj requested a review from a team as a code owner January 8, 2026 07:59
@darshan-sj darshan-sj force-pushed the spanner-pr-on-new-project branch from 9f02241 to 0da86af Compare January 8, 2026 08:05
Copy link
Contributor

@bharadwaj-aditya bharadwaj-aditya left a comment

Choose a reason for hiding this comment

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

Added a few comments, but i don't completely understand the flow here.

pip install -r test-infra/requirements.txt
- name: Run cleanup_pubsub_notifications.py
run: python test-infra/cleanup_pubsub_notifications.py
run: python test-infra/cleanup_pubsub_notifications.py --project cloud-teleport-testing
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be span-cloud-teleport-testing ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The span-cloud-teleport-testing project is there in line 67 and 69. We have some tests like DatastreamToSql and the Import/export tests run on old project for which cleanup pubsub notifications and cleanup spanner databases scripts need to be run on the old cloud-teleport-testing project.

// Example output:
// [0.005s][warning][perf,memops] Cannot use file /tmp/hsperfdata_runner/109499 ...
// /home/runner/.m2/repository
String[] lines = basePath.split("\\r?\\n");
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems very specific. How do we make sure it covers all cases of output ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Correct the logic and made it generic. Actually this is a side bug fix, and not directly related to "Making Spanner ITs run on dedicated project" work.

this.instanceId = randomInstanceName;
} else if (System.getProperty("spannerInstanceId") != null) {
|| Objects.equals(projectId, "span-cloud-teleport-testing")) {
if (Strings.isNullOrEmpty(System.getProperty("spannerInstanceId"))
Copy link
Contributor

Choose a reason for hiding this comment

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

who sets the spannerInstanceId ?
Can you add the flow to the comments / PR ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The spannerInstanceId is set in the maven command run to execute the integration tests. For the scheduled runs it is set in the go lang code in the cicd/cmd/ folder which generates and executes the tests for the github action workflows.

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