Skip to content

blobstore: Objectlock conformance#336

Open
LihaoLiuXs wants to merge 15 commits intosalesforce:mainfrom
LihaoLiuXs:objectlockConformance
Open

blobstore: Objectlock conformance#336
LihaoLiuXs wants to merge 15 commits intosalesforce:mainfrom
LihaoLiuXs:objectlockConformance

Conversation

@LihaoLiuXs
Copy link
Collaborator

Summary

< Provide a brief description of the changes in this PR >

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 Mar 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 82.38%. Comparing base (bcd7d94) to head (daa36bd).

Additional details and impacted files
@@            Coverage Diff            @@
##               main     #336   +/-   ##
=========================================
  Coverage     82.37%   82.38%           
  Complexity      625      625           
=========================================
  Files           191      191           
  Lines         11506    11506           
  Branches       1526     1526           
=========================================
+ Hits           9478     9479    +1     
  Misses         1357     1357           
+ Partials        671      670    -1     
Flag Coverage Δ
unittests 82.38% <ø> (+<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.

* Whether this provider supports object lock (WORM). When false, object lock conformance
* tests are skipped.
*/
default boolean isObjectLockSupported() {
Copy link
Contributor

Choose a reason for hiding this comment

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

which substrate doesn't support locking, the default should be always yes since no is introducing disparity.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We don't have the locking support in Ali yet.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I updated the default value to true, and set the value to false for inMemoryBlobstore.

Comment on lines +2931 to +2936
try {
Map<String, String> tags3 = Map.of("tag5", "value5");
bucketClient.setTags(key + "-fake", tags3);
} catch (Throwable t) {
failed = true;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What are we doing here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was the same logic copied from testTagging, just with the object lock enabled. We expect it goes to the catch block because we are calling setTag on a fake key which is non-exist.

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