Skip to content

Commit

Permalink
Refine CI setup pt 4
Browse files Browse the repository at this point in the history
  • Loading branch information
lczech committed Jul 2, 2024
1 parent e4dca94 commit 19063c5
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 52 deletions.
104 changes: 53 additions & 51 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,10 @@ jobs:
# Newer compiler versions are not available on all Ubuntu, so some are excluded.
# Older GCC versions are also not supported by MacOS 12 any more.

# Currently, llvm-9 causes weird segfauls on Ubuntu, which do not seem to be our fault.
# Currently, llvm-9 causes weird segfauls on Ubuntu, which do not seem to be our fault,
# but rather a bug in their thread forking, according to valgrind.
# Need to investiage further at some point. We used setup-cpp locally to install
# the very same version of llvm-9, and got tons of segfauls for all kind of functions...
# the very same version of llvm-9, and got tons of segfauls for all kind of functions.

# We also currently exclude clang from macos, as it fails with different types of
# linker errors. As this is merely a problem in the setup, we defer solving this for now.
Expand Down Expand Up @@ -112,8 +113,8 @@ jobs:
compiler: llvm-7
- os: ubuntu-20.04
compiler: llvm-8
- os: ubuntu-20.04
compiler: llvm-9
# - os: ubuntu-20.04
# compiler: llvm-9
- os: ubuntu-20.04
compiler: llvm-10
- os: ubuntu-20.04
Expand Down Expand Up @@ -159,8 +160,8 @@ jobs:
compiler: llvm-7
- os: ubuntu-22.04
compiler: llvm-8
- os: ubuntu-22.04
compiler: llvm-9
# - os: ubuntu-22.04
# compiler: llvm-9
- os: ubuntu-22.04
compiler: llvm-10
- os: ubuntu-22.04
Expand Down Expand Up @@ -325,48 +326,48 @@ jobs:
# MacOS 14
# -------------------------------

- os: macos-14
compiler: gcc-7
- os: macos-14
compiler: gcc-8
- os: macos-14
compiler: gcc-9
- os: macos-14
compiler: gcc-10
- os: macos-14
compiler: gcc-11
- os: macos-14
compiler: gcc-12
- os: macos-14
compiler: gcc-13
- os: macos-14
compiler: gcc-14
- os: macos-14
compiler: llvm-6
- os: macos-14
compiler: llvm-7
- os: macos-14
compiler: llvm-8
- os: macos-14
compiler: llvm-9
- os: macos-14
compiler: llvm-10
- os: macos-14
compiler: llvm-11
- os: macos-14
compiler: llvm-12
- os: macos-14
compiler: llvm-13
- os: macos-14
compiler: llvm-14
- os: macos-14
compiler: llvm-15
- os: macos-14
compiler: llvm-16
- os: macos-14
compiler: llvm-17
- os: macos-14
compiler: llvm-18
# - os: macos-14
# compiler: gcc-7
# - os: macos-14
# compiler: gcc-8
# - os: macos-14
# compiler: gcc-9
# - os: macos-14
# compiler: gcc-10
# - os: macos-14
# compiler: gcc-11
# - os: macos-14
# compiler: gcc-12
# - os: macos-14
# compiler: gcc-13
# - os: macos-14
# compiler: gcc-14
# - os: macos-14
# compiler: llvm-6
# - os: macos-14
# compiler: llvm-7
# - os: macos-14
# compiler: llvm-8
# - os: macos-14
# compiler: llvm-9
# - os: macos-14
# compiler: llvm-10
# - os: macos-14
# compiler: llvm-11
# - os: macos-14
# compiler: llvm-12
# - os: macos-14
# compiler: llvm-13
# - os: macos-14
# compiler: llvm-14
# - os: macos-14
# compiler: llvm-15
# - os: macos-14
# compiler: llvm-16
# - os: macos-14
# compiler: llvm-17
# - os: macos-14
# compiler: llvm-18

# -------------------------------
# Release
Expand Down Expand Up @@ -416,8 +417,8 @@ jobs:
compiler: apple
- os: macos-13
compiler: apple
- os: macos-14
compiler: apple
# - os: macos-14
# compiler: apple

# ==========================================================================
# Steps
Expand Down Expand Up @@ -479,7 +480,8 @@ jobs:
brew install autoconf automake libdeflate libomp
if [[ ${{ matrix.os }} != macos-14 ]] && [[ ${{ matrix.os }} != macos-latest ]] ; then
echo "Installing debuggers"
brew install gdb valgrind
brew install gdb
# brew install valgrind
fi
if [[ "${{ matrix.compiler }}" == gcc* ]]; then
echo "Patching xcode gcc issues"
Expand Down
7 changes: 6 additions & 1 deletion test/src/utils/core/info.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ TEST( Info, Compiler )
// check if it runs without failing, and returns some characters.
auto info = info_print_compiler();
ASSERT_GT( info.size(), 200 );
// LOG_DBG << info;
LOG_DBG << info;
}

TEST( Info, Hardware )
Expand Down Expand Up @@ -105,6 +105,10 @@ TEST( Info, Usage )
EXPECT_GT( info_system_current_memory_usage(), 0 );
EXPECT_GT( sum, 0 );

// Test totals
EXPECT_GT( info_process_peak_memory_usage(), 0 );
EXPECT_GT( info_process_total_cpu_time(), 0 );

// Same as above
auto info_total = info_process_print_total_usage();
ASSERT_GT( info_total.size(), 20 );
Expand All @@ -117,6 +121,7 @@ TEST( Info, FileCount )
NEEDS_TEST_DATA;
// LOG_DBG << info_process_max_file_count();
// LOG_DBG << info_process_current_file_count();
EXPECT_GT( info_process_max_file_count(), 0 );

// Get how many files are open at the moment. That should just be stdin, stdout, stderr.
// Also, apparently, in the GitHub Actions workflow, there are three more...
Expand Down

0 comments on commit 19063c5

Please sign in to comment.