-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Enable Global Tests on Windows CI #2137
Enable Global Tests on Windows CI #2137
Conversation
Oops, It is failed installing google test with Vcpkg. |
.appveyor.yml
Outdated
-DBUILD_examples=OFF | ||
-DBUILD_tools=OFF | ||
-DBUILD_apps=OFF | ||
.. | ||
- cmake --build . --config %CONFIGURATION% | ||
- ctest -C %CONFIGURATION% -V |
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.
Don't forget to add this new line later.
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.
Fixed
Nice digging on that request thread ^^ |
Tests for Visual Studio 2015 (x86) were finished without timeout. (1hours 17min.) |
If you replicate the pattern we have on Travis to split the tests in 2 or 3 different jobs, the problem should be solved.
|
7616af4
to
7c53cf9
Compare
I was implemented Tests with Ninja build tool. Probably, It is building faster than MSBuild. By default, AppVeyor has disabled saving cache in pull request builds. |
What do you think about failed tests.
|
@SergioRAgostinho I don't want to split the tests job. If possible, I think that it is good to keep simple. |
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.
I think it is ready to merge after 3rdParty cached and confirm to exit without timeout.
I'm ok with that. I assume you have permissions for doing this on your own, as a member of the PCL team.
Also, If it is necessary to temporarily disable failed tests, I will push a commit to do it.
Also fine by me.
.appveyor.yml
Outdated
# Platform: x64 | ||
- APPVEYOR_BUILD_WORKER_IMAGE: 'Visual Studio 2015' | ||
PLATFORM: x86 | ||
GENERATOR: 'Ninja' |
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.
If GENERATOR: 'Ninja'
is valid for all jobs, you might was well simply add it as a global env, just like VCPKG_DIR
and NINJA_DIR
.
CMakeLists.txt
Outdated
@@ -206,6 +206,9 @@ set(PCL_OUTPUT_BIN_DIR "${PCL_BINARY_DIR}/${BIN_INSTALL_DIR}") | |||
make_directory("${PCL_OUTPUT_LIB_DIR}") | |||
make_directory("${PCL_OUTPUT_BIN_DIR}") | |||
if(WIN32) | |||
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PCL_OUTPUT_LIB_DIR}") | |||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PCL_OUTPUT_BIN_DIR}") | |||
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PCL_OUTPUT_BIN_DIR}") |
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.
Notice that now we can move
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PCL_OUTPUT_LIB_DIR}")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PCL_OUTPUT_BIN_DIR}")
out of the if/else(WIN32)
conditionals, since if became common to all platforms.
I temporarily turned ON "Save build cache in Pull Requests" option for make 3rdParty cache. |
Hmm, The boost port was updated while creating cache. |
I found a problem (microsoft/vcpkg#2406) in new Boost port. |
I will retry to create 3rdParty cache and running tests. |
Seems like it's time to disable the failing tests :) |
Currently, These tests have failed.
How to disable these tests? #PCL_ADD_TEST(common_eigen test_eigen FILES test_eigen.cpp LINK_WITH pcl_gtest pcl_common) Or, Disable these tests by conditional branch? if(NOT MSVC)
PCL_ADD_TEST(common_eigen test_eigen FILES test_eigen.cpp LINK_WITH pcl_gtest pcl_common)
endif() |
More like
…-DBUILD_global_tests_features=OFF . ..
Basically like we used to have on Travis before this recent PR merging everything together.
Sent from my Phone
On 22 Dec 2017, at 13:55, Tsukasa Sugiura ***@***.***> wrote:
Currently, These tests have failed.
The following tests FAILED:
13 - common_eigen (Failed)
23 - feature_rift_estimation (Failed)
25 - feature_cppf_estimation (Failed)
27 - feature_pfh_estimation (Failed)
50 - filters_sampling (Failed)
68 - io_grabbers (Failed)
81 - registration_api (Failed)
How to disable these tests?
Would you like to disable these tests by commentout?
#PCL_ADD_TEST(common_eigen test_eigen FILES test_eigen.cpp LINK_WITH pcl_gtest pcl_common)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
340309f
to
b01703e
Compare
Currently, Vcpkg build failed. microsoft/vcpkg#2427 |
Tests was exit without timeout and complete successfully! 🎉 |
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.
LGTM. You're gonna need to squash some of these commits. These are the commits which are particularly relevant to be kept isolated:
- 15b515b
- e5103a1 and 43a5193 to be squashed into a single one
- The rest can all be squashed into a third commit enabling tests on windows.
Should we freeze vcpkg to the current commit, to prevent upstream breakage down the road?
By the way. Why did test_2d started failing now? Is it somehow related to 05a0e95 ? It can be fixed by adding the io dependency on the test_2d target. |
eacd233
to
17a0bf2
Compare
Enable Global Tests on Windows CI.
Ninja build system doesn't use CMAKE_*_OUTPUT_DIRECTORY_${CONFIG} that setting the output directory for each build configure.
Add 1.65.1 and 1.66.0
It will not be installed when cached. And, I think it will be fixed quickly even if there is a time when vcpkg couldn't be built. (#2137 (comment) is unusual case.)
I tried test_2d with/without that commit, but both case also failed. |
17a0bf2
to
e1ffbc4
Compare
BTW, how did you come up with the list of boost libraries to be installed? These are different from what Travis build needs. |
This part is the modules that PCL specifies in
|
Enable Global Tests on Windows CI. #2136