approvals / ApprovalTests.cpp

Native ApprovalTests for C++ on Linux, Mac and Windows
https://approvaltestscpp.readthedocs.io/en/latest/
Apache License 2.0
317 stars 51 forks source link

cygwin CI build hangs for 6 hours then fails #192

Closed claremacrae closed 2 years ago

claremacrae commented 2 years ago

Since 2021-10-31T10:58:43, the Cygwin GitHub Actions build has been timing out after 6 hours.

The 2021-10-27T01:19:06 build worked fine.

The key problem output is:

/home/runneradmin
-- The C compiler identification is GNU 11.2.0
-- The CXX compiler identification is GNU 11.2.0
-- Detecting C compiler ABI info
Error: The operation was canceled.
claremacrae commented 2 years ago

Last passing cygwin build

2021-10-27T01:22:00.2370158Z /home/runneradmin
2021-10-27T01:22:00.7132038Z -- The C compiler identification is GNU 11.2.0
2021-10-27T01:22:01.1511976Z -- The CXX compiler identification is GNU 11.2.0
2021-10-27T01:22:01.3345115Z -- Detecting C compiler ABI info
2021-10-27T01:22:01.4569110Z -- Detecting C compiler ABI info - failed
2021-10-27T01:22:01.4579158Z -- Check for working C compiler: /usr/bin/cc
2021-10-27T01:22:01.8781617Z -- Check for working C compiler: /usr/bin/cc - works
claremacrae commented 2 years ago

First failure

2021-10-31T11:02:09.8670109Z /home/runneradmin
2021-10-31T11:02:10.4093577Z -- The C compiler identification is GNU 11.2.0
2021-10-31T11:02:10.9970469Z -- The CXX compiler identification is GNU 11.2.0
2021-10-31T11:02:11.2962653Z -- Detecting C compiler ABI info
2021-10-31T16:58:56.5710031Z ##[error]The operation was canceled.
2021-10-31T16:58:56.6550538Z Post job cleanup.
claremacrae commented 2 years ago

I've asked for help on the Cmake Discourse:

https://discourse.cmake.org/t/how-to-debug-detecting-c-compiler-abi-info-hanging-cygwin-on-github-actions/4580

claremacrae commented 2 years ago

I've asked for help on the Cmake Discourse:

https://discourse.cmake.org/t/how-to-debug-detecting-c-compiler-abi-info-hanging-cygwin-on-github-actions/4580

Suggestion from the CMake Discourse thread:

All that being said. If you use find you should see the project that CMake generates for the try_compile. You should be able to run make in that directory and see if it can build the project or if make is the program that is hanging.

My reply:

Brilliant idea - I’ll add steps to list the contents of the directory where try_compile is run, and go from there…

claremacrae commented 2 years ago

We've restarted the Cygwin builds recently, and they are running fine now..