Skip to content

Fix non-mediapipe build#4393

Merged
atobiszei merged 1 commit into
mainfrom
atobisze_fix_mp_off_build
Jul 22, 2026
Merged

Fix non-mediapipe build#4393
atobiszei merged 1 commit into
mainfrom
atobisze_fix_mp_off_build

Conversation

@atobiszei

Copy link
Copy Markdown
Collaborator

Regression introduced with:
#4349

Include of kfs_graph_executor_impl.hpp in src/test/ensemble_config_change_stress.cpp was not done behind ifdef.

Ticket:CVS-191156

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a regression affecting non-MediaPipe builds by ensuring MediaPipe/TensorFlow-dependent headers are only included when MEDIAPIPE_DISABLE == 0, and by adjusting Bazel test dependencies accordingly (regression traced to PR #4349, Ticket: CVS-191156).

Changes:

  • Guard MediaPipe/TensorFlow-related includes in stress-test utilities behind #if (MEDIAPIPE_DISABLE == 0).
  • Guard the kfs_graph_executor_impl.hpp include in ensemble_config_change_stress.cpp behind the same MediaPipe flag.
  • Add MediaPipe-related deps to the ovms_test Bazel target for MediaPipe-enabled builds.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/test/stress_test_utils.hpp Moves MediaPipe/TensorFlow includes under a MediaPipe-only preprocessor guard to avoid non-MediaPipe build failures.
src/test/ensemble_config_change_stress.cpp Wraps MediaPipe-dependent include behind MEDIAPIPE_DISABLE to keep the file buildable when MediaPipe is disabled.
src/BUILD Updates ovms_test dependencies for MediaPipe-enabled builds to include MediaPipe executor/utils and TF type utils.

Comment thread src/test/ensemble_config_change_stress.cpp
Comment thread src/test/stress_test_utils.hpp
@atobiszei
atobiszei merged commit bd53111 into main Jul 22, 2026
2 checks passed
@atobiszei
atobiszei deleted the atobisze_fix_mp_off_build branch July 22, 2026 11:00
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.

4 participants