Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
chore(ci): codecov ratchet to 75% + per-component floors (#207) #225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
chore(ci): codecov ratchet to 75% + per-component floors (#207) #225
Changes from all commits
8baae713a17fa3File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
# First, let's read the full codecov.yml file to understand the structure git ls-files codecov.ymlRepository: SandboxServers/Cimmeria
Length of output: 79
🏁 Script executed:
# Read the codecov.yml file to see the full context cat -n codecov.ymlRepository: SandboxServers/Cimmeria
Length of output: 6069
🌐 Web query:
Codecov component_management statuses threshold inheritance deep merge💡 Result:
In Codecov's codecov.yml configuration, the component_management section defines components for grouping coverage data by paths or flags, with support for statuses (including thresholds) that control commit status checks [1][2]. The default_rules under component_management provide rules (paths, flag_regexes, statuses) inherited by all components that do not define those fields themselves [1][2]. Individual components in individual_components inherit from default_rules but can override specific fields like statuses; if a component omits statuses, it uses those from default_rules [2]. Statuses are lists of status definitions (e.g., type: project, target: auto, threshold: 1%) similar to flag_management statuses but without 'flags' [1]. If an individual component defines its own statuses list, it replaces the default_rules statuses entirely rather than merging; no explicit deep merge for statuses lists is documented, following standard YAML override behavior where presence overrides inheritance [2]. Thresholds are set within status objects (e.g., threshold: 5%) [3]. Examples show components without statuses inheriting project status from default_rules, while others define custom lists [2].
Citations:
Add
threshold: 1%to all per-component status checksIndividual components override
default_rules.statusesentirely rather than merging with them. Each of the 8 components defined inindividual_components(mercury, services, content-engine, entity, game, defs, common, commands) omits thethreshold: 1%field, which means those components won't inherit the stated 1% drift tolerance fromdefault_rules. This results in stricter checks that increase PR noise and contradict the intent documented at the top of the file. Theadmin-apicomponent correctly includes explicitthreshold: 1%and serves as the model.Required changes
- component_id: mercury name: mercury paths: - "crates/mercury/**" statuses: - type: project target: 92% + threshold: 1% informational: true - component_id: services name: services paths: - "crates/services/**" statuses: - type: project target: 62% + threshold: 1% informational: true - component_id: content-engine name: content-engine paths: - "crates/content-engine/**" statuses: - type: project target: 82% + threshold: 1% informational: true - component_id: entity name: entity paths: - "crates/entity/**" statuses: - type: project target: 88% + threshold: 1% informational: true - component_id: game name: game paths: - "crates/game/**" statuses: - type: project target: 80% + threshold: 1% informational: true - component_id: defs name: defs paths: - "crates/defs/**" statuses: - type: project target: 84% + threshold: 1% informational: true - component_id: common name: common paths: - "crates/common/**" statuses: - type: project target: 98% + threshold: 1% informational: true - component_id: commands name: commands paths: - "crates/commands/**" statuses: - type: project target: 92% + threshold: 1% informational: true📝 Committable suggestion
🤖 Prompt for AI Agents
Uh oh!
There was an error while loading. Please reload this page.