From 8b47e4293275f286dad2a49bd5887c26d4c40293 Mon Sep 17 00:00:00 2001 From: Artem Ermoshkin Date: Tue, 4 Aug 2026 11:32:28 +0300 Subject: [PATCH] restore codecov config --- .github/scripts/copy_sources.sh | 1 + codecov.yml | 25 +++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 codecov.yml diff --git a/.github/scripts/copy_sources.sh b/.github/scripts/copy_sources.sh index 28f5ca8c8a..7db4c03ca0 100755 --- a/.github/scripts/copy_sources.sh +++ b/.github/scripts/copy_sources.sh @@ -207,6 +207,7 @@ cp $2/.gitignore $tmp_dir cp $2/.gitmodules $tmp_dir cp $2/CMakePresets.json $tmp_dir cp $2/CMakeLists.txt $tmp_dir +cp $2/codecov.yml $tmp_dir cp $2/LICENSE $tmp_dir cp $2/README.md $tmp_dir for oss_test_dir in slo_workloads deb_package; do diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000000..e4cddb4661 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,25 @@ +coverage: + status: + project: + default: + target: auto # do not drop below the current level... + threshold: 1% # ...by more than 1% + patch: + default: + target: 80% # new/changed code in the PR diff must be >= 80% covered + +# Cross-repo uniform metric: every YDB SDK repo defines this same component_id, +# so native-SDK coverage is queryable identically via the Codecov API +# (?component_id=native-sdk), regardless of how each repo tags its uploads. +# +# The SDK proper lives in src/ (implementation) and include/ (public headers). +# The vendored Arcadia libraries (util/, library/, contrib/, third_party/) and +# examples/tests/tools are not part of the native SDK and are pinned out by listing +# only the SDK paths. +component_management: + individual_components: + - component_id: native-sdk + name: Native SDK + paths: + - "src/**" + - "include/**"