Skip to content

Commit 0ea1f1a

Browse files
authored
Merge branch 'main' into prestoPackage
2 parents 6ad19e0 + 759f3b0 commit 0ea1f1a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+777
-2285
lines changed

components/clp-package-utils/clp_package_utils/scripts/start_clp.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,6 @@ def start_webui(
907907
"MongoDbStreamFilesCollectionName": clp_config.results_cache.stream_collection_name,
908908
"ClientDir": str(container_webui_dir / "client"),
909909
"LogViewerDir": str(container_webui_dir / "yscope-log-viewer"),
910-
"StreamFilesDir": str(container_clp_config.stream_output.get_directory()),
911910
"StreamTargetUncompressedSize": container_clp_config.stream_output.target_uncompressed_size,
912911
}
913912

@@ -916,7 +915,7 @@ def start_webui(
916915
stream_storage = clp_config.stream_output.storage
917916
if StorageType.S3 == stream_storage.type:
918917
s3_config = stream_storage.s3_config
919-
918+
server_settings_json_updates["StreamFilesDir"] = None
920919
server_settings_json_updates["StreamFilesS3Region"] = s3_config.region_code
921920
server_settings_json_updates["StreamFilesS3PathPrefix"] = (
922921
f"{s3_config.bucket}/{s3_config.key_prefix}"
@@ -927,6 +926,9 @@ def start_webui(
927926
else:
928927
server_settings_json_updates["StreamFilesS3Profile"] = None
929928
elif StorageType.FS == stream_storage.type:
929+
server_settings_json_updates["StreamFilesDir"] = str(
930+
container_clp_config.stream_output.get_directory()
931+
)
930932
server_settings_json_updates["StreamFilesS3Region"] = None
931933
server_settings_json_updates["StreamFilesS3PathPrefix"] = None
932934
server_settings_json_updates["StreamFilesS3Profile"] = None
@@ -959,7 +961,6 @@ def start_webui(
959961
]
960962
necessary_mounts = [
961963
mounts.clp_home,
962-
mounts.stream_output_dir,
963964
]
964965
if StorageType.S3 == stream_storage.type:
965966
auth = stream_storage.s3_config.aws_authentication
@@ -975,6 +976,9 @@ def start_webui(
975976
necessary_mounts.append(mounts.aws_config_dir)
976977
if aws_env_vars:
977978
necessary_env_vars.extend(aws_env_vars)
979+
elif StorageType.FS == stream_storage.type:
980+
necessary_mounts.append(mounts.stream_output_dir)
981+
978982
append_docker_options(container_cmd, necessary_mounts, necessary_env_vars)
979983
container_cmd.append(clp_config.execution_container)
980984

components/core/CMakeLists.txt

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -297,16 +297,14 @@ if(CLP_NEED_YSTDLIB)
297297
add_subdirectory("${CLP_YSTDLIB_SOURCE_DIRECTORY}" "${CMAKE_BINARY_DIR}/ystdlib" EXCLUDE_FROM_ALL)
298298
endif()
299299

300-
# Find and setup ZStd Library
301300
if(CLP_NEED_ZSTD)
301+
# v1.4.8 is the lowest version available in the package managers of the OSes we support.
302+
find_package(zstd 1.4.8 REQUIRED)
303+
message(STATUS "Found zstd ${zstd_VERSION}")
302304
if(CLP_USE_STATIC_LIBS)
303-
set(ZStd_USE_STATIC_LIBS ON)
304-
endif()
305-
find_package(ZStd 1.4.4 REQUIRED)
306-
if(ZStd_FOUND)
307-
message(STATUS "Found ZStd ${ZStd_VERSION}")
305+
set(zstd_TARGET zstd::libzstd_static)
308306
else()
309-
message(FATAL_ERROR "Could not find ${CLP_LIBS_STRING} libraries for ZStd")
307+
set(zstd_TARGET zstd::libzstd_shared)
310308
endif()
311309
endif()
312310

@@ -402,12 +400,6 @@ set(SOURCE_FILES_clp_s_unitTest
402400
src/clp_s/SchemaWriter.hpp
403401
src/clp_s/search/AddTimestampConditions.cpp
404402
src/clp_s/search/AddTimestampConditions.hpp
405-
src/clp_s/search/clp_search/EncodedVariableInterpreter.cpp
406-
src/clp_s/search/clp_search/EncodedVariableInterpreter.hpp
407-
src/clp_s/search/clp_search/Grep.cpp
408-
src/clp_s/search/clp_search/Grep.hpp
409-
src/clp_s/search/clp_search/Query.cpp
410-
src/clp_s/search/clp_search/Query.hpp
411403
src/clp_s/search/EvaluateRangeIndexFilters.cpp
412404
src/clp_s/search/EvaluateRangeIndexFilters.hpp
413405
src/clp_s/search/EvaluateTimestampIndex.cpp
@@ -429,10 +421,6 @@ set(SOURCE_FILES_clp_s_unitTest
429421
src/clp_s/TimestampEntry.hpp
430422
src/clp_s/Utils.cpp
431423
src/clp_s/Utils.hpp
432-
src/clp_s/VariableDecoder.cpp
433-
src/clp_s/VariableDecoder.hpp
434-
src/clp_s/VariableEncoder.cpp
435-
src/clp_s/VariableEncoder.hpp
436424
src/clp_s/ZstdCompressor.cpp
437425
src/clp_s/ZstdCompressor.hpp
438426
src/clp_s/ZstdDecompressor.cpp
@@ -782,7 +770,7 @@ if(CLP_BUILD_TESTING)
782770
ystdlib::containers
783771
ystdlib::error_handling
784772
${LIBLZMA_LIBRARIES}
785-
ZStd::ZStd
773+
${zstd_TARGET}
786774
)
787775
target_compile_features(unitTest
788776
PRIVATE cxx_std_20

components/core/cmake/Modules/FindLZ4.cmake

Lines changed: 0 additions & 103 deletions
This file was deleted.

components/core/cmake/Modules/FindZStd.cmake

Lines changed: 0 additions & 106 deletions
This file was deleted.

components/core/cmake/Options/options.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,7 @@ function(set_clp_s_clp_dependencies_dependencies)
249249
CLP_NEED_BOOST
250250
CLP_NEED_CURL
251251
CLP_NEED_FMT
252+
CLP_NEED_LOG_SURGEON
252253
CLP_NEED_MSGPACKCXX
253254
CLP_NEED_NLOHMANN_JSON
254255
CLP_NEED_OPENSSL
@@ -311,6 +312,7 @@ endfunction()
311312
function(set_clp_s_search_dependencies)
312313
set_clp_need_flags(
313314
CLP_NEED_ABSL
315+
CLP_NEED_LOG_SURGEON
314316
CLP_NEED_SIMDJSON
315317
CLP_NEED_SPDLOG
316318
)

components/core/src/clp/StringReader.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
#include <cassert>
88
#include <cerrno>
99

10-
#include <boost/filesystem.hpp>
11-
1210
using std::string;
1311

1412
namespace clp {

components/core/src/clp/clg/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ if(CLP_BUILD_EXECUTABLES)
150150
yaml-cpp
151151
ystdlib::containers
152152
ystdlib::error_handling
153-
ZStd::ZStd
153+
${zstd_TARGET}
154154
)
155155
# Put the built executable at the root of the build directory
156156
set_target_properties(

components/core/src/clp/clo/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ if(CLP_BUILD_EXECUTABLES)
178178
clp::string_utils
179179
ystdlib::containers
180180
ystdlib::error_handling
181-
ZStd::ZStd
181+
${zstd_TARGET}
182182
)
183183
# Put the built executable at the root of the build directory
184184
set_target_properties(

components/core/src/clp/clp/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ if(CLP_BUILD_EXECUTABLES)
189189
yaml-cpp
190190
ystdlib::containers
191191
ystdlib::error_handling
192-
ZStd::ZStd
192+
${zstd_TARGET}
193193
)
194194
# Put the built executable at the root of the build directory
195195
set_target_properties(

components/core/src/clp/ir/parsing.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ bool is_delim(signed char c) {
2323
|| ('A' <= c && c <= 'Z') || '\\' == c || '_' == c || ('a' <= c && c <= 'z'));
2424
}
2525

26-
bool is_variable_placeholder(char c) {
27-
return (enum_to_underlying_type(VariablePlaceholder::Integer) == c)
28-
|| (enum_to_underlying_type(VariablePlaceholder::Dictionary) == c)
29-
|| (enum_to_underlying_type(VariablePlaceholder::Float) == c);
30-
}
31-
3226
bool is_var(std::string_view value) {
3327
size_t begin_pos = 0;
3428
size_t end_pos = 0;

0 commit comments

Comments
 (0)