From 0341b9be9547d327de0a32f57224d6fa83122e9c Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Wed, 24 Apr 2024 08:25:53 +0200 Subject: [PATCH 1/2] Improve reliability of codecov upload --- .github/workflows/codecov.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 5c2a6ebb2..815d7627f 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -186,3 +186,15 @@ jobs: - name: Upload coverage if: matrix.coverage run: ci/codecov.sh "upload" + env: + BOOST_CI_CODECOV_IO_UPLOAD: skip + + - name: Upload coverage + if: matrix.coverage + uses: codecov/codecov-action@v4 + with: + disable_search: true + file: coverage.info + name: Github Actions + token: ${{secrets.CODECOV_TOKEN}} + verbose: true From 6cd292e368e7d83639ab266c55573d26dee32d24 Mon Sep 17 00:00:00 2001 From: Matt Borland Date: Wed, 24 Apr 2024 08:28:27 +0200 Subject: [PATCH 2/2] Split coverage into multiple runs like boost.math --- .github/workflows/codecov.yml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 815d7627f..77adb985e 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -40,9 +40,23 @@ jobs: matrix: include: - { name: Collect coverage 1, coverage: yes, - compiler: gcc-12, cxxstd: '20', os: ubuntu-22.04, install: 'g++-12-multilib', address-model: '64', suite: 'github_ci_block_1' } + compiler: gcc-12, cxxstd: '20', os: ubuntu-22.04, install: 'g++-12-multilib', address-model: '64', suite: 'arithmetic_tests' } - { name: Collect coverage 2, coverage: yes, - compiler: gcc-12, cxxstd: '20', os: ubuntu-22.04, install: 'g++-12-multilib', address-model: '64', suite: 'github_ci_block_2' } + compiler: gcc-12, cxxstd: '20', os: ubuntu-22.04, install: 'g++-12-multilib', address-model: '64', suite: 'cpp_int_tests' } + - { name: Collect coverage 3, coverage: yes, + compiler: gcc-12, cxxstd: '20', os: ubuntu-22.04, install: 'g++-12-multilib', address-model: '64', suite: 'functions_and_limits' } + - { name: Collect coverage 4, coverage: yes, + compiler: gcc-12, cxxstd: '20', os: ubuntu-22.04, install: 'g++-12-multilib', address-model: '64', suite: 'conversions' } + - { name: Collect coverage 5, coverage: yes, + compiler: gcc-12, cxxstd: '20', os: ubuntu-22.04, install: 'g++-12-multilib', address-model: '64', suite: 'performance' } + - { name: Collect coverage 6, coverage: yes, + compiler: gcc-12, cxxstd: '20', os: ubuntu-22.04, install: 'g++-12-multilib', address-model: '64', suite: 'misc' } + - { name: Collect coverage 7, coverage: yes, + compiler: gcc-12, cxxstd: '20', os: ubuntu-22.04, install: 'g++-12-multilib', address-model: '64', suite: 'compile_fail' } + - { name: Collect coverage 8, coverage: yes, + compiler: gcc-12, cxxstd: '20', os: ubuntu-22.04, install: 'g++-12-multilib', address-model: '64', suite: 'examples' } + - { name: Collect coverage 9, coverage: yes, + compiler: gcc-12, cxxstd: '20', os: ubuntu-22.04, install: 'g++-12-multilib', address-model: '64', suite: 'concepts' } #timeout-minutes: 120 runs-on: ${{matrix.os}}