Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Chore: attempt to resolve Codecov patch coverage issues (#11773)

Trenton H6cf8abc5d312
diff --git a/.codecov.yml b/.codecov.yml
index b4037d507..e6b4d0347 100644
--- a/.codecov.yml
+++ b/.codecov.yml
@@ -1,6 +1,7 @@
+# https://docs.codecov.com/docs/codecovyml-reference#codecov
codecov:
require_ci_to_pass: true
- # https://docs.codecov.com/docs/components
+# https://docs.codecov.com/docs/components
component_management:
individual_components:
- component_id: backend
@@ -9,35 +10,70 @@ component_management:
- component_id: frontend
paths:
- src-ui/**
+# https://docs.codecov.com/docs/flags#step-2-flag-management-in-yaml
+# https://docs.codecov.com/docs/carryforward-flags
flags:
- backend:
+ # Backend Python versions
+ backend-python-3.10:
paths:
- src/**
carryforward: true
- frontend:
+ backend-python-3.11:
+ paths:
+ - src/**
+ carryforward: true
+ backend-python-3.12:
+ paths:
+ - src/**
+ carryforward: true
+ # Frontend (shards merge into single flag)
+ frontend-node-24.x:
paths:
- src-ui/**
carryforward: true
-# https://docs.codecov.com/docs/pull-request-comments
comment:
layout: "header, diff, components, flags, files"
- # https://docs.codecov.com/docs/javascript-bundle-analysis
require_bundle_changes: true
bundle_change_threshold: "50Kb"
coverage:
+ # https://docs.codecov.com/docs/commit-status
status:
project:
- default:
+ backend:
+ flags:
+ - backend-python-3.10
+ - backend-python-3.11
+ - backend-python-3.12
+ paths:
+ - src/**
# https://docs.codecov.com/docs/commit-status#threshold
threshold: 1%
+ removed_code_behavior: adjust_base
+ frontend:
+ flags:
+ - frontend-node-24.x
+ paths:
+ - src-ui/**
+ threshold: 1%
+ removed_code_behavior: adjust_base
patch:
- default:
- # For the changed lines only, target 100% covered, but
- # allow as low as 75%
+ backend:
+ flags:
+ - backend-python-3.10
+ - backend-python-3.11
+ - backend-python-3.12
+ paths:
+ - src/**
+ target: 100%
+ threshold: 25%
+ frontend:
+ flags:
+ - frontend-node-24.x
+ paths:
+ - src-ui/**
target: 100%
threshold: 25%
# https://docs.codecov.com/docs/javascript-bundle-analysis
bundle_analysis:
- # Fail if the bundle size increases by more than 1MB
warning_threshold: "1MB"
status: true
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml
index 25d19f73a..98c10396c 100644
--- a/.github/workflows/ci-backend.yml
+++ b/.github/workflows/ci-backend.yml
@@ -88,13 +88,13 @@ jobs:
if: always()
uses: codecov/codecov-action@v5
with:
- flags: backend,backend-python-${{ matrix.python-version }}
+ flags: backend-python-${{ matrix.python-version }}
files: junit.xml
report_type: test_results
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
- flags: backend,backend-python-${{ matrix.python-version }}
+ flags: backend-python-${{ matrix.python-version }}
files: coverage.xml
report_type: coverage
- name: Stop containers
diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml
index 907d36abf..d800fe827 100644
--- a/.github/workflows/ci-frontend.yml
+++ b/.github/workflows/ci-frontend.yml
@@ -109,13 +109,13 @@ jobs:
if: always()
uses: codecov/codecov-action@v5
with:
- flags: frontend,frontend-node-${{ matrix.node-version }}
+ flags: frontend-node-${{ matrix.node-version }}
directory: src-ui/
report_type: test_results
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
- flags: frontend,frontend-node-${{ matrix.node-version }}
+ flags: frontend-node-${{ matrix.node-version }}
directory: src-ui/coverage/
e2e-tests:
name: "E2E Tests (${{ matrix.shard-index }}/${{ matrix.shard-count }})"