Skip to content
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: Build runner test only when VELOX_BUILD_TESTING enabled #11669

Closed
wants to merge 1 commit into from

Conversation

zuyu
Copy link
Contributor

@zuyu zuyu commented Nov 26, 2024

A minor CMake fix for #11609, to address the linking issue when VELOX_BUILD_TESTING is off.

20:52:36  #10 2.268 CMake Error at velox/velox/runner/tests/CMakeLists.txt:19 (target_link_libraries):
20:52:36  #10 2.268   Target "velox_local_runner_test" links to:
20:52:36  #10 2.268 
20:52:36  #10 2.268     GTest::gtest
20:52:36  #10 2.268 
20:52:36  #10 2.268   but the target was not found.  Possible reasons include:
20:52:36  #10 2.268 
20:52:36  #10 2.268     * There is a typo in the target name.
20:52:36  #10 2.268     * A find_package call is missing for an IMPORTED target.
20:52:36  #10 2.268     * An ALIAS target is missing.
20:52:36  #10 2.268 
20:52:36  #10 2.268 
20:52:36  #10 2.268 
20:52:36  #10 2.273 CMake Generate step failed.  Build files cannot be regenerated correctly.
20:52:36  #10 2.302 make: *** [Makefile:96: cmake-and-build] Error 1
20:52:36  #10 2.302 make: Leaving directory '/prestissimo'
20:52:36  #10 ERROR: process "/bin/sh -c EXTRA_CMAKE_FLAGS=${EXTRA_CMAKE_FLAGS}     NUM_THREADS=${NUM_THREADS} make --directory=\"/prestissimo/\" cmake-and-build BUILD_TYPE=${BUILD_TYPE} BUILD_DIR=${BUILD_DIR} BUILD_BASE_DIR=${BUILD_BASE_DIR}" did not complete successfully: exit code: 2

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Nov 26, 2024
Copy link

netlify bot commented Nov 26, 2024

Deploy Preview for meta-velox canceled.

Name Link
🔨 Latest commit c75778b
🔍 Latest deploy log https://app.netlify.com/sites/meta-velox/deploys/6746335208a2670008f90c78

Copy link
Collaborator

@assignUser assignUser left a comment

Choose a reason for hiding this comment

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

Thanks!

@assignUser assignUser added the ready-to-merge PR that have been reviewed and are ready for merging. PRs with this tag notify the Velox Meta oncall label Nov 27, 2024
@facebook-github-bot
Copy link
Contributor

@xiaoxmeng has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@xiaoxmeng merged this pull request in af20b93.

@zuyu zuyu deleted the runner-test-cmake branch November 30, 2024 01:41
TongWei1105 pushed a commit to TongWei1105/velox that referenced this pull request Dec 3, 2024
…kincubator#11669)

Summary:
A minor CMake fix for facebookincubator#11609, to address the linking issue when `VELOX_BUILD_TESTING` is off.

```C++
20:52:36  facebookincubator#10 2.268 CMake Error at velox/velox/runner/tests/CMakeLists.txt:19 (target_link_libraries):
20:52:36  facebookincubator#10 2.268   Target "velox_local_runner_test" links to:
20:52:36  facebookincubator#10 2.268
20:52:36  facebookincubator#10 2.268     GTest::gtest
20:52:36  facebookincubator#10 2.268
20:52:36  facebookincubator#10 2.268   but the target was not found.  Possible reasons include:
20:52:36  facebookincubator#10 2.268
20:52:36  facebookincubator#10 2.268     * There is a typo in the target name.
20:52:36  facebookincubator#10 2.268     * A find_package call is missing for an IMPORTED target.
20:52:36  facebookincubator#10 2.268     * An ALIAS target is missing.
20:52:36  facebookincubator#10 2.268
20:52:36  facebookincubator#10 2.268
20:52:36  facebookincubator#10 2.268
20:52:36  facebookincubator#10 2.273 CMake Generate step failed.  Build files cannot be regenerated correctly.
20:52:36  facebookincubator#10 2.302 make: *** [Makefile:96: cmake-and-build] Error 1
20:52:36  facebookincubator#10 2.302 make: Leaving directory '/prestissimo'
20:52:36  facebookincubator#10 ERROR: process "/bin/sh -c EXTRA_CMAKE_FLAGS=${EXTRA_CMAKE_FLAGS}     NUM_THREADS=${NUM_THREADS} make --directory=\"/prestissimo/\" cmake-and-build BUILD_TYPE=${BUILD_TYPE} BUILD_DIR=${BUILD_DIR} BUILD_BASE_DIR=${BUILD_BASE_DIR}" did not complete successfully: exit code: 2
```

Pull Request resolved: facebookincubator#11669

Reviewed By: zacw7

Differential Revision: D66560342

Pulled By: xiaoxmeng

fbshipit-source-id: 9f6b74c5a64f6e248cb8d86ec213ae76eb894770
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged ready-to-merge PR that have been reviewed and are ready for merging. PRs with this tag notify the Velox Meta oncall
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants