-
Notifications
You must be signed in to change notification settings - Fork 218
Fix fuzz build #3506
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
Fix fuzz build #3506
Conversation
src/BUILD
Outdated
@@ -134,6 +134,7 @@ cc_shared_library( | |||
features = [], | |||
roots = [ | |||
"//src:ovms_lib", | |||
"@llm_engine//:llm_engine", "@libgit2_engine//:libgit2_engine", |
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.
Why is it needed here now and was not needed before?
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.
With FUZZER_BUILD=1 we only build this target. The shared bazel library will not build nor add this dependencies so it will not be available in bazel-out directory.
@@ -355,7 +355,9 @@ RUN if [ "$FUZZER_BUILD" == "0" ]; then bazel build ${CAPI_FLAGS} --jobs $JOBS / | |||
COPY MakefileCapi /ovms/ | |||
RUN if [ "$FUZZER_BUILD" == "0" ]; then CAPI_FLAGS=${CAPI_FLAGS} make -f MakefileCapi cpp && \ | |||
CAPI_FLAGS=${CAPI_FLAGS} make -f MakefileCapi c; fi ; | |||
RUN mkdir -p /ovms_release/lib/ ; find /ovms/bazel-out/k8-*/bin -iname 'libovms_shared.so' -exec cp -v {} /ovms_release/lib/ \; | |||
RUN mkdir -p /ovms_release/lib/ ; find /ovms/bazel-out/k8-*/bin -iname 'libovms_shared.so' -exec cp -v {} /ovms_release/lib/ \; \ | |||
find /ovms/bazel-out/k8-*/bin -iname 'libopenvino_genai.so*' -exec cp -v {} /ovms_release/lib/ \; \ |
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.
why genai? is it another issue?
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.
libopenvino_genai also missing in the dependencies.
🛠 Summary
JIRA CVS-168977
Add libgit2.so to fuzz build dependency - libovms_shared.
🧪 Checklist
``