Skip to content

Enhancement: Adjust binary file location (#535) #574

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

Merged
merged 5 commits into from
Jun 30, 2025

Conversation

yadunand-kamath
Copy link
Contributor

Previously, all unittest files and binary executable files (such as observer/obclient) were put together in build_*/bin directory.
After the enhancement, the binary executable files and the unittest files have been separated into the following directories respectively:

  • build_*/bin
  • build_*/unittest

Issue Number: close #535

After enhancement

> cd build_debug
> ls bin/
clog_dump  cpplings  obclient  oblsm_bench  oblsm_cli  observer
> ls unittesttest/
CMakeFiles                 bplus_tree_log_entry_test  codec_test                integer_generator_test  mem_pool_test        ob_lsm_test       pax_storage_test     thread_pool_executor_test
CTestTestfile.cmake        bplus_tree_log_test        common                    log_buffer_test         mvcc_trx_log_test    ob_skiplist_test  persist_test
Makefile                   bplus_tree_test            composite_tuple_test      log_entry_test          ob_arena_test        ob_table_test     pidfile_test
aggregate_hash_table_test  buffer_pool_log_test       disk_buffer_pool_test     log_file_test           ob_block_test        ob_util_test      record_manager_test
arithmetic_operator_test   catalog_test               disk_log_handler_test     log_test                ob_bloomfilter_test  oblsm             ring_buffer_test
bitmap_test                chunk_test                 double_write_buffer_test  lower_bound_test        ob_compaction_test   observer          serializer_test
bp_manager_test            cmake_install.cmake        expression_test           md5_test                ob_lru_cache_test    parser_test       simple_queue_test

Signed-off-by: Yadunand Kamath <yadunand.kamath@gmail.com>
Signed-off-by: Yadunand Kamath <yadunand.kamath@gmail.com>
Copy link
Collaborator

@hnwyllmm hnwyllmm left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -12,5 +12,8 @@ FOREACH (F ${ALL_SRC})
if(NOT ${prjName} STREQUAL "memtracer_performance_test")
TARGET_LINK_LIBRARIES(${prjName} observer_static oblsm)
endif()
if(${prjName} STREQUAL "memtracer_performance_test")
Copy link
Member

Choose a reason for hiding this comment

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

why only put memtracer_performance_test in UNITTEST_OUTPUT_PATH?
you can put all benchmark binary in benchmark file.

Signed-off-by: Yadunand Kamath <yadunand.kamath@gmail.com>
Copy link

codecov bot commented Jun 25, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.20%. Comparing base (6f469d4) to head (2fda77e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #574      +/-   ##
==========================================
- Coverage   55.21%   55.20%   -0.01%     
==========================================
  Files         178      178              
  Lines       10338    10338              
==========================================
- Hits         5708     5707       -1     
- Misses       4630     4631       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Yadunand Kamath <yadunand.kamath@gmail.com>
Copy link
Member

@nautaa nautaa left a comment

Choose a reason for hiding this comment

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

LGTM

@nautaa
Copy link
Member

nautaa commented Jun 26, 2025

@yadunand-kamath thanks for your patience, and welcome to continued participation in contributing to the community, feel free to get in touch if you have any ideas :)

Signed-off-by: Yadunand Kamath <yadunand.kamath@gmail.com>
@nautaa nautaa merged commit fb39d4b into oceanbase:main Jun 30, 2025
15 checks passed
@yadunand-kamath yadunand-kamath deleted the enhancement branch July 5, 2025 04:59
Lisa67865 pushed a commit to Lisa67865/miniob that referenced this pull request Jul 20, 2025
Previously, all unittest files and binary executable files (such as
observer/obclient) were put together in `build_*/bin` directory.
After the enhancement, the binary executable files and the unittest
files have been separated into the following directories respectively:

- `build_*/bin`
- `build_*/unittest`

Issue Number: close oceanbase#535 

### After enhancement

```
> cd build_debug
> ls bin/
clog_dump  cpplings  obclient  oblsm_bench  oblsm_cli  observer
> ls unittesttest/
CMakeFiles                 bplus_tree_log_entry_test  codec_test                integer_generator_test  mem_pool_test        ob_lsm_test       pax_storage_test     thread_pool_executor_test
CTestTestfile.cmake        bplus_tree_log_test        common                    log_buffer_test         mvcc_trx_log_test    ob_skiplist_test  persist_test
Makefile                   bplus_tree_test            composite_tuple_test      log_entry_test          ob_arena_test        ob_table_test     pidfile_test
aggregate_hash_table_test  buffer_pool_log_test       disk_buffer_pool_test     log_file_test           ob_block_test        ob_util_test      record_manager_test
arithmetic_operator_test   catalog_test               disk_log_handler_test     log_test                ob_bloomfilter_test  oblsm             ring_buffer_test
bitmap_test                chunk_test                 double_write_buffer_test  lower_bound_test        ob_compaction_test   observer          serializer_test
bp_manager_test            cmake_install.cmake        expression_test           md5_test                ob_lru_cache_test    parser_test       simple_queue_test

```

---------

Signed-off-by: Yadunand Kamath <yadunand.kamath@gmail.com>
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.

adjust binary file location
3 participants