Skip to content

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

Merged
merged 9 commits into from
Jul 25, 2025
Merged

Fix fuzz build #3506

merged 9 commits into from
Jul 25, 2025

Conversation

rasapala
Copy link
Collaborator

🛠 Summary

JIRA CVS-168977
Add libgit2.so to fuzz build dependency - libovms_shared.

🧪 Checklist

  • Unit tests added.
  • The documentation updated.
  • Change follows security best practices.
    ``

@rasapala rasapala requested review from atobiszei and mzegla July 16, 2025 10:00
src/BUILD Outdated
@@ -134,6 +134,7 @@ cc_shared_library(
features = [],
roots = [
"//src:ovms_lib",
"@llm_engine//:llm_engine", "@libgit2_engine//:libgit2_engine",
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

@rasapala rasapala requested a review from dkalinowski July 23, 2025 14:30
@@ -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/ \; \
Copy link
Collaborator

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?

Copy link
Collaborator Author

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.

@rasapala rasapala merged commit 2a1f932 into main Jul 25, 2025
14 checks passed
@rasapala rasapala deleted the fix_fuzz branch July 25, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants