Skip to content

test: enable GCP blobstore conformance tests#232

Merged
sandeepvinayak merged 1 commit intosalesforce:mainfrom
Yaminik1996:W-20028687/gcpBlobStoreConformanceTestsRemaining
Jan 15, 2026
Merged

test: enable GCP blobstore conformance tests#232
sandeepvinayak merged 1 commit intosalesforce:mainfrom
Yaminik1996:W-20028687/gcpBlobStoreConformanceTestsRemaining

Conversation

@Yaminik1996
Copy link
Contributor

@Yaminik1996 Yaminik1996 commented Dec 23, 2025

Summary

Enables a bunch of blob store conformance tests for the GCP substrate. The remaining tests will require some special transformer logic or changes to core logic. So that's a bigger discussion and will be addressed in a follow-up work item.

Some conventions to follow

  1. add the module name as a prefix
    • for example: add a prefix: docstore: for document store module, blobstore for Blob Store module
  2. for a test only PR, add test:
  3. for a perf improvement only PR, add perf:
  4. for a refactoring only PR, add "refactor:"

@codecov-commenter
Copy link

codecov-commenter commented Dec 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.64%. Comparing base (1f4b7d0) to head (dd8ee89).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #232      +/-   ##
============================================
+ Coverage     82.63%   82.64%   +0.01%     
  Complexity      125      125              
============================================
  Files           152      152              
  Lines          8590     8590              
  Branches       1042     1042              
============================================
+ Hits           7098     7099       +1     
+ Misses         1001     1000       -1     
  Partials        491      491              
Flag Coverage Δ
unittests 82.64% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We already have many recorded files under the GCP conformance tests. Could you please confirm that this PR does not introduce any duplicate record files?

@Yaminik1996 Yaminik1996 force-pushed the W-20028687/gcpBlobStoreConformanceTestsRemaining branch from 7300ce3 to 3b9b243 Compare December 29, 2025 20:11
@Yaminik1996 Yaminik1996 force-pushed the W-20028687/gcpBlobStoreConformanceTestsRemaining branch 4 times, most recently from 5db5813 to 6063319 Compare January 8, 2026 22:57
Comment on lines +170 to +171
runOperationsThatShouldNotFail("testInvalidCredentials", bucketClient);
}
Copy link
Contributor

Choose a reason for hiding this comment

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

nit:tabs added by AI?

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 initial spacing was misplaced. The alignment is correct now.

@Yaminik1996 Yaminik1996 force-pushed the W-20028687/gcpBlobStoreConformanceTestsRemaining branch 4 times, most recently from 163bae2 to 3d8d71a Compare January 9, 2026 19:26
Comment on lines +99 to +101
default List<String> getWiremockExtensions() {
return Collections.emptyList();
}
Copy link
Contributor

Choose a reason for hiding this comment

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

let's remove the unnecessary code

@Yaminik1996 Yaminik1996 force-pushed the W-20028687/gcpBlobStoreConformanceTestsRemaining branch 3 times, most recently from 403a608 to de6cb0d Compare January 12, 2026 16:34

import java.io.IOException;
import java.net.URI;
import java.util.List;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this import required ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed, thanks for catching

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this import required ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed, thanks for catching

@iamabhilaksh
Copy link
Contributor

Referring to the latest AbstractBlobStoreIT.java file, there are a total of 12 different places from where you need to remove this to enable GCP conformance tests.

Search phrase used : Assumptions.assumeFalse(GCP_PROVIDER_ID.equals(harness.getProviderId()));
In your changes AbstractBlobStoreIT.java I can still see some tests for which this line has not been removed.

==> Are we not enabling GCP blobstore conformance tests for all of them ?

@iamabhilaksh
Copy link
Contributor

Referring to the latest AbstractBlobStoreIT.java file, there are a total of 12 different places from where you need to remove this to enable GCP conformance tests.

Search phrase used : Assumptions.assumeFalse(GCP_PROVIDER_ID.equals(harness.getProviderId())); In your changes AbstractBlobStoreIT.java I can still see some tests for which this line has not been removed.

==> Are we not enabling GCP blobstore conformance tests for all of them ?

PR description has been updated with the reasoning.

@Yaminik1996 Yaminik1996 force-pushed the W-20028687/gcpBlobStoreConformanceTestsRemaining branch 2 times, most recently from e3c085e to 756a0b0 Compare January 15, 2026 19:16
… testUploadWithKmsKey_happyPath, testUploadWithKmsKey_emptyKmsKeyId, testUploadWithKmsKey_nullKmsKeyId, testRangedReadWithKmsKey, testVersionedCopyFrom
@Yaminik1996 Yaminik1996 force-pushed the W-20028687/gcpBlobStoreConformanceTestsRemaining branch from 756a0b0 to dd8ee89 Compare January 15, 2026 23:01
@sandeepvinayak sandeepvinayak enabled auto-merge (squash) January 15, 2026 23:06
@sandeepvinayak sandeepvinayak merged commit 89ecbf2 into salesforce:main Jan 15, 2026
5 checks passed
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.

5 participants