Skip to content

rgw/test: Add unit tests for sal_wrapper APIs and LanceDB ObjectStore - #70969

Closed
soumyakoduri wants to merge 1 commit into
ceph:wip-s3vectorfrom
soumyakoduri:wip-skoduri-sal-wrapper-tests
Closed

soumyakoduri wants to merge 1 commit into
ceph:wip-s3vectorfrom
soumyakoduri:wip-skoduri-sal-wrapper-tests

Conversation

@soumyakoduri

@soumyakoduri soumyakoduri commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains unit tests for the rgw_sal_wrapper C FFI API and also integration tests for LanceDB ObjectStore both of which can be exercised against any backend and live cluster.

TODO:

  • Include remaining tests from arrow-rs integration tests and mark them ignore/fail with comment
  • the arrow suite has multipart tests, why are we testing them seperatly? cleanup the other tests which may be duplicate
  • why do we take ownership over the pointer? (wrt etag_out ptr)
  • Create list of failures for other backends posix/dbstore and raise trackers

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@soumyakoduri
soumyakoduri requested a review from a team as a code owner August 11, 2026 09:53
@soumyakoduri soumyakoduri changed the title rgw/test/s3vectors: Add unit tests for sal_wrapper interfaces and LanceDB ObjectStore rgw/test/s3vectors: Add unit tests for sal_wrapper APIs and LanceDB ObjectStore Aug 11, 2026
@soumyakoduri soumyakoduri changed the title rgw/test/s3vectors: Add unit tests for sal_wrapper APIs and LanceDB ObjectStore rgw/test: Add unit tests for sal_wrapper APIs and LanceDB ObjectStore Aug 11, 2026
@soumyakoduri
soumyakoduri requested a review from yuvalif August 11, 2026 09:53
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-sal-wrapper-tests branch from 46f5dce to 423ff5b Compare August 11, 2026 10:19
Comment thread src/rgw/lancedb-rgw-store/README.md Resolved
Comment thread src/rgw/lancedb-rgw-store/README.md Resolved
Comment thread src/rgw/lancedb-rgw-store/README.md Resolved
Comment thread src/test/rgw/test_rgw_sal_wrapper.cc Resolved
Comment thread src/test/rgw/test_rgw_sal_wrapper.cc Resolved
* See file COPYING for licensing information.
*/

//! Integration tests for RGWObjectStore.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can we replace this with https://github.com/apache/arrow-rs-object-store/blob/main/src/integration.rs ?

this is the formal integration test suite for custom object stores

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done. Included these tests and deleted earlier tests which duplicate some of these tests.

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@yuvalif

yuvalif commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

@soumyakoduri please look into fixing this copilot comment in this PR: #66066 (comment)

note thtat it looks like the conditional copy is not called fro mthe lancedb code, so, the issue and fix could only be verified with a unittests

@soumyakoduri

Copy link
Copy Markdown
Contributor Author

@soumyakoduri please look into fixing this copilot comment in this PR: #66066 (comment)

note thtat it looks like the conditional copy is not called fro mthe lancedb code, so, the issue and fix could only be verified with a unittests

This is valid but seems to be gap with conditional_copy implementation within RGW code. It handles only source object conditions but not of destination objects. Will create a tracker to address this gap. For now included comment in rgw_sal_wrapper.cc about the same.

@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-sal-wrapper-tests branch from 343541b to 1146e5c Compare August 16, 2026 19:51
@yuvalif

yuvalif commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

@soumyakoduri please see my proposal here: af4d333
for running the crate's integration tests as real cargo tests

havn't run in teuthology yet, so, i'm not sure if there are actual issues with this approach

@soumyakoduri

Copy link
Copy Markdown
Contributor Author

@soumyakoduri please see my proposal here: af4d333 for running the crate's integration tests as real cargo tests

havn't run in teuthology yet, so, i'm not sure if there are actual issues with this approach

OK sure — but this seems to add significant build complexity to expose the SAL wrapper as a separate lib and also to run cargo test. That was the primary reason I didn't include cargo tests in the original SAL backend PR too. That said, if you think this approach is better, I'm fine with it.

@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-sal-wrapper-tests branch from 6e6f3ae to eb0856d Compare August 30, 2026 17:41
@yuvalif

yuvalif commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

@soumyakoduri please see my proposal here: af4d333 for running the crate's integration tests as real cargo tests
havn't run in teuthology yet, so, i'm not sure if there are actual issues with this approach

OK sure — but this seems to add significant build complexity to expose the SAL wrapper as a separate lib and also to run cargo test. That was the primary reason I didn't include cargo tests in the original SAL backend PR too. That said, if you think this approach is better, I'm fine with it.

agree it add build complexity, but is simplifies the test code itself.
note that some parts of your test code are emulating something like "cargo test".
also note that this allows for tokio to drive the tests and therefore gives better coverage as the arrow test suite use it.

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@yuvalif yuvalif mentioned this pull request Sep 7, 2026
14 tasks
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-sal-wrapper-tests branch from eb0856d to 8b62881 Compare September 8, 2026 15:57
@soumyakoduri

Copy link
Copy Markdown
Contributor Author

jenkins test make check

@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-sal-wrapper-tests branch from 8b62881 to 8717f62 Compare September 9, 2026 10:58
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-sal-wrapper-tests branch from 8717f62 to 16624f1 Compare September 9, 2026 15:02
@github-actions

github-actions Bot commented Sep 9, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-sal-wrapper-tests branch from 16624f1 to bc70e7d Compare September 10, 2026 05:21
…anceDB ObjectStore

1) GoogleTest-based tests are added for the rgw_sal_wrapper C FFI API. This test
can be exercised against all the backends. To be able to read config options
(esp., for RADOS backend) it needs to read ceph.conf and hence takes its path as
optional parameter.

The cmd to execute -
./bin/ceph_test_rgw_sal_wrapper -c <path/to/ceph.conf>

2) Add arrow-rs integration tests that exercise the Rust ObjectStore trait
implementation (lancedb-rgw-store) end-to-end through the real FFI
boundary against a live SAL driver.

3) add teuthology workunits for SAL wrapper and LanceDB ObjectStore tests

Add workunit scripts and a teuthology task to run ceph_test_rgw_sal_wrapper
and ceph_test_rgw_lancedb_object_store as part of the rgw/verify suite.

Assisted-by: Claude Opus 4.6 (1M context) <[email protected]>
Signed-off-by: Yuval Lifshitz <[email protected]>
Signed-off-by: Soumya Koduri <[email protected]>
@soumyakoduri
soumyakoduri force-pushed the wip-skoduri-sal-wrapper-tests branch from bc70e7d to f09ea34 Compare September 10, 2026 06:14
Comment thread src/rgw/lancedb-rgw-store/src/store.rs Resolved
@yuvalif
yuvalif self-requested a review September 10, 2026 09:55
@yuvalif

yuvalif commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

cherry-picked to wip-s3vector

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