Closed kloczek closed 8 months ago
After add above 4 units to exclude list more units
So looks like there are some dependencies between units.
Hi @kloczek That is very strange and we never seen that before. First tests fail to find CXX compiler and second try PERL? Does it work if you don't add "-j48" to the ctest command?
Need to test that .. nevertheless If any units needs to be excluded from parallelization it should be adjusted in ctest settings https://www.scivision.dev/cmake-resource-lock-ctest/
OK after add to build env C++ compiler and perl test suite is OK. Nevertheless still ;looks like there are some dependencies between units usually if some software is needed even by test suite in build automation should be couple of checks for those build/test dependencies (to not be surprised afer successful build on test suite execution that still something is missing. Maybe it is not hard bug/issue but some kind of issue it is 😋 As I have solution I'm leaving you decision what to do with this ticket (improve something or just close). Thx.
What do you mean with "OK after add to build env C++ compiler and perl test suite is OK" ? Could you perhaps explain the steps you have done to make it work?
It means that after add those two missing to build env even with -j48 test suite do not fails.
Thanks for your feedback. I will close this for now.
What happened?
Test suite fails in 4 units
What are the steps to reproduce the bug?
cmake setup
```console -- Cache values CMAKE_BUILD_TYPE:STRING=RelWithDebInfo CMAKE_INSTALL_PREFIX:PATH=/usr ECBUILD_2_COMPAT:BOOL=OFF ECBUILD_2_COMPAT_DEPRECATE:BOOL=ON ENABLE_PKGCONFIG:BOOL=ON ENABLE_TESTS:BOOL=ON MEMORYCHECK_COMMAND_OPTIONS:STRING=--trace-children=yes --leak-check=full --error-exitcode=1 SPHINX_EXECUTABLE:FILEPATH=SPHINX_EXECUTABLE-NOTFOUND SPHINX_HTML:BOOL=OFF SPHINX_MAN:BOOL=OFF SPHINX_QTHELP:BOOL=OFF SPHINX_SINGLEHTML:BOOL=OFF ```Version
3.8.2
Platform (OS and architecture)
Linux/x86_64
Relevant log output
ctest fails with
``` + cd ecbuild-3.8.2 + /usr/bin/ctest --test-dir x86_64-redhat-linux-gnu --output-on-failure --force-new-ctest-process -j48 Internal ctest changing into directory: /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/x86_64-redhat-linux-gnu Test project /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/x86_64-redhat-linux-gnu Start 1: ECBUILD-359 Start 2: ECBUILD-401 Start 3: ECBUILD-407 Start 4: ECBUILD-415 Start 5: ECBUILD-433 Start 6: ECBUILD-495 Start 7: ECBUILD-509 Start 8: ECBUILD-511 Start 9: ECBUILD-399-ld-origin Start 10: ECBUILD-399-buildfail Start 11: bundle-subdir-std Start 12: bundle-subdir-ecbfind Start 13: bundle-subproj Start 14: bundle-override-features Start 15: test_ecbuild_regex_escape Start 16: test_ecbuild_remove_fortran_flags Start 17: test_ecbuild_find_package Start 18: test_ecbuild_add_option Start 19: test_ecbuild_add_flags Start 20: find-ecbuild-module Start 21: find-ecbuild-direnv Start 22: find-ecbuild-direnv-full Start 23: find-ecbuild-dircmd Start 24: project_import 1/24 Test #4: ECBUILD-415 ......................... Passed 0.03 sec 2/24 Test #15: test_ecbuild_regex_escape ........... Passed 0.02 sec 3/24 Test #16: test_ecbuild_remove_fortran_flags ... Passed 0.02 sec 4/24 Test #17: test_ecbuild_find_package ...........***Failed 0.30 sec /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/tests/ecbuild_find_package/../../bin:/usr/bin:/usr/sbin:/usr/local/sbin /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/tests/ecbuild_find_package cleaning /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/x86_64-redhat-linux-gnu/tests/ecbuild_find_package /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/x86_64-redhat-linux-gnu/tests/ecbuild_find_package/projectA/build Found CMake version 3.28.3 cmake -DCMAKE_MODULE_PATH=/home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/cmake -DCMAKE_INSTALL_PREFIX=../install -Wno-deprecated /home/tkloczko/rpmbuild/BUILD/ecbuild-3.8.2/tests/ecbuild_find_package/projectA CMake Warning (dev) at CMakeLists.txt:3 (find_package): Policy CMP0074 is not set: find_package usesAccompanying data
No response
Organisation
No response