seitime-frappe/codecov.yml
Ankush Menat 098a0851c6
ci: Fix coverage reporting (again) (#38849)
* chore: remove _decorate_all_methods_and_functions_with_type_checker

No one understands this runtime magic anymore.

* build: Bump coverage.py to latest

* test: Skip github in coverage reporting

* test: Print traceback from all threads when test is stuck

* ci: Enable coverage in server side tests

* ci: Always enable coverage

It's cheap in recent python versions, our reasons for selectively
disabling aren't valid anymore.

* ci: Disable stderr capturing

* ci: Use default buffer behaviour in unittest runner

* ci(coverage): Set concurrency to multiprocessing

We do use multiprocessing, perhaps the patches aren't concurrectly
handled?

* ci(coverage): Try parallel run

* fix: Apply subprocess patch

* ci: Don't start web server with coverage

Causes deadlock for some reason. We don't actually report it either.

* ci: only submit UI coverage if ran

* test: remove aggresive stuck test checking

* ci: disable UI coverage

(for now)
2026-04-24 16:05:14 +05:30

56 lines
1.1 KiB
YAML

codecov:
require_ci_to_pass: yes
coverage:
range: 60..90
status:
project:
default:
target: auto
threshold: 0.5%
flags:
- server
patch:
default:
target: 85%
threshold: 0%
only_pulls: true
if_ci_failed: ignore
flags:
- server
comment:
layout: "diff, flags"
require_changes: true
show_critical_paths: true
flags:
server:
paths:
- "**/*.py"
carryforward: true
server-ui:
paths:
- "**/*.py"
carryforward: true
profiling:
critical_files_paths:
- /frappe/api.py
- /frappe/app.py
- /frappe/auth.py
- /frappe/boot.py
- /frappe/client.py
- /frappe/handler.py
- /frappe/migrate.py
- /frappe/sessions.py
- /frappe/utils/*
- /frappe/desk/reportview.py
- /frappe/desk/form/*
- /frappe/model/*
- /frappe/core/doctype/doctype/*
- /frappe/core/doctype/data_import/*
- /frappe/core/doctype/user/*
- /frappe/core/doctype/user/*
- /frappe/query_builder/*
- /frappe/database/*