Skip to content
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

Merged
merged 29 commits into from
Sep 15, 2020
Merged

arrow cls tests #73

merged 29 commits into from
Sep 15, 2020

Conversation

kingwind94
Copy link
Collaborator

Now we need to create popper step for tests.

.popper.yml Show resolved Hide resolved
src/cls_sdk_test.cc Outdated Show resolved Hide resolved
src/test_utils.cc Outdated Show resolved Hide resolved
src/test_utils.h Outdated Show resolved Hide resolved
src/test_utils.cc Outdated Show resolved Hide resolved
xs and others added 9 commits September 3, 2020 20:41
  * 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
@jlefevre jlefevre linked an issue Sep 10, 2020 that may be closed by this pull request
2 tasks
@jlefevre jlefevre self-requested a review September 10, 2020 23:28
src/cls_sdk.cc Outdated Show resolved Hide resolved
src/cls_sdk_test.cc Outdated Show resolved Hide resolved
src/cls_sdk_test.cc Outdated Show resolved Hide resolved
src/cls_sdk_test.cc Outdated Show resolved Hide resolved
src/test_utils.cc Outdated Show resolved Hide resolved
@jlefevre jlefevre linked an issue Sep 10, 2020 that may be closed by this pull request
5 tasks
@jlefevre jlefevre removed a link to an issue Sep 10, 2020
2 tasks
Copy link
Member

@jlefevre jlefevre left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Xiongfeng!

@@ -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)
Copy link
Collaborator

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/
Copy link
Member

Choose a reason for hiding this comment

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

cls_sdk

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
Copy link
Member

Choose a reason for hiding this comment

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

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)
set_target_properties(cls_arrow_cls PROPERTIES
Copy link
Member

Choose a reason for hiding this comment

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

cls_sdk

CXX_VISIBILITY_PRESET hidden
)

install(TARGETS cls_arrow_cls DESTINATION ${cls_dir})
Copy link
Member

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)
Copy link
Member

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);
Copy link
Member

Choose a reason for hiding this comment

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

cls_sdk

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));
Copy link
Member

Choose a reason for hiding this comment

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

cls_sdk

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));
Copy link
Member

Choose a reason for hiding this comment

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

cls_sdk

Copy link
Member

@jlefevre jlefevre left a 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

@ivotron ivotron merged commit 34f5f3d into arrow-cls Sep 15, 2020
@ivotron ivotron deleted the arrow_cls_xs branch September 15, 2020 00:25
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.

arrow-cls: setup for running unit tests
3 participants