From 7c053298077b81ce0edfbcdf8d9b1b54fa4fd205 Mon Sep 17 00:00:00 2001 From: Itay Brenner Date: Fri, 8 Aug 2025 16:41:36 -0300 Subject: [PATCH 1/2] ci: Allow up to 0.05% decrease in coverage before marking the build as failed --- .codecov.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index 7e9c4e732a9..e374910c30c 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,13 +1,14 @@ codecov: branch: main - require_ci_to_pass: yes + require_ci_to_pass: true notify: - wait_for_ci: yes + wait_for_ci: true coverage: range: 80...100 precision: 3 round: down + threshold: 0.05 # Allow up to 0.05% coverage decrease before failing the build ignore: - "SentryTestUtilsTests/**" @@ -21,5 +22,5 @@ comment: # already exists, and a newer commit results in no coverage change for the # entire pull, the comment will be deleted. require_changes: true - require_base: yes # must have a base report to post - require_head: yes # must have a head report to post + require_base: true # must have a base report to post + require_head: true # must have a head report to post From aaf3b309253eb9bc898585b82f8ec01ac4b13e15 Mon Sep 17 00:00:00 2001 From: Itay Brenner Date: Fri, 8 Aug 2025 17:37:45 -0300 Subject: [PATCH 2/2] Undo boolean changes --- .codecov.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.codecov.yml b/.codecov.yml index e374910c30c..56b1844c961 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -1,8 +1,8 @@ codecov: branch: main - require_ci_to_pass: true + require_ci_to_pass: yes notify: - wait_for_ci: true + wait_for_ci: yes coverage: range: 80...100 @@ -22,5 +22,5 @@ comment: # already exists, and a newer commit results in no coverage change for the # entire pull, the comment will be deleted. require_changes: true - require_base: true # must have a base report to post - require_head: true # must have a head report to post + require_base: yes # must have a base report to post + require_head: yes # must have a head report to post