TriBITSPub / TriBITS

TriBITS: Tribal Build, Integrate, and Test System,
http://tribits.org
Other
36 stars 46 forks source link

Update TriBITS GitHub Actions builds 2022-12 (#543) #544

Closed bartlettroscoe closed 1 year ago

bartlettroscoe commented 1 year ago

Fixes #543

bartlettroscoe commented 1 year ago

FYI: The ubuntu-latest, 3.25.1, makefiles, 3.8, gcc-12, g++-12, gfortran-12 build showed two failing tests:

SubProject | Name | Status | Time | Details | Summary -- | -- | -- | -- | -- | -- TriBITS | TriBITS_CTestDriver_PBP_ST_ALL_COVERAGE | Failed | 16s 860ms | Completed (Failed) | Unstable TriBITS | TriBITS_CTestDriver_AAOP_ST_ALL_COVERAGE | Failed | 14s 990ms | Completed (Failed) | Unstable

We are seeing segmentation faults when running coverage:

Running coverage for package 'WrapExternal' ...

Performing coverage
   Processing coverage (each . represents one file):
    .Segmentation fault
Problem running coverage on file: /home/runner/work/TriBITS/tribits-build/BUILD/test/ctest_driver/TribitsExampleProject/TriBITS_CTestDriver_PBP_ST_ALL_COVERAGE/BUILD/packages/wrap_external/CMakeFiles/WrapExternal_run_external_func.dir/run_external_func.cpp.gcda
Command produced error: /home/runner/work/TriBITS/tribits-build/BUILD/test/ctest_driver/TribitsExampleProject/TriBITS_CTestDriver_PBP_ST_ALL_COVERAGE/BUILD/packages/wrap_external/CMakeFiles/WrapExternal_run_external_func.dir/run_external_func.cpp.gcno:version 'B21*', prefer 'B13*'
Segmentation fault
 Cannot find any coverage files. Ignoring Coverage request.

....

TEST_1: Time: 0m16.844s
TEST_1: Return code = 255
TEST_1: Pass criteria = Match all REGEX {CTEST_DO_COVERAGE_TESTING='TRUE'} [PASSED]
TEST_1: Pass criteria = Match all REGEX {Loop through TribitsExProj packages to configure, build, and test} [PASSED]
TEST_1: Pass criteria = Match all REGEX {Final set of packages to be explicitly processed by CTest/CDash:  SimpleCxx MixedLang WithSubpackages WrapExternal 4} [PASSED]
TEST_1: Pass criteria = Match all REGEX {Running coverage for package 'SimpleCxx'} [PASSED]
TEST_1: Pass criteria = Match all REGEX {Running coverage for package 'MixedLang'} [PASSED]
TEST_1: Pass criteria = Match all REGEX {Running coverage for package 'WithSubpackages'} [PASSED]
TEST_1: Pass criteria = Match all REGEX {Running coverage for package 'WrapExternal'} [PASSED]
TEST_1: Pass criteria = Match all REGEX {TRIBITS_CTEST_DRIVER: OVERALL: ALL PASSED} [PASSED]
TEST_1: Pass criteria = ALWAYS_FAIL_ON_NONZERO_RETURN [FAILED]
TEST_1: Result = FAILED

It is not clear if this is due to CMake 3.25.1 or due to gcc-12. I will need to adjust the builds so that we can vary these two things independently.

bartlettroscoe commented 1 year ago

So, looking at the results here, it shows that these failures occur in both builds:

Therefore, the problem is gcc-12, not CMake 3.25.1.

I will update the builds to only use gcc-11 as the highest version.