diff --git a/.github/workflows/sanity_check.yml b/.github/workflows/sanity_check.yml index fd15b1e..f26677f 100644 --- a/.github/workflows/sanity_check.yml +++ b/.github/workflows/sanity_check.yml @@ -31,6 +31,11 @@ jobs: fail-fast: false matrix: config: + - { name: "License Header", + command: "header-fix", + message: "Found missing License Header(s)", + reqs: "regex" + } - { name: "Code Format", command: "format-fix", message: "Found format issues", diff --git a/CMakeLists.txt b/CMakeLists.txt index c059817..4cd05ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright (c) Meta Platforms, 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. cmake_minimum_required(VERSION 3.14) # Set the project name. @@ -20,17 +33,14 @@ list(PREPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMake" include(ResolveDependency) set(VELOX_BUILD_MINIMAL_WITH_DWIO - ON CACHE BOOL - "Velox minimal build with dwio.") + ON + CACHE BOOL "Velox minimal build with dwio.") set(VELOX_BUILD_VECTOR_TEST_UTILS - ON CACHE BOOL - "Velox vector test utilities (VectorMaker).") + ON + CACHE BOOL "Velox vector test utilities (VectorMaker).") set(VELOX_DEPENDENCY_SOURCE - AUTO - CACHE - STRING - "Default dependency source: AUTO SYSTEM or BUNDLED." -) + AUTO + CACHE STRING "Default dependency source: AUTO SYSTEM or BUNDLED.") message(STATUS "Build type: ${CMAKE_BUILD_TYPE}") diff --git a/Makefile b/Makefile index 9c915c5..3786808 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,16 @@ +# Copyright (c) Meta Platforms, 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. .PHONY: all cmake build clean debug release unit submodules BUILD_BASE_DIR=_build diff --git a/dwio/nimble/common/CMakeLists.txt b/dwio/nimble/common/CMakeLists.txt index def7944..3dbaba0 100644 --- a/dwio/nimble/common/CMakeLists.txt +++ b/dwio/nimble/common/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright (c) Meta Platforms, 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_subdirectory(tests) add_library( diff --git a/dwio/nimble/common/tests/CMakeLists.txt b/dwio/nimble/common/tests/CMakeLists.txt index cca4034..58f226d 100644 --- a/dwio/nimble/common/tests/CMakeLists.txt +++ b/dwio/nimble/common/tests/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright (c) Meta Platforms, 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_library(nimble_common_file_writer NimbleFileWriter.cpp) target_link_libraries(nimble_common_file_writer nimble_common diff --git a/dwio/nimble/encodings/CMakeLists.txt b/dwio/nimble/encodings/CMakeLists.txt index 15bbc92..3adaec2 100644 --- a/dwio/nimble/encodings/CMakeLists.txt +++ b/dwio/nimble/encodings/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright (c) Meta Platforms, 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_subdirectory(tests) add_library( diff --git a/dwio/nimble/encodings/tests/CMakeLists.txt b/dwio/nimble/encodings/tests/CMakeLists.txt index de7333c..0751320 100644 --- a/dwio/nimble/encodings/tests/CMakeLists.txt +++ b/dwio/nimble/encodings/tests/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright (c) Meta Platforms, 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( nimble_encodings_tests ConstantEncodingTests.cpp diff --git a/dwio/nimble/tablet/CMakeLists.txt b/dwio/nimble/tablet/CMakeLists.txt index 1fb8e43..71156be 100644 --- a/dwio/nimble/tablet/CMakeLists.txt +++ b/dwio/nimble/tablet/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright (c) Meta Platforms, 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_subdirectory(tests) # Nimble code expects an upper case suffix to the generated file. @@ -13,9 +26,8 @@ build_flatbuffers( "" "") add_library(nimble_footer_fb INTERFACE) -target_include_directories( - nimble_footer_fb - INTERFACE ${FLATBUFFERS_INCLUDE_DIR}) +target_include_directories(nimble_footer_fb + INTERFACE ${FLATBUFFERS_INCLUDE_DIR}) add_dependencies(nimble_footer_fb nimble_footer_schema_fb) add_library(nimble_tablet Compression.cpp StreamInput.cpp Tablet.cpp) diff --git a/dwio/nimble/tablet/tests/CMakeLists.txt b/dwio/nimble/tablet/tests/CMakeLists.txt index e379ded..f769857 100644 --- a/dwio/nimble/tablet/tests/CMakeLists.txt +++ b/dwio/nimble/tablet/tests/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright (c) Meta Platforms, 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(nimble_tablet_tests TabletTests.cpp) add_test(nimble_tablet_tests nimble_tablet_tests) diff --git a/dwio/nimble/tools/CMakeLists.txt b/dwio/nimble/tools/CMakeLists.txt index 0995dc9..b70dcbc 100644 --- a/dwio/nimble/tools/CMakeLists.txt +++ b/dwio/nimble/tools/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright (c) Meta Platforms, 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_library(nimble_tools_common EncodingUtilities.cpp) target_link_libraries(nimble_tools_common nimble_common nimble_tablet) diff --git a/dwio/nimble/velox/CMakeLists.txt b/dwio/nimble/velox/CMakeLists.txt index 00f0e46..a3890a4 100644 --- a/dwio/nimble/velox/CMakeLists.txt +++ b/dwio/nimble/velox/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright (c) Meta Platforms, 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_subdirectory(tests) add_library(nimble_velox_common SchemaUtils.cpp) @@ -80,7 +93,7 @@ target_link_libraries(nimble_velox_serializer nimble_common nimble_velox_schema_builder velox_vector) add_library(nimble_velox_reader StreamInputDecoder.cpp StreamLabels.cpp - VeloxReader.cpp) + VeloxReader.cpp) target_link_libraries( nimble_velox_reader nimble_velox_schema @@ -92,6 +105,6 @@ target_link_libraries( add_library( nimble_velox_writer EncodingLayoutTree.cpp FlushPolicy.cpp VeloxWriter.cpp - VeloxWriterDefaultMetadataOSS.cpp) + VeloxWriterDefaultMetadataOSS.cpp) target_link_libraries(nimble_velox_writer nimble_encodings nimble_common nimble_velox_metadata_fb Folly::folly) diff --git a/dwio/nimble/velox/tests/CMakeLists.txt b/dwio/nimble/velox/tests/CMakeLists.txt index ae965f9..24a15ef 100644 --- a/dwio/nimble/velox/tests/CMakeLists.txt +++ b/dwio/nimble/velox/tests/CMakeLists.txt @@ -1,3 +1,16 @@ +# Copyright (c) Meta Platforms, 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_library(nimble_velox_schema_utils SchemaUtils.cpp) target_link_libraries( nimble_velox_schema_utils nimble_velox_schema_fb nimble_velox_schema_builder diff --git a/dwio/nimble/velox/tests/SchemaTests.cpp b/dwio/nimble/velox/tests/SchemaTests.cpp index 5ccaaa8..dc55d29 100644 --- a/dwio/nimble/velox/tests/SchemaTests.cpp +++ b/dwio/nimble/velox/tests/SchemaTests.cpp @@ -1,3 +1,18 @@ +/* + * Copyright (c) Meta Platforms, 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. + */ #include #include