Skip to content

Commit 1442bd5

Browse files
majetideepakfacebook-github-bot
authored andcommitted
build: Do not enable all components when testing is enabled (facebookincubator#11896)
Summary: The goal is to improve the developer experience. If I want to build wave tests, I want to be able to only build the corresponding tests by disabling unrelated components such as Spark functions, TPC-H connector, etc. However, the current CMake setup enables these components when testing is enabled. All of these components except for examples are enabled by default. Pull Request resolved: facebookincubator#11896 Reviewed By: Yuhta Differential Revision: D67910097 Pulled By: kevinwilfong fbshipit-source-id: cc932b9397a6cb649ab12c0c1e1860dca75d4ff8
1 parent a076d32 commit 1442bd5

File tree

2 files changed

+3
-15
lines changed

2 files changed

+3
-15
lines changed

.github/workflows/linux-build-base.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ jobs:
8686
run: |
8787
EXTRA_CMAKE_FLAGS=(
8888
"-DVELOX_ENABLE_BENCHMARKS=ON"
89+
"-DVELOX_ENABLE_EXAMPLES=ON"
8990
"-DVELOX_ENABLE_ARROW=ON"
9091
"-DVELOX_ENABLE_PARQUET=ON"
9192
"-DVELOX_ENABLE_HDFS=ON"
@@ -160,7 +161,7 @@ jobs:
160161
VELOX_DEPENDENCY_SOURCE: BUNDLED
161162
ICU_SOURCE: SYSTEM
162163
MAKEFLAGS: "NUM_THREADS=8 MAX_HIGH_MEM_JOBS=4 MAX_LINK_JOBS=3"
163-
EXTRA_CMAKE_FLAGS: "-DVELOX_ENABLE_ARROW=ON -DVELOX_ENABLE_PARQUET=ON"
164+
EXTRA_CMAKE_FLAGS: "-DVELOX_ENABLE_ARROW=ON -DVELOX_ENABLE_PARQUET=ON -DVELOX_ENABLE_EXAMPLES=ON"
164165
run: |
165166
if [[ "${USE_CLANG}" = "true" ]]; then export CC=/usr/bin/clang-15; export CXX=/usr/bin/clang++-15; fi
166167
make debug

CMakeLists.txt

+1-14
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ option(VELOX_ENABLE_S3 "Build S3 Connector" OFF)
136136
option(VELOX_ENABLE_GCS "Build GCS Connector" OFF)
137137
option(VELOX_ENABLE_ABFS "Build Abfs Connector" OFF)
138138
option(VELOX_ENABLE_HDFS "Build Hdfs Connector" OFF)
139-
option(VELOX_ENABLE_PARQUET "Enable Parquet support" OFF)
139+
option(VELOX_ENABLE_PARQUET "Enable Parquet support" ON)
140140
option(VELOX_ENABLE_ARROW "Enable Arrow support" OFF)
141141
option(VELOX_ENABLE_REMOTE_FUNCTIONS "Enable remote function support" OFF)
142142
option(VELOX_ENABLE_CCACHE "Use ccache if installed." ON)
@@ -173,19 +173,6 @@ if(${VELOX_BUILD_MINIMAL} OR ${VELOX_BUILD_MINIMAL_WITH_DWIO})
173173
set(VELOX_ENABLE_SUBSTRAIT OFF)
174174
endif()
175175

176-
if(${VELOX_BUILD_TESTING})
177-
# Enable all components to build testing binaries
178-
set(VELOX_ENABLE_PRESTO_FUNCTIONS ON)
179-
set(VELOX_ENABLE_EXPRESSION ON)
180-
set(VELOX_ENABLE_EXEC ON)
181-
set(VELOX_ENABLE_AGGREGATES ON)
182-
set(VELOX_ENABLE_HIVE_CONNECTOR ON)
183-
set(VELOX_ENABLE_TPCH_CONNECTOR ON)
184-
set(VELOX_ENABLE_SPARK_FUNCTIONS ON)
185-
set(VELOX_ENABLE_EXAMPLES ON)
186-
set(VELOX_ENABLE_PARQUET ON)
187-
endif()
188-
189176
if(${VELOX_ENABLE_BENCHMARKS})
190177
set(VELOX_ENABLE_BENCHMARKS_BASIC ON)
191178
endif()

0 commit comments

Comments
 (0)