Decouple the building of benchmarks and tests#2439
Decouple the building of benchmarks and tests#2439leoluan2009 wants to merge 9 commits intofacebookincubator:mainfrom
Conversation
✅ Deploy Preview for meta-velox canceled.
|
1a7b498 to
58f0ae2
Compare
|
cc @mbasmanova @kgpai @majetideepak can you help to review this pr? the build error is due to #2442 |
|
Hi @leoluan2009 , Can you give a brief description of how you have decoupled them ? Thanks ! |
use VELOX_ENABLE_BENCHMARKS to control whether to build benchmarks directory and use VELOX_BUILD_TESTING to control whether to build tests directory, if some benchmarks use import the files from tests directory, Add the files to utils subdirectory in tests. When VELOX_BUILD_TESTING is on or VELOX_BUILD_TEST_UTILS is on, will build tests/utils. |
|
Thanks again @leoluan2009 , Based on my perusal, I see the following changes:
Some questions:
|
Not along with tests, use VELOX_ENABLE_BENCHMARKS or VELOX_ENABLE_BENCHMARKS_BASIC to control whether to build benchmarks, and if one of this two flags is on, set VELOX_BUILD_TEST_UTILS to on for import some common test utilities |
This is still controlled by VELOX_ENABLE_BENCHMARKS_BASIC |
|
Thanks @leoluan2009 , Can you make changes here : https://github.com/facebookincubator/velox/blob/main/.circleci/config.yml#L247 so that the benchmarks builds are not broken, as a part of this PR. |
58f0ae2 to
2f553e8
Compare
|
@leoluan2009 thank you for this work. I actually have an issue open here #1704 |
Yes, I think I already follow the design for share functionality in #1704 |
|
@leoluan2009 nit: I guess we can remove the TODO here https://github.com/facebookincubator/velox/blob/main/CMakeLists.txt#L326 |
@majetideepak Done, thanks |
d68de2d to
3010d38
Compare
f844c82 to
e0141b2
Compare
|
@kgpai has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@majetideepak I will change bunch of places where relative path is used instead of absolute path. |
@kgpai thank you. |
1e80b5b to
86783c4
Compare
|
Hi, @majetideepak @kgpai, I fix all comments, would you please review again? Thanks! |
Summary: Tests and benchmarks targets are now de-coupled. That means they can be built independently. Shared functionality is moved to a common utility library. Resolves facebookincubator/velox#1704 X-link: facebookincubator/velox#2439 Reviewed By: Yuhta Differential Revision: D39484543 Pulled By: kgpai fbshipit-source-id: b8b0f3a2fec4651ee8b4fe9ca6304bd37b9be183
Summary: Pull Request resolved: #491 Tests and benchmarks targets are now de-coupled. That means they can be built independently. Shared functionality is moved to a common utility library. Resolves facebookincubator/velox#1704 X-link: facebookincubator/velox#2439 Reviewed By: Yuhta Differential Revision: D39484543 Pulled By: kgpai fbshipit-source-id: 5ac888c81a6bbfbc5a1a1c4cfd41fa2c86199bc4
Tests and benchmarks targets are now de-coupled.
That means they can be built independently.
Shared functionality is moved to a common utility library.
Resolves #1704