From 613b74b6705ff02ec881ae904143702e01c44f3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Meusel?= Date: Fri, 24 Jan 2025 11:51:21 +0100 Subject: [PATCH] TRANSIENT: run only CMCE tests with extra valgrind flags --- .github/workflows/ci.yml | 526 +++++++++++++++++----------------- .github/workflows/nightly.yml | 342 +++++++++++----------- src/scripts/ci_build.py | 11 +- 3 files changed, 441 insertions(+), 438 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 880a0569d1..7fa7c40fc2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,113 +23,113 @@ concurrency: cancel-in-progress: true jobs: - windows: - name: "Windows" - strategy: - fail-fast: false - - matrix: - include: - - target: shared - arch: x86_64 - host_os: windows-2022 - - target: static - arch: x86_64 - host_os: windows-2022 - - target: amalgamation - arch: x86_64 - host_os: windows-2022 - - target: shared - arch: x86 - host_os: windows-2022 - - runs-on: ${{ matrix.host_os }} - - steps: - - uses: actions/checkout@v4 - - - name: Read Repository Configuration - uses: ./.github/actions/read-repo-config - - - name: Setup Build Agent - uses: ./.github/actions/setup-build-agent - with: - target: ${{ matrix.target }} - cache-key: ${{ matrix.host_os }}-msvc-${{ matrix.arch }}-${{ matrix.target }} - arch: ${{ matrix.arch }} - - - name: Build and Test Botan - run: python3 ./src/scripts/ci_build.py --cc='msvc' --make-tool='ninja' --cpu='${{ matrix.arch }}' --test-results-dir=junit_results ${{ matrix.target }} - - linux: - name: "Linux" - strategy: - fail-fast: false - - matrix: - include: - - compiler: gcc - target: shared - - compiler: gcc - target: amalgamation - - compiler: gcc - target: static - - compiler: clang - target: shared - - runs-on: ubuntu-22.04 - - steps: - - uses: actions/checkout@v4 - - - name: Read Repository Configuration - uses: ./.github/actions/read-repo-config - - - name: Setup Build Agent - uses: ./.github/actions/setup-build-agent - with: - target: ${{ matrix.target }} - cache-key: linux-${{ matrix.compiler }}-x86_64-${{ matrix.target }} - - - name: Build and Test Botan - run: python3 ./src/scripts/ci_build.py --cc='${{ matrix.compiler }}' --test-results-dir=junit_results ${{ matrix.target }} - - macos: - name: "macOS" - strategy: - fail-fast: false - - matrix: - include: - - target: shared - compiler: xcode - os: macos-13 - - target: amalgamation - compiler: xcode - os: macos-13 - - target: shared - compiler: xcode - os: macos-14 # uses Apple Silicon - - target: amalgamation - compiler: xcode - os: macos-14 # uses Apple Silicon - - runs-on: ${{ matrix.os }} - - steps: - - uses: actions/checkout@v4 - - - name: Read Repository Configuration - uses: ./.github/actions/read-repo-config - - - name: Setup Build Agent - uses: ./.github/actions/setup-build-agent - with: - target: ${{ matrix.target }} - cache-key: macos-${{ matrix.compiler }}-${{ matrix.os }}-${{ matrix.target }} - - - name: Build and Test Botan - run: python3 ./src/scripts/ci_build.py --cc='${{ matrix.compiler }}' --test-results-dir=junit_results ${{ matrix.target }} + # windows: + # name: "Windows" + # strategy: + # fail-fast: false + + # matrix: + # include: + # - target: shared + # arch: x86_64 + # host_os: windows-2022 + # - target: static + # arch: x86_64 + # host_os: windows-2022 + # - target: amalgamation + # arch: x86_64 + # host_os: windows-2022 + # - target: shared + # arch: x86 + # host_os: windows-2022 + + # runs-on: ${{ matrix.host_os }} + + # steps: + # - uses: actions/checkout@v4 + + # - name: Read Repository Configuration + # uses: ./.github/actions/read-repo-config + + # - name: Setup Build Agent + # uses: ./.github/actions/setup-build-agent + # with: + # target: ${{ matrix.target }} + # cache-key: ${{ matrix.host_os }}-msvc-${{ matrix.arch }}-${{ matrix.target }} + # arch: ${{ matrix.arch }} + + # - name: Build and Test Botan + # run: python3 ./src/scripts/ci_build.py --cc='msvc' --make-tool='ninja' --cpu='${{ matrix.arch }}' --test-results-dir=junit_results ${{ matrix.target }} + + # linux: + # name: "Linux" + # strategy: + # fail-fast: false + + # matrix: + # include: + # - compiler: gcc + # target: shared + # - compiler: gcc + # target: amalgamation + # - compiler: gcc + # target: static + # - compiler: clang + # target: shared + + # runs-on: ubuntu-22.04 + + # steps: + # - uses: actions/checkout@v4 + + # - name: Read Repository Configuration + # uses: ./.github/actions/read-repo-config + + # - name: Setup Build Agent + # uses: ./.github/actions/setup-build-agent + # with: + # target: ${{ matrix.target }} + # cache-key: linux-${{ matrix.compiler }}-x86_64-${{ matrix.target }} + + # - name: Build and Test Botan + # run: python3 ./src/scripts/ci_build.py --cc='${{ matrix.compiler }}' --test-results-dir=junit_results ${{ matrix.target }} + + # macos: + # name: "macOS" + # strategy: + # fail-fast: false + + # matrix: + # include: + # - target: shared + # compiler: xcode + # os: macos-13 + # - target: amalgamation + # compiler: xcode + # os: macos-13 + # - target: shared + # compiler: xcode + # os: macos-14 # uses Apple Silicon + # - target: amalgamation + # compiler: xcode + # os: macos-14 # uses Apple Silicon + + # runs-on: ${{ matrix.os }} + + # steps: + # - uses: actions/checkout@v4 + + # - name: Read Repository Configuration + # uses: ./.github/actions/read-repo-config + + # - name: Setup Build Agent + # uses: ./.github/actions/setup-build-agent + # with: + # target: ${{ matrix.target }} + # cache-key: macos-${{ matrix.compiler }}-${{ matrix.os }}-${{ matrix.target }} + + # - name: Build and Test Botan + # run: python3 ./src/scripts/ci_build.py --cc='${{ matrix.compiler }}' --test-results-dir=junit_results ${{ matrix.target }} clang-tidy: name: "Clang Tidy" @@ -158,159 +158,159 @@ jobs: if: failure() run: ./src/scripts/ci/gh_clang_tidy_fixes_in_pr.py clang_tidy_diagnostics - analysis: - name: "Analysis" - strategy: - fail-fast: false - - matrix: - include: - - target: coverage - compiler: gcc - host_os: ubuntu-24.04 - - target: sanitizer - compiler: clang - host_os: ubuntu-24.04 - - target: valgrind - compiler: clang - host_os: ubuntu-24.04 - - target: fuzzers - compiler: gcc - host_os: ubuntu-24.04 - - target: lint - compiler: gcc - host_os: ubuntu-24.04 - - target: format - compiler: gcc - host_os: ubuntu-24.04 - - target: limbo - compiler: gcc - host_os: ubuntu-24.04 - - runs-on: ${{ matrix.host_os }} - - env: - COVERALLS_REPO_TOKEN: pbLoTMBxC1DFvbws9WfrzVOvfEdEZTcCS - - steps: - - uses: actions/checkout@v4 - with: - path: ./source - - - name: Read Repository Configuration - uses: ./source/.github/actions/read-repo-config - - - name: Fetch BoringSSL fork for BoGo tests - uses: actions/checkout@v4 - with: - repository: ${{ env.BORINGSSL_REPO }} - ref: ${{ env.BORINGSSL_BRANCH }} - path: ./boringssl - if: matrix.target == 'coverage' || matrix.target == 'sanitizer' - - - name: Setup Build Agent - uses: ./source/.github/actions/setup-build-agent - with: - target: ${{ matrix.target }} - cache-key: ${{ matrix.host_os }}-${{ matrix.compiler }}-x86_64-${{ matrix.target }} - - - name: Build and Test Botan - run: python3 ./source/src/scripts/ci_build.py --root-dir=${{ github.workspace }}/source --build-dir=${{ github.workspace }}/build --boringssl-dir=${{ github.workspace }}/boringssl --cc='${{ matrix.compiler }}' --make-tool='${{ matrix.make_tool }}' --test-results-dir=junit_results ${{ matrix.target }} - - specials: - name: "Special" - strategy: - fail-fast: false - - matrix: - include: - - target: examples - compiler: gcc - host_os: ubuntu-24.04 - - target: minimized - compiler: gcc - host_os: ubuntu-24.04 - - target: bsi - compiler: gcc - host_os: ubuntu-24.04 - - target: docs - compiler: gcc - host_os: ubuntu-24.04 - - target: no_pcurves - compiler: gcc - host_os: ubuntu-24.04 - - runs-on: ${{ matrix.host_os }} - - steps: - - uses: actions/checkout@v4 - with: - path: ./source - - - name: Read Repository Configuration - uses: ./source/.github/actions/read-repo-config - - - name: Setup Build Agent - uses: ./source/.github/actions/setup-build-agent - with: - target: ${{ matrix.target }} - cache-key: ${{ matrix.host_os }}-${{ matrix.compiler }}-x86_64-${{ matrix.target }} - - - name: Build and Test Botan - run: python3 ./source/src/scripts/ci_build.py --root-dir=${{ github.workspace }}/source --build-dir=${{ github.workspace }}/build --boringssl-dir=${{ github.workspace }}/boringssl --cc='${{ matrix.compiler }}' --test-results-dir=junit_results ${{ matrix.target }} - - x-compile: - name: "Cross" - strategy: - fail-fast: false - - matrix: - include: - - target: cross-i386 - compiler: gcc - host_os: ubuntu-22.04 - - target: cross-arm32 - compiler: gcc - host_os: ubuntu-24.04 - - target: shared - compiler: gcc - host_os: ubuntu-24.04-arm - - target: shared - compiler: clang - host_os: ubuntu-24.04-arm - - target: cross-ppc64 - compiler: gcc - host_os: ubuntu-24.04 - - target: cross-mips64 - compiler: gcc - host_os: ubuntu-24.04 - - target: cross-android-arm64 - compiler: clang - host_os: ubuntu-24.04 - - target: static - compiler: gcc - host_os: windows-2022 - make_tool: make - - target: cross-ios-arm64 - compiler: xcode - host_os: macos-13 - - target: cross-arm32-baremetal - compiler: gcc - host_os: ubuntu-24.04 - - runs-on: ${{ matrix.host_os }} - - steps: - - uses: actions/checkout@v4 - - - name: Read Repository Configuration - uses: ./.github/actions/read-repo-config - - - name: Setup Build Agent - uses: ./.github/actions/setup-build-agent - with: - target: ${{ matrix.target }} - cache-key: ${{ matrix.host_os }}-${{ matrix.compiler }}-xcompile-${{ matrix.target }} - - - name: Build and Test Botan - run: python3 ./src/scripts/ci_build.py --cc='${{ matrix.compiler }}' --make-tool='${{ matrix.make_tool }}' --test-results-dir=junit_results ${{ matrix.target }} + # analysis: + # name: "Analysis" + # strategy: + # fail-fast: false + + # matrix: + # include: + # - target: coverage + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: sanitizer + # compiler: clang + # host_os: ubuntu-24.04 + # - target: valgrind + # compiler: clang + # host_os: ubuntu-24.04 + # - target: fuzzers + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: lint + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: format + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: limbo + # compiler: gcc + # host_os: ubuntu-24.04 + + # runs-on: ${{ matrix.host_os }} + + # env: + # COVERALLS_REPO_TOKEN: pbLoTMBxC1DFvbws9WfrzVOvfEdEZTcCS + + # steps: + # - uses: actions/checkout@v4 + # with: + # path: ./source + + # - name: Read Repository Configuration + # uses: ./source/.github/actions/read-repo-config + + # - name: Fetch BoringSSL fork for BoGo tests + # uses: actions/checkout@v4 + # with: + # repository: ${{ env.BORINGSSL_REPO }} + # ref: ${{ env.BORINGSSL_BRANCH }} + # path: ./boringssl + # if: matrix.target == 'coverage' || matrix.target == 'sanitizer' + + # - name: Setup Build Agent + # uses: ./source/.github/actions/setup-build-agent + # with: + # target: ${{ matrix.target }} + # cache-key: ${{ matrix.host_os }}-${{ matrix.compiler }}-x86_64-${{ matrix.target }} + + # - name: Build and Test Botan + # run: python3 ./source/src/scripts/ci_build.py --root-dir=${{ github.workspace }}/source --build-dir=${{ github.workspace }}/build --boringssl-dir=${{ github.workspace }}/boringssl --cc='${{ matrix.compiler }}' --make-tool='${{ matrix.make_tool }}' --test-results-dir=junit_results ${{ matrix.target }} + + # specials: + # name: "Special" + # strategy: + # fail-fast: false + + # matrix: + # include: + # - target: examples + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: minimized + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: bsi + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: docs + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: no_pcurves + # compiler: gcc + # host_os: ubuntu-24.04 + + # runs-on: ${{ matrix.host_os }} + + # steps: + # - uses: actions/checkout@v4 + # with: + # path: ./source + + # - name: Read Repository Configuration + # uses: ./source/.github/actions/read-repo-config + + # - name: Setup Build Agent + # uses: ./source/.github/actions/setup-build-agent + # with: + # target: ${{ matrix.target }} + # cache-key: ${{ matrix.host_os }}-${{ matrix.compiler }}-x86_64-${{ matrix.target }} + + # - name: Build and Test Botan + # run: python3 ./source/src/scripts/ci_build.py --root-dir=${{ github.workspace }}/source --build-dir=${{ github.workspace }}/build --boringssl-dir=${{ github.workspace }}/boringssl --cc='${{ matrix.compiler }}' --test-results-dir=junit_results ${{ matrix.target }} + + # x-compile: + # name: "Cross" + # strategy: + # fail-fast: false + + # matrix: + # include: + # - target: cross-i386 + # compiler: gcc + # host_os: ubuntu-22.04 + # - target: cross-arm32 + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: shared + # compiler: gcc + # host_os: ubuntu-24.04-arm + # - target: shared + # compiler: clang + # host_os: ubuntu-24.04-arm + # - target: cross-ppc64 + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: cross-mips64 + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: cross-android-arm64 + # compiler: clang + # host_os: ubuntu-24.04 + # - target: static + # compiler: gcc + # host_os: windows-2022 + # make_tool: make + # - target: cross-ios-arm64 + # compiler: xcode + # host_os: macos-13 + # - target: cross-arm32-baremetal + # compiler: gcc + # host_os: ubuntu-24.04 + + # runs-on: ${{ matrix.host_os }} + + # steps: + # - uses: actions/checkout@v4 + + # - name: Read Repository Configuration + # uses: ./.github/actions/read-repo-config + + # - name: Setup Build Agent + # uses: ./.github/actions/setup-build-agent + # with: + # target: ${{ matrix.target }} + # cache-key: ${{ matrix.host_os }}-${{ matrix.compiler }}-xcompile-${{ matrix.target }} + + # - name: Build and Test Botan + # run: python3 ./src/scripts/ci_build.py --cc='${{ matrix.compiler }}' --make-tool='${{ matrix.make_tool }}' --test-results-dir=junit_results ${{ matrix.target }} diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index e121be89fa..a25868bf35 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -22,136 +22,136 @@ on: - cron: '14 3 * * *' jobs: - sanitizer: - name: "Sanitizers" - strategy: - fail-fast: false - - matrix: - include: - - target: sanitizer - compiler: msvc - host_os: windows-2022 - make_tool: ninja - - target: sanitizer - compiler: gcc - host_os: ubuntu-24.04 - - runs-on: ${{ matrix.host_os }} - - steps: - - uses: actions/checkout@v4 - with: - path: ./source - - - name: Read Repository Configuration - uses: ./source/.github/actions/read-repo-config - - - name: Fetch BoringSSL fork for BoGo tests - uses: actions/checkout@v4 - with: - repository: ${{ env.BORINGSSL_REPO }} - ref: ${{ env.BORINGSSL_BRANCH }} - path: ./boringssl - - - name: Setup Build Agent - uses: ./source/.github/actions/setup-build-agent - with: - target: ${{ matrix.target }} - cache-key: ${{ matrix.host_os }}-${{ matrix.compiler }}-x86_64-${{ matrix.target }} - - - name: Build and Test Botan - run: python3 ./source/src/scripts/ci_build.py --root-dir=${{ github.workspace }}/source --build-dir=${{ github.workspace }}/build --boringssl-dir=${{ github.workspace }}/boringssl --cc='${{ matrix.compiler }}' --make-tool='${{ matrix.make_tool }}' --test-results-dir=junit_results ${{ matrix.target }} - - x-compile: - name: "Cross" - strategy: - fail-fast: false - - matrix: - include: - - target: cross-alpha - compiler: gcc - host_os: ubuntu-24.04 - - target: cross-hppa64 - compiler: gcc - host_os: ubuntu-24.04 - - target: cross-m68k - compiler: gcc - host_os: ubuntu-24.04 - - target: cross-mips - compiler: gcc - host_os: ubuntu-24.04 - - target: cross-ppc32 - compiler: gcc - host_os: ubuntu-24.04 - - target: cross-sh4 - compiler: gcc - host_os: ubuntu-24.04 - - target: cross-sparc64 - compiler: gcc - host_os: ubuntu-24.04 - - target: cross-riscv64 - compiler: gcc - host_os: ubuntu-24.04 - - target: cross-s390x - compiler: gcc - host_os: ubuntu-24.04 - - target: cross-android-arm64-amalgamation - compiler: clang - host_os: ubuntu-24.04 - - target: amalgamation - compiler: gcc - host_os: ubuntu-24.04-arm - - target: emscripten - compiler: emcc - host_os: macos-14 - - target: sde - compiler: gcc - host_os: ubuntu-24.04 - - runs-on: ${{ matrix.host_os }} - - steps: - - uses: actions/checkout@v4 - - - name: Read Repository Configuration - uses: ./.github/actions/read-repo-config - - - name: Setup Build Agent - uses: ./.github/actions/setup-build-agent - with: - target: ${{ matrix.target }} - cache-key: ${{ matrix.host_os }}-${{ matrix.compiler }}-xcompile-${{ matrix.target }} - - - name: Build and Test Botan - run: python3 ./src/scripts/ci_build.py --cc='${{ matrix.compiler }}' --make-tool='${{ matrix.make_tool }}' --test-results-dir=junit_results ${{ matrix.target }} - - clang_tidy: - name: "clang-tidy" - - runs-on: ubuntu-24.04 - - steps: - - uses: actions/checkout@v4 - - - name: Read Repository Configuration - uses: ./.github/actions/read-repo-config - - - name: Setup Build Agent - uses: ./.github/actions/setup-build-agent - with: - target: clang-tidy - cache-key: linux-x86_64-clang-tidy - - - name: Install dependencies - run: sudo apt-get -qq install libboost-dev libbz2-dev liblzma-dev libsqlite3-dev - - - name: Configure Build - run: python3 ./configure.py --cc=clang --build-targets=shared,cli,tests,examples,bogo_shim --build-fuzzers=test --with-boost --with-sqlite --with-zlib --with-lzma --with-bzip2 - - - name: Run Clang Tidy - run: python3 ./src/scripts/dev_tools/run_clang_tidy.py --verbose + # sanitizer: + # name: "Sanitizers" + # strategy: + # fail-fast: false + + # matrix: + # include: + # - target: sanitizer + # compiler: msvc + # host_os: windows-2022 + # make_tool: ninja + # - target: sanitizer + # compiler: gcc + # host_os: ubuntu-24.04 + + # runs-on: ${{ matrix.host_os }} + + # steps: + # - uses: actions/checkout@v4 + # with: + # path: ./source + + # - name: Read Repository Configuration + # uses: ./source/.github/actions/read-repo-config + + # - name: Fetch BoringSSL fork for BoGo tests + # uses: actions/checkout@v4 + # with: + # repository: ${{ env.BORINGSSL_REPO }} + # ref: ${{ env.BORINGSSL_BRANCH }} + # path: ./boringssl + + # - name: Setup Build Agent + # uses: ./source/.github/actions/setup-build-agent + # with: + # target: ${{ matrix.target }} + # cache-key: ${{ matrix.host_os }}-${{ matrix.compiler }}-x86_64-${{ matrix.target }} + + # - name: Build and Test Botan + # run: python3 ./source/src/scripts/ci_build.py --root-dir=${{ github.workspace }}/source --build-dir=${{ github.workspace }}/build --boringssl-dir=${{ github.workspace }}/boringssl --cc='${{ matrix.compiler }}' --make-tool='${{ matrix.make_tool }}' --test-results-dir=junit_results ${{ matrix.target }} + + # x-compile: + # name: "Cross" + # strategy: + # fail-fast: false + + # matrix: + # include: + # - target: cross-alpha + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: cross-hppa64 + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: cross-m68k + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: cross-mips + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: cross-ppc32 + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: cross-sh4 + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: cross-sparc64 + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: cross-riscv64 + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: cross-s390x + # compiler: gcc + # host_os: ubuntu-24.04 + # - target: cross-android-arm64-amalgamation + # compiler: clang + # host_os: ubuntu-24.04 + # - target: amalgamation + # compiler: gcc + # host_os: ubuntu-24.04-arm + # - target: emscripten + # compiler: emcc + # host_os: macos-14 + # - target: sde + # compiler: gcc + # host_os: ubuntu-24.04 + + # runs-on: ${{ matrix.host_os }} + + # steps: + # - uses: actions/checkout@v4 + + # - name: Read Repository Configuration + # uses: ./.github/actions/read-repo-config + + # - name: Setup Build Agent + # uses: ./.github/actions/setup-build-agent + # with: + # target: ${{ matrix.target }} + # cache-key: ${{ matrix.host_os }}-${{ matrix.compiler }}-xcompile-${{ matrix.target }} + + # - name: Build and Test Botan + # run: python3 ./src/scripts/ci_build.py --cc='${{ matrix.compiler }}' --make-tool='${{ matrix.make_tool }}' --test-results-dir=junit_results ${{ matrix.target }} + + # clang_tidy: + # name: "clang-tidy" + + # runs-on: ubuntu-24.04 + + # steps: + # - uses: actions/checkout@v4 + + # - name: Read Repository Configuration + # uses: ./.github/actions/read-repo-config + + # - name: Setup Build Agent + # uses: ./.github/actions/setup-build-agent + # with: + # target: clang-tidy + # cache-key: linux-x86_64-clang-tidy + + # - name: Install dependencies + # run: sudo apt-get -qq install libboost-dev libbz2-dev liblzma-dev libsqlite3-dev + + # - name: Configure Build + # run: python3 ./configure.py --cc=clang --build-targets=shared,cli,tests,examples,bogo_shim --build-fuzzers=test --with-boost --with-sqlite --with-zlib --with-lzma --with-bzip2 + + # - name: Run Clang Tidy + # run: python3 ./src/scripts/dev_tools/run_clang_tidy.py --verbose valgrind: name: "valgrind" @@ -210,57 +210,57 @@ jobs: - name: Valgrind Checks run: python3 ./src/scripts/ci_build.py --make-tool=make --cc=${{ matrix.compiler }} --custom-optimization-flags="${{ matrix.cxxflags }}" ${{ matrix.target }} - hybrid_tls_interop: - name: "PQ/T TLS 1.3" + # hybrid_tls_interop: + # name: "PQ/T TLS 1.3" - runs-on: ubuntu-24.04 + # runs-on: ubuntu-24.04 - steps: - - uses: actions/checkout@v4 + # steps: + # - uses: actions/checkout@v4 - - name: Read Repository Configuration - uses: ./.github/actions/read-repo-config + # - name: Read Repository Configuration + # uses: ./.github/actions/read-repo-config - - name: Setup Build Agent - uses: ./.github/actions/setup-build-agent - with: - target: hybrid-tls13-interop-test - cache-key: linux-x86_64-hybrid_tls + # - name: Setup Build Agent + # uses: ./.github/actions/setup-build-agent + # with: + # target: hybrid-tls13-interop-test + # cache-key: linux-x86_64-hybrid_tls - - name: Hybrid PQ/T TLS 1.3 Online Interop Checks - run: python3 ./src/scripts/ci_build.py --cc=gcc --make-tool=make hybrid-tls13-interop-test + # - name: Hybrid PQ/T TLS 1.3 Online Interop Checks + # run: python3 ./src/scripts/ci_build.py --cc=gcc --make-tool=make hybrid-tls13-interop-test - tls_anvil_server_test: - name: "TLS-Anvil (server)" + # tls_anvil_server_test: + # name: "TLS-Anvil (server)" - runs-on: ubuntu-24.04 + # runs-on: ubuntu-24.04 - steps: - - name: Fetch Botan Repository - uses: actions/checkout@v4 + # steps: + # - name: Fetch Botan Repository + # uses: actions/checkout@v4 - - name: Read Repository Configuration - uses: ./.github/actions/read-repo-config + # - name: Read Repository Configuration + # uses: ./.github/actions/read-repo-config - - name: Setup Build Agent - uses: ./.github/actions/setup-build-agent - with: - target: tlsanvil - cache-key: linux-x86_64-tlsanvil + # - name: Setup Build Agent + # uses: ./.github/actions/setup-build-agent + # with: + # target: tlsanvil + # cache-key: linux-x86_64-tlsanvil - - name: Build and Test Botan Server with TLS-Anvil - run: > - python3 ./src/scripts/ci/ci_tlsanvil_test.py - --botan-dir . - --test-target server - --parallel $(nproc) + # - name: Build and Test Botan Server with TLS-Anvil + # run: > + # python3 ./src/scripts/ci/ci_tlsanvil_test.py + # --botan-dir . + # --test-target server + # --parallel $(nproc) - - uses: actions/upload-artifact@v4 - with: - name: tls-anvil-server-test-results - path: | - ./TestSuiteResults/ - ./logs/ + # - uses: actions/upload-artifact@v4 + # with: + # name: tls-anvil-server-test-results + # path: | + # ./TestSuiteResults/ + # ./logs/ - - name: Check TLS-Anvil Test Results - run: python3 ./src/scripts/ci/ci_tlsanvil_check.py --verbose ./TestSuiteResults + # - name: Check TLS-Anvil Test Results + # run: python3 ./src/scripts/ci/ci_tlsanvil_check.py --verbose ./TestSuiteResults diff --git a/src/scripts/ci_build.py b/src/scripts/ci_build.py index 5971625cfa..8a405652e3 100755 --- a/src/scripts/ci_build.py +++ b/src/scripts/ci_build.py @@ -262,7 +262,10 @@ def sanitize_kv(some_string): test_prefix = ['valgrind', '-v', - '--error-exitcode=9'] + '--error-exitcode=9' + '--leak-check=full', + '--show-reachable=yes', + '--track-origins=yes'] # For finding memory bugs, we're enabling more features that add runtime # overhead which we don't need for the secret-dependent execution checks @@ -522,8 +525,8 @@ def add_boost_support(target, target_os): disabled_tests.append("os_utils") # render 'disabled_tests' array into test_cmd - if disabled_tests: - test_cmd += ['--skip-tests=%s' % (','.join(disabled_tests))] + # if disabled_tests: + # test_cmd += ['--skip-tests=%s' % (','.join(disabled_tests))] if use_gdb: (cmd, args) = test_cmd[0], test_cmd[1:] @@ -532,7 +535,7 @@ def add_boost_support(target, target_os): '-ex', 'bt', '-ex', 'quit'] else: - run_test_command = test_prefix + test_cmd + run_test_command = test_prefix + test_cmd + ["cmce"] return flags, pretest_cmd, run_test_command, make_prefix