Skip to content

Commit

Permalink
Move velox_aggregation_fuzzer_test and spark_aggregation_fuzzer_test …
Browse files Browse the repository at this point in the history
…to the fuzzer directory (facebookincubator#8007)

Summary:
Pull Request resolved: facebookincubator#8007

This diff moves velox_aggregation_fuzzer_test to velox/functions/prestosql/fuzzer and moves spark_aggregation_fuzzer_test to velox/functions/sparksql/fuzzer.

This is part of facebookincubator#7754.

Differential Revision: D52106081

fbshipit-source-id: 74341a37c42303739fce2df28d00e1158117dadc
  • Loading branch information
kagamiori authored and facebook-github-bot committed Dec 13, 2023
1 parent 366daa7 commit 95c974d
Show file tree
Hide file tree
Showing 9 changed files with 59 additions and 32 deletions.
8 changes: 4 additions & 4 deletions .circleci/dist_compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ jobs:
command: |
mkdir -p /tmp/spark_aggregate_fuzzer_repro/
chmod -R 777 /tmp/spark_aggregate_fuzzer_repro
_build/debug/velox/exec/tests/spark_aggregation_fuzzer_test \
_build/debug/velox/functions/sparksql/fuzzer/spark_aggregation_fuzzer_test \
--seed ${RANDOM} \
--duration_sec 60 \
--logtostderr=1 \
Expand All @@ -332,7 +332,7 @@ jobs:
mkdir -p /tmp/aggregate_fuzzer_repro/
rm -rfv /tmp/aggregate_fuzzer_repro/*
chmod -R 777 /tmp/aggregate_fuzzer_repro
_build/debug/velox/exec/tests/velox_aggregation_fuzzer_test \
_build/debug/velox/functions/prestosql/fuzzer/velox_aggregation_fuzzer_test \
--seed ${RANDOM} \
--duration_sec 1800 \
--logtostderr=1 \
Expand Down Expand Up @@ -503,7 +503,7 @@ jobs:
fuzzer_output: "/tmp/spark_aggregate_fuzzer.log"
fuzzer_repro: "/tmp/spark_aggregate_fuzzer_repro"
fuzzer_name: "SparkAggregate"
fuzzer_exe: "_build/debug/velox/exec/tests/spark_aggregation_fuzzer_test"
fuzzer_exe: "_build/debug/velox/functions/sparksql/fuzzer/spark_aggregation_fuzzer_test"
fuzzer_args: " --seed ${RANDOM} --duration_sec 600 --logtostderr=1 --minloglevel=0 \
--repro_persist_path=/tmp/spark_aggregate_fuzzer_repro"

Expand All @@ -518,7 +518,7 @@ jobs:
fuzzer_output: "/tmp/aggregate_fuzzer.log"
fuzzer_repro: "/tmp/aggregate_fuzzer_repro"
fuzzer_name: "Aggregate"
fuzzer_exe: "_build/debug/velox/exec/tests/velox_aggregation_fuzzer_test"
fuzzer_exe: "_build/debug/velox/functions/prestosql/fuzzer/velox_aggregation_fuzzer_test"
fuzzer_args: " --seed ${RANDOM} --duration_sec 3600 --logtostderr=1 --minloglevel=0 \
--repro_persist_path=/tmp/aggregate_fuzzer_repro"

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ jobs:
name: spark
path: |
velox/_build/debug/velox/expression/tests/spark_expression_fuzzer_test
velox/_build/debug/velox/expression/tests/spark_aggregation_fuzzer_test
velox/_build/debug/velox/functions/sparksql/fuzzer/spark_aggregation_fuzzer_test
- name: Upload aggregation fuzzer
uses: actions/upload-artifact@v3
with:
name: aggregation
path: velox/_build/debug/velox/exec/tests/velox_aggregation_fuzzer_test
path: velox/_build/debug/velox/functions/prestosql/fuzzer/velox_aggregation_fuzzer_test

- name: Upload join fuzzer
uses: actions/upload-artifact@v3
Expand Down
26 changes: 0 additions & 26 deletions velox/exec/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -199,33 +199,7 @@ target_link_libraries(
velox_tpch_connector
velox_memory)

# Aggregation Fuzzer.
add_executable(velox_aggregation_fuzzer_test AggregationFuzzerTest.cpp)

target_link_libraries(
velox_aggregation_fuzzer_test
velox_aggregation_fuzzer
velox_aggregation_fuzzer_base
velox_aggregates
velox_window
gtest
gtest_main)

add_executable(spark_aggregation_fuzzer_test SparkAggregationFuzzerTest.cpp)

target_link_libraries(
spark_aggregation_fuzzer_test
velox_aggregation_fuzzer
velox_aggregation_fuzzer_base
velox_functions_spark_aggregates
velox_fuzzer_util
velox_window
velox_vector_test_lib
gtest
gtest_main)

# Join Fuzzer.

add_library(velox_join_fuzzer JoinFuzzer.cpp)

target_link_libraries(velox_join_fuzzer velox_type velox_vector_fuzzer
Expand Down
1 change: 1 addition & 0 deletions velox/functions/prestosql/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ endif()
if(${VELOX_BUILD_TESTING})
add_subdirectory(tests)
add_subdirectory(coverage)
add_subdirectory(fuzzer)
elseif(${VELOX_BUILD_TEST_UTILS})
add_subdirectory(tests/utils)
endif()
Expand Down
File renamed without changes.
25 changes: 25 additions & 0 deletions velox/functions/prestosql/fuzzer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Aggregation Fuzzer.
add_executable(velox_aggregation_fuzzer_test AggregationFuzzerTest.cpp)

target_link_libraries(
velox_aggregation_fuzzer_test
velox_aggregation_fuzzer
velox_aggregation_fuzzer_base
velox_aggregates
velox_window
gtest
gtest_main)
1 change: 1 addition & 0 deletions velox/functions/sparksql/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ endif()
if(${VELOX_BUILD_TESTING})
add_subdirectory(tests)
add_subdirectory(coverage)
add_subdirectory(fuzzer)
endif()

if(${VELOX_ENABLE_BENCHMARKS})
Expand Down
26 changes: 26 additions & 0 deletions velox/functions/sparksql/fuzzer/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (c) Facebook, Inc. and its affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

add_executable(spark_aggregation_fuzzer_test SparkAggregationFuzzerTest.cpp)

target_link_libraries(
spark_aggregation_fuzzer_test
velox_aggregation_fuzzer
velox_aggregation_fuzzer_base
velox_functions_spark_aggregates
velox_fuzzer_util
velox_window
velox_vector_test_lib
gtest
gtest_main)

0 comments on commit 95c974d

Please sign in to comment.