Skip to content

fix: use Check Runs API for Codecov status in CI Gate#284

Merged
fiddur merged 1 commit intodevelopfrom
fix/ci-gate-codecov-api
Feb 28, 2026
Merged

fix: use Check Runs API for Codecov status in CI Gate#284
fiddur merged 1 commit intodevelopfrom
fix/ci-gate-codecov-api

Conversation

@fiddur
Copy link
Owner

@fiddur fiddur commented Feb 28, 2026

Summary

  • Fixes the Codecov check in CI Gate from fix: CI Gate checks Codecov status when backend tests ran #283 — it was querying the wrong GitHub API
  • Codecov posts results as Check Runs (Checks API), not commit statuses (Status API)
  • The previous implementation always got empty results and timed out for 5 minutes per check before passing with a warning

Change

Switches from repos/{repo}/commits/{sha}/status (statuses) to repos/{repo}/commits/{sha}/check-runs (check runs), and checks the conclusion field (success/neutral = pass, anything else = fail).

CI Gate should now complete in seconds after Codecov reports, instead of always waiting 10 minutes.

Codecov posts results as GitHub Check Runs, not commit statuses.
The previous implementation queried the Status API which always
returned empty, causing a 5-minute timeout per check.

Now queries the Check Runs API (commits/{sha}/check-runs) and
checks the conclusion field (success/neutral = pass, else fail).
@fiddur fiddur enabled auto-merge February 28, 2026 12:27
@codecov
Copy link

codecov bot commented Feb 28, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 31.43%. Comparing base (dd07b1a) to head (bcd764f).
⚠️ Report is 2 commits behind head on develop.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #284   +/-   ##
========================================
  Coverage    31.43%   31.43%           
========================================
  Files          181      181           
  Lines        22986    22986           
  Branches      1856     1856           
========================================
  Hits          7225     7225           
  Misses       15727    15727           
  Partials        34       34           
Flag Coverage Δ
backend 58.08% <ø> (ø)

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.

@fiddur fiddur merged commit 1adbaf3 into develop Feb 28, 2026
6 checks passed
@fiddur fiddur deleted the fix/ci-gate-codecov-api branch February 28, 2026 12:34
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