Skip to content

ci: fix invalid codecov.yml so status checks wait for upload#146

Merged
tomasz-tomczyk merged 1 commit intomainfrom
fix-codecov-config
Apr 30, 2026
Merged

ci: fix invalid codecov.yml so status checks wait for upload#146
tomasz-tomczyk merged 1 commit intomainfrom
fix-codecov-config

Conversation

@tomasz-tomczyk
Copy link
Copy Markdown
Owner

Summary

  • after_n_builds is not valid under coverage.status.project.default / coverage.status.patch.default — without a valid codecov.notify block, status checks fire as soon as the first upload arrives, against the base commit's data, leading to misleading early "failure" reports
  • Add codecov.notify.after_n_builds: 1 + wait_for_ci: true so the status waits for CI to complete before reporting
  • Validated via https://codecov.io/validate

Test plan

  • curl -X POST --data-binary @codecov.yml https://codecov.io/validate returns Valid!
  • Next PR shows codecov status as pending until coverage upload completes, then reports cleanly

See also: tomasz-tomczyk/crit#402 (same fix)

🤖 Generated with Claude Code

after_n_builds is not a valid field under coverage.status.project.default
or coverage.status.patch.default. Without a valid codecov.notify config,
status checks fire as soon as the first upload arrives, against the base
commit's data — leading to misleading early "failure" reports.

Add codecov.notify.after_n_builds: 1 + wait_for_ci: true so the status
waits for CI to complete before reporting.

Validated via https://codecov.io/validate.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 30, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.13%. Comparing base (db82f46) to head (0050b8b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #146   +/-   ##
=======================================
  Coverage   77.13%   77.13%           
=======================================
  Files          54       54           
  Lines        1636     1636           
=======================================
  Hits         1262     1262           
  Misses        374      374           
Flag Coverage Δ
unit 77.13% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@tomasz-tomczyk tomasz-tomczyk merged commit 2f4a3ee into main Apr 30, 2026
4 checks passed
@tomasz-tomczyk tomasz-tomczyk deleted the fix-codecov-config branch April 30, 2026 13:22
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