fix(cmake): Align CLP_BUILD_TESTING option requirements with unit test linkage; Drop SOURCE_FILES_clp_s_unitTest by moving clp-s tests under src/clp_s/tests.#2170
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughCMake build rules restructured: new INTERFACE libraries aggregate runtime and test dependencies; test source grouping added; option validation reordered and extended for a new FFI flag; an FFI conditional gate changed; several clp_s search sources removed. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
CLP_BUILD_TESTING option requirements with unit test linkage; Drop SOURCE_FILES_clp_s_unitTest.CLP_BUILD_TESTING option requirements with unit test linkage; Drop SOURCE_FILES_clp_s_unitTest by moving clp-s tests under src/clp_s/tests.
|
Caution Failed to replace (edit) comment. This is likely due to insufficient permissions or the comment being deleted. Error details |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
gibber9809
left a comment
There was a problem hiding this comment.
Extremely minor nit, but otherwise looks good.
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@components/core/CMakeLists.txt`:
- Around line 676-691: Reorder the two archive libraries in the
target_link_libraries call for clp_unit_test_runtime so clp_s::archive_reader
appears before clp_s::archive_writer; locate the target_link_libraries block for
clp_unit_test_runtime and swap the positions of clp_s::archive_writer and
clp_s::archive_reader (leaving all other entries unchanged) to make the clp_s::*
list alphabetical.
In `@components/core/src/clp_s/CMakeLists.txt`:
- Around line 518-530: The test source file list in CMakeLists.txt is out of
ASCII-case-sensitive alphabetical order: move tests/test-FloatFormatEncoding.cpp
so it appears before any test-clp_s-* entries (e.g., before
filter/tests/test-clp_s-bloom_filter.cpp and tests/test-clp_s-*.cpp) to restore
correct ordering; update the sequence containing
filter/tests/test-clp_s-bloom_filter.cpp, filter/tests/test-clp_s-xxhash.cpp,
tests/clp_s_test_utils.cpp, tests/clp_s_test_utils.hpp,
tests/test-clp_s-delta-encode-log-order.cpp, tests/test-clp_s-end_to_end.cpp,
tests/test-clp_s-ffi_sfa_reader.cpp, tests/test-clp_s-range_index.cpp,
tests/test-clp_s-search.cpp, tests/test-FloatFormatEncoding.cpp,
tests/test-kql.cpp, tests/test-sql.cpp, tests/test_InputConfig.cpp so that
tests/test-FloatFormatEncoding.cpp is placed immediately before the test-clp_s
entries following ASCII ordering.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro
Run ID: 140648dc-a7bb-47fd-a570-cc556e11f404
📒 Files selected for processing (2)
components/core/CMakeLists.txtcomponents/core/src/clp_s/CMakeLists.txt
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
gibber9809
left a comment
There was a problem hiding this comment.
LGTM. PR title fine as well.
Description
This PR completes the missing
CLP_BUILD_TESTINGrequirements and fixes minor build option inconsistencies, resulting in a more consistent and maintainable CMake setup across theclp-scodebase.The unit test and
clp-sexecutable build setups are updated to explicitly list the libraries built byclp-s, with a 1-to-1 mapping to the option requirements defined byCLP_BUILD_TESTINGandCLP_BUILD_EXECUTABLESinoptions.cmake.With the
clp-stest files now moved undersrc/clp_s, this PR also removes the need to manually maintainclp-ssource lists in the rootCMakeLists.txtwhen building unit tests, reducing the scope of change for futureclp-sPRs.Checklist
breaking change.
Validation performed
Summary by CodeRabbit
Chores
Refactor