-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
integrate falkordbrs #544
integrate falkordbrs #544
Changes from 48 commits
351a39f
41a7a6f
0ba578a
5358d33
2175df2
72e119b
1805a0f
7000d6b
000dd3e
2ff1098
baa42f6
3ac957a
7e6879b
11e6103
a48284f
1aedfd4
4b85282
cf582b7
3bb4e95
5316712
5536be5
e9b4083
25a0d51
3022533
4186542
be795a2
bd07f6c
c7d67da
06fccfe
830b2d1
d9bc166
d1bd8e4
3a3d2d4
03adde8
a8a6cdf
9a32839
eaa1676
34441cb
8af4d62
b78fa3c
72a0455
d3fbff7
235b72e
01c1cbb
2428bed
8223940
af831f4
076688e
eaebc6d
a945af2
c976699
d90c004
2375432
b407651
7cb2ddf
abdd3a8
446424b
917bfac
94c3bc3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -67,3 +67,5 @@ deps/GraphBLAS/Config/GraphBLAS.h.tmp | |
/venv/ | ||
/.vscode/ | ||
/1/ | ||
|
||
target |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ include_directories( | |
${root}/deps/xxHash | ||
${root}/deps/utf8proc | ||
${root}/deps/oniguruma | ||
$ENV{FalkorDBRS_BINDIR} | ||
AviAvni marked this conversation as resolved.
Show resolved
Hide resolved
|
||
${root}/deps/RediSearch/src | ||
${root}/deps/GraphBLAS/Include | ||
${root}/deps/libcypher-parser/lib/src | ||
|
@@ -52,8 +53,8 @@ set(FALKORDB_OBJECTS $<TARGET_OBJECTS:falkordb>) | |
|
||
find_package(OpenSSL) | ||
|
||
lists_from_env(GRAPHBLAS LIBXXHASH RAX LIBCYPHER_PARSER REDISEARCH_LIBS UTF8PROC ONIGURUMA) | ||
set(FALKORDB_LIBS ${GRAPHBLAS} ${LIBXXHASH} ${RAX} ${LIBCYPHER_PARSER} ${REDISEARCH_LIBS} ${UTF8PROC} ${ONIGURUMA} OpenSSL::SSL) | ||
lists_from_env(GRAPHBLAS LIBXXHASH RAX LIBCYPHER_PARSER REDISEARCH_LIBS UTF8PROC ONIGURUMA FalkorDBRS) | ||
set(FALKORDB_LIBS ${GRAPHBLAS} ${LIBXXHASH} ${RAX} ${LIBCYPHER_PARSER} ${REDISEARCH_LIBS} ${UTF8PROC} ${ONIGURUMA} ${FalkorDBRS} OpenSSL::SSL) | ||
Comment on lines
+55
to
+56
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Tip Codebase Verification The script's execution confirmed that the Analysis chainThe addition of Scripts ExecutedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Verify the build and availability of the FalkorDBRS library
if [ -f "$FalkorDBRS_BINDIR/libFalkorDB_rs.a" ]; then
echo "FalkorDBRS library found and ready for linking."
else
echo "FalkorDBRS library not found. Please check the build process and directory paths."
exit 1
fi
Length of output: 212 |
||
|
||
target_link_options(falkordb PRIVATE ${CMAKE_LD_FLAGS_LIST} ${CMAKE_SO_LD_FLAGS_LIST}) | ||
target_link_libraries(falkordb PRIVATE ${FALKORDB_LIBS} ${CMAKE_LD_LIBS}) | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[workspace] | ||
resolver = "2" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what's the purpose of this line ? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
members = [ | ||
"deps/FalkorDB-rs", | ||
] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
|
||
ifneq ($(SAN),) | ||
export FalkorDBRS=$(FalkorDBRS_BINDIR)/x86_64-unknown-linux-gnu/debug/libFalkorDB_rs.a | ||
AviAvni marked this conversation as resolved.
Show resolved
Hide resolved
|
||
else | ||
ifeq ($(DEBUG),1) | ||
export FalkorDBRS=$(FalkorDBRS_BINDIR)/debug/libFalkorDB_rs.a | ||
else | ||
export FalkorDBRS=$(FalkorDBRS_BINDIR)/release/libFalkorDB_rs.a | ||
endif | ||
endif |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,29 @@ | ||||||
FROM --platform=$TARGETPLATFORM falkordb/falkordb-build:debian as build | ||||||
|
||||||
ARG TARGETPLATFORM | ||||||
|
||||||
WORKDIR /FalkorDB | ||||||
|
||||||
ADD . /FalkorDB | ||||||
|
||||||
RUN make | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As with the Ubuntu Dockerfile, it's recommended to specify the make target explicitly. - RUN make
+ RUN make all Committable suggestion
Suggested change
|
||||||
|
||||||
FROM --platform=$TARGETPLATFORM redis:7.2.3-bookworm | ||||||
|
||||||
ARG TARGETPLATFORM | ||||||
|
||||||
COPY --from=build /FalkorDB/bin /FalkorDB/bin | ||||||
COPY --from=build /FalkorDB/build/docker/run.sh /FalkorDB/build/docker/run.sh | ||||||
|
||||||
ENV ARCH=${TARGETPLATFORM} | ||||||
|
||||||
# install dependencies | ||||||
RUN apt-get update -y && \ | ||||||
apt-get install libgomp1 -y | ||||||
|
||||||
EXPOSE 6379/tcp | ||||||
|
||||||
ENV FALKORDB_ARGS="MAX_QUEUED_QUERIES 25 TIMEOUT 1000 RESULTSET_SIZE 10000" | ||||||
|
||||||
CMD /FalkorDB/build/docker/run.sh | ||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The addition of Rust toolchain management commands (
rustup toolchain list
andrustup default nightly
) before the build command is a crucial step for ensuring that the correct Rust version is used for the build. This is especially important when working with Rust, where nightly features might be required. However, it's recommended to document why the nightly toolchain is necessary for this project, as using nightly features can affect the stability and portability of the code.Consider adding comments in the workflow file explaining why the nightly toolchain is selected and any implications this might have.