-
Notifications
You must be signed in to change notification settings - Fork 9
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
arrow cls tests #73
arrow cls tests #73
Conversation
* make scripts/micro-osd.sh executable * remove repeated test execution logic (remove run_tests.sh; leave it inline) * remove build-rook-img step After the above the tests run but are throwing failures
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks Xiongfeng!
src/CMakeLists.txt
Outdated
@@ -1,10 +1,31 @@ | |||
set(cls_dir ${CMAKE_INSTALL_LIBDIR}/rados-classes) | |||
|
|||
# cls_sdk | |||
add_library(cls_sdk SHARED cls_sdk.cc) | |||
set_target_properties(cls_sdk PROPERTIES | |||
add_library(cls_arrow_cls SHARED cls_sdk.cc) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this is not the arrow class (yet), we could move it back to sdk, to avoid confusion
.popper.yml
Outdated
runs: [bash, -euxc] | ||
args: | ||
- | | ||
cp build/lib/libcls_arrow_cls.so* /usr/lib64/rados-classes/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cls_sdk
scripts/micro-osd.sh
Outdated
osd journal = ${OSD_DATA}.journal | ||
osd journal size = 100 | ||
osd objectstore = memstore | ||
osd class load list = lock log numops refcount replica_log statelog timeindex user version arrow_cls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cls_sdk
src/CMakeLists.txt
Outdated
add_library(cls_sdk SHARED cls_sdk.cc) | ||
set_target_properties(cls_sdk PROPERTIES | ||
add_library(cls_arrow_cls SHARED cls_sdk.cc) | ||
set_target_properties(cls_arrow_cls PROPERTIES |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cls_sdk
src/CMakeLists.txt
Outdated
CXX_VISIBILITY_PRESET hidden | ||
) | ||
|
||
install(TARGETS cls_arrow_cls DESTINATION ${cls_dir}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cls_sdk
src/cls_sdk.cc
Outdated
CLS_VER(1,0) | ||
CLS_NAME(sdk) | ||
CLS_VER(1, 0) | ||
CLS_NAME(arrow_cls) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cls_sdk
src/cls_sdk.cc
Outdated
|
||
cls_register("sdk", &h_class); | ||
cls_register("arrow_cls", &h_class); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cls_sdk
src/cls_sdk_test.cc
Outdated
cluster.ioctx_create(pool_name.c_str(), ioctx); | ||
|
||
bufferlist in, out; | ||
ASSERT_EQ(0, ioctx.exec("test_object", "arrow_cls", "test_coverage_write", in, out)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cls_sdk
src/cls_sdk_test.cc
Outdated
cluster.ioctx_create(pool_name.c_str(), ioctx); | ||
|
||
bufferlist in, out; | ||
ASSERT_EQ(0, ioctx.exec("test_object", "arrow_cls", "test_coverage_write", in, out)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cls_sdk
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
class rename requires changes in several places, so i marked them for xs
Now we need to create popper step for tests.