Skip to content

ci(coverage): make checks informational on release branches#541

Merged
BYK merged 1 commit intomainfrom
ci/codecov-informational-on-release
Mar 23, 2026
Merged

ci(coverage): make checks informational on release branches#541
BYK merged 1 commit intomainfrom
ci/codecov-informational-on-release

Conversation

@BYK
Copy link
Member

@BYK BYK commented Mar 23, 2026

Make codecov status checks informational on main/release/** branches so they don't block Craft publishing, while keeping patch coverage blocking on PRs.

Changes

  • codecov.yml: Add coverage.status config with project always informational and patch blocking by default (for PRs)
  • ci.yml: Add sed step on push events to flip patch to informational on main/release/**

Behavior

Context codecov/project codecov/patch
PR informational blocking
main / release/** push informational informational

Uses getsentry/codecov-action's informational config option. Since the action has no per-branch config support, the CI workflow conditionally edits codecov.yml via sed on push events before running the action.

Make codecov status checks informational on main/release branches so
they don't block Craft publishing, while keeping patch coverage blocking
on PRs.

- codecov.yml: add coverage.status config with project always
  informational and patch blocking by default (for PRs)
- ci.yml: add sed step on push events to flip patch to informational
  on main/release branches
@github-actions
Copy link
Contributor

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


Internal Changes 🔧

  • (coverage) Make checks informational on release branches by BYK in #541
  • Regenerate skill files by github-actions[bot] in ec1ffe28

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Contributor

Codecov Results 📊

126 passed | Total: 126 | Pass Rate: 100% | Execution Time: 0ms

📊 Comparison with Base Branch

Metric Change
Total Tests
Passed Tests
Failed Tests
Skipped Tests

✨ No test changes detected

All tests are passing successfully.

✅ Patch coverage is 100.00%. Project has 1028 uncovered lines.
✅ Project coverage is 96.02%. Comparing base (base) to head (head).

Coverage diff
@@            Coverage Diff             @@
##          main       #PR       +/-##
==========================================
+ Coverage    96.02%    96.02%        —%
==========================================
  Files          185       185         —
  Lines        25805     25805         —
  Branches         0         0         —
==========================================
+ Hits         24777     24777         —
- Misses        1028      1028         —
- Partials         0         0         —

Generated by Codecov Action

@BYK BYK marked this pull request as ready for review March 23, 2026 21:10
@BYK BYK merged commit b4cc6fb into main Mar 23, 2026
22 checks passed
@BYK BYK deleted the ci/codecov-informational-on-release branch March 23, 2026 21:42
BYK added a commit that referenced this pull request Mar 24, 2026
Follow-up to #541. Replaces the `sed`-based `codecov.yml` patching with
the new `informational-patch` action input from getsentry/codecov-action
(merged in getsentry/codecov-action#54).

### Changes

- **`ci.yml`**: Remove the `sed` step, add `informational-patch: ${{
github.event_name == 'push' }}` to the codecov action
- **`codecov.yml`**: Remove the `patch.default.informational` section
(no longer needed)

### Behavior (unchanged)

| Context | `codecov/project` | `codecov/patch` |
|---------|-------------------|-----------------|
| PR | informational | **blocking** |
| `main` / `release/**` push | informational | informational |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant