apache/celix

macOS Build Timeout

Closed this issue · 3 comments

The issue has appeared in daily builds of macOS for two days in a row:

https://github.com/apache/celix/actions/runs/7311203261/job/19920500143

[100%] Building CXX object bundles/components_ready_check/gtest/CMakeFiles/test_components_ready.dir/src/ComponentsReadyTestSuite.cc.o
[100%] Built target test_cxx_shell
[100%] Linking CXX executable test_components_ready
[100%] Built target test_utils
[100%] Built target test_dfi
[100%] Built target test_cxx_rsa_configured_discovery
[100%] Built target test_cxx_remote_services_integration
[100%] Built target test_cxx_remote_service_admin
[100%] Built target celix_pswp_common_tests
[100%] Built target test_pubsub_interceptors_zmq_and_wire_v2_integration
[100%] Built target test_components_ready
[100%] Built target test_pubsub_interceptors_ws_and_wire_v2_integration
[100%] Built target test_framework
[100%] Linking CXX static library ../../../lib/libgmock.a
[100%] Built target gmock
[100%] Building CXX object _deps/googletest-build/googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o
[100%] Linking CXX static library ../../../lib/libgmock_main.a
[100%] Built target gmock_main
Error: The operation was canceled.

https://github.com/apache/celix/actions/runs/7317563474/job/19933186609

[ 93%] Linking CXX executable test_utils
[ 93%] Linking CXX executable test_components_ready
[ 93%] Built target test_log_helper
[ 93%] Built target test_pubsub_spi
[ 93%] Linking CXX executable test_framework
[ 93%] Built target test_dfi
[ 93%] Built target test_cxx_remote_service_admin
[ 93%] Built target integration_test_rsa_json_rpc
[ 93%] Built target test_components_ready
[ 93%] Built target test_cxx_rsa_configured_discovery
[ 93%] Built target test_pubsub_utils
[ 93%] Built target test_utils
[ 93%] Built target test_framework
[ 93%] Linking CXX static library ../../../lib/libgmock.a
[ 93%] Built target gmock
[ 93%] Building CXX object _deps/googletest-build/googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o
[ 93%] Linking CXX static library ../../../lib/libgmock_main.a
[ 93%] Built target gmock_main
Error: The operation was canceled.

Observing that it only happens on macos-build-brew but never on macos-build-conan, which uses ninja rather than gnu make, I have switched macos-build-brew to use ninja instead. So far it does not reproduce.

Considering this issue is relative easy to reproduce in our CI environment, it is worth further investigation.

I have not yet encountered this on my Mac. I could be an issue with not enough memory, because make -j uses unlimited jobs and (IIRC) ninja adjust the build parallelisation based on resource usage.

Now that it is not reproducible in local machine, I'll close it now.
If any of our users are affected by this, we can investigate it then.