Skip to content

[CAS] Add a new API in ObjectStore to import a CAS tree #10819

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

Conversation

cachemeifyoucan
Copy link

@cachemeifyoucan cachemeifyoucan commented Jun 9, 2025

Add a new API to ObjectStore that can import a cas tree from anotherCAS. The two ObjectStores don't have to share the same hashing algorithm since all the objects will be rehashed and inserted into the new database.

As part of the better testing support, the test plugin CAS library now uses SHA1 hashing which is different from default BLAKE3 hasher as builtin CAS. The test plugin library can be used to test interaction of CAS of different schemas.

Add a new API to ObjectStore that can import a cas tree from another
CAS. The two ObjectStores don't have to share the same hashing
algorithm since all the objects will be rehashed and inserted into the
new database.

As part of the better testing support, the test plugin CAS library now
uses SHA1 hashing which is different from default BLAKE3 hasher as
builtin CAS. The test plugin library can be used to test interaction of
CAS of different schemas.

(cherry picked from commit 5450d4f)
@cachemeifyoucan cachemeifyoucan force-pushed the eng/add-cas-import-tree-api branch from cc9a345 to be50555 Compare June 18, 2025 22:36
@cachemeifyoucan
Copy link
Author

@swift-ci please test

@cachemeifyoucan cachemeifyoucan marked this pull request as ready for review June 18, 2025 22:36
@cachemeifyoucan cachemeifyoucan requested a review from a team as a code owner June 18, 2025 22:36
@cachemeifyoucan
Copy link
Author

@swift-ci please test macOS platform

@cachemeifyoucan
Copy link
Author

@swift-ci please test

@cachemeifyoucan cachemeifyoucan merged commit 983d4c2 into swiftlang:stable/20240723 Jun 26, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants