From b192a292bba1e0eb309ba63e7768ba287fc393c0 Mon Sep 17 00:00:00 2001 From: tibvdm Date: Thu, 4 Apr 2024 11:53:46 +0200 Subject: [PATCH 1/3] first try at managing flags --- codecov.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 codecov.yml diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..d74560d --- /dev/null +++ b/codecov.yml @@ -0,0 +1,14 @@ +flag_management: + default_rules: + carryforward: true + statuses: + - type: project + target: auto + threshold: 60% + individual_flags: + - name: fa-compression + paths: + - fa-compression + statuses: + - type: project + target: 90% From e23204b98f0b199ef46d485cfcb9220a7cb0face Mon Sep 17 00:00:00 2001 From: tibvdm Date: Thu, 4 Apr 2024 12:06:37 +0200 Subject: [PATCH 2/3] manual config --- codecov.yml | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/codecov.yml b/codecov.yml index d74560d..718c654 100644 --- a/codecov.yml +++ b/codecov.yml @@ -1,14 +1,15 @@ -flag_management: - default_rules: - carryforward: true - statuses: - - type: project - target: auto - threshold: 60% - individual_flags: - - name: fa-compression - paths: - - fa-compression - statuses: - - type: project - target: 90% +coverage: + status: + project: + default: + target: 90% + fa-compression: + target: 90% + flags: + - fa-compression + +flags: + fa-compression: + paths: + - fa-compression/* + carryforward: false From ce0ab3fabff23f9db25314b57cfbc0aa2317d169 Mon Sep 17 00:00:00 2001 From: tibvdm Date: Thu, 4 Apr 2024 14:08:54 +0200 Subject: [PATCH 3/3] adapt coverage --- .github/workflows/coverage.yml | 9 +++++---- codecov.yml | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index a94936f..754f743 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -17,24 +17,25 @@ jobs: toolchain: nightly override: true - - name: Run cargo test + - name: Run cargo test (fa-compression) uses: actions-rs/cargo@v1 with: command: test - args: --all-features --no-fail-fast + args: --all-features --no-fail-fast -p fa-compression env: CARGO_INCREMENTAL: 0 RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Cpanic=abort -Zpanic_abort_tests' - - name: Gather coverage information + - name: Gather coverage information (fa-compression) id: coverage uses: actions-rs/grcov@v0.1 - - name: Upload coverage reports to Codecov + - name: Upload coverage reports to Codecov (fa-compression) uses: codecov/codecov-action@v4.0.1 with: token: ${{ secrets.CODECOV_TOKEN }} file: ${{ steps.coverage.outputs.report }} + flags: fa-compression verbose: true fail_ci_if_error: true diff --git a/codecov.yml b/codecov.yml index 718c654..f49eb98 100644 --- a/codecov.yml +++ b/codecov.yml @@ -11,5 +11,5 @@ coverage: flags: fa-compression: paths: - - fa-compression/* - carryforward: false + - fa-compression + carryforward: true