From 597a07b9b35fcf98b7356b9584e81f6790b57229 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Wed, 4 Dec 2024 12:02:34 -0800 Subject: [PATCH] ci: codecov always fails MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: codecov always fails for gumby/appcomposer: codecov/project/amazonqGumby — 75.29% (-3.93%) codecov/project/applicationcomposer — 82.69% (-0.…) Based on https://docs.codecov.com/docs/commit-status , the "default" item is just a name, it doesn't set defaults that are "inherited". Solution: - rename the "default" project item to avoid confusion - duplicate the configuration for all project items. --- codecov.yml | 36 ++++++++++++++++++++++++++++++++---- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/codecov.yml b/codecov.yml index caf79e23a73..32af11f5590 100644 --- a/codecov.yml +++ b/codecov.yml @@ -12,37 +12,65 @@ coverage: status: project: - default: - target: 70% + # https://docs.codecov.com/docs/commit-status + all: + target: 80% threshold: 5% informational: true + only_pulls: true codewhisperer: paths: - packages/core/src/codewhisperer/* flags: - 'codewhisperer' + target: 80% + threshold: 5% + informational: true + only_pulls: true amazonqFeatureDev: paths: - packages/core/src/amazonqFeatureDev/* flags: - 'amazonqFeatureDev' + target: 80% + threshold: 5% + informational: true + only_pulls: true amazonqGumby: paths: - packages/core/src/amazonqGumby/* + target: 80% + threshold: 5% + informational: true + only_pulls: true codewhispererChat: paths: - packages/core/src/codewhispererChat/* + target: 80% + threshold: 5% + informational: true + only_pulls: true applicationcomposer: paths: - packages/core/src/applicationcomposer/* + target: 80% + threshold: 5% + informational: true + only_pulls: true stepFunctions: - target: 50% - threshold: 10% paths: - packages/core/src/stepFunctions/* + target: 50% + threshold: 10% + informational: true + only_pulls: true threatComposer: paths: - packages/core/src/threatComposer/* + target: 80% + threshold: 5% + informational: true + only_pulls: true patch: false changes: false