Skip to content

ci: fix invalid codecov.yml so status checks wait for all uploads#402

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

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

Conversation

@tomasz-tomczyk
Copy link
Copy Markdown
Owner

@tomasz-tomczyk tomasz-tomczyk commented Apr 30, 2026

Summary

  • after_n_builds is not valid under coverage.status.project.default / coverage.status.patch.default — codecov was rejecting the whole YAML and falling back to defaults, firing patch/project checks immediately on the first upload (before the ~7min e2e coverage upload landed)
  • Move after_n_builds: 2 + wait_for_ci: true to codecov.notify (the only valid location)
  • Drop the malformed flags: block (both flags had identical exclusion-only paths; ignore: already covers frontend/ and e2e/)
  • 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 both unit + e2e uploads complete, then reports against the full coverage set

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

🤖 Generated with Claude Code

after_n_builds is not a valid field under coverage.status.project.default
or coverage.status.patch.default. Codecov was rejecting the whole YAML and
falling back to defaults, firing patch/project checks on the first upload —
before the ~7min e2e job's coverage landed. Resulting checks reported a
~4% drop that auto-corrected once both uploads arrived.

Move after_n_builds: 2 + wait_for_ci: true to codecov.notify (the only
valid location) so checks hold until both unit and e2e uploads land.

Also drop the malformed flags: block — both unit and e2e had identical
exclusion-only paths, ignore: already excludes frontend/ and e2e/.

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 67.09%. Comparing base (5bc42d5) to head (4c5118c).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #402      +/-   ##
==========================================
+ Coverage   67.08%   67.09%   +0.01%     
==========================================
  Files          19       19              
  Lines        8221     8221              
==========================================
+ Hits         5515     5516       +1     
+ Misses       2277     2276       -1     
  Partials      429      429              
Flag Coverage Δ
e2e 34.05% <ø> (-0.03%) ⬇️
unit 63.13% <ø> (+0.03%) ⬆️

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 ea35b52 into main Apr 30, 2026
8 checks passed
@tomasz-tomczyk tomasz-tomczyk deleted the fix-codecov-config branch April 30, 2026 13:28
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