Skip to content

fix: CI Gate checks Codecov status when backend tests ran#283

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

fix: CI Gate checks Codecov status when backend tests ran#283
fiddur merged 1 commit intodevelopfrom
fix/ci-gate-codecov

Conversation

@fiddur
Copy link
Owner

@fiddur fiddur commented Feb 28, 2026

Summary

  • CI Gate now verifies Codecov status checks (codecov/patch and codecov/project) when the node job ran
  • When node is skipped (Android-only changes), the Codecov check is skipped entirely — solving the issue where Codecov doesn't post any status when no backend changes are made
  • Polls the GitHub commit status API with a 5-minute timeout (30 x 10s) as a safety valve for Codecov outages

How it works

Scenario CI Gate behavior
Backend changed, codecov passes Gate passes
Backend changed, codecov/patch fails Gate fails
Backend changed, codecov never reports (outage) Gate warns but passes after 5min
Only Android changed Codecov step skipped entirely
Only web changed (no backend) Node job still runs but codecov uploads; gate checks codecov

This allows removing codecov/patch and codecov/project from the branch protection required checks — CI Gate handles it conditionally.

When the node job runs (meaning backend code changed), CI Gate now
polls for codecov/patch and codecov/project status checks and fails
if either reports failure. When the node job is skipped (e.g.
Android-only changes), the Codecov check is skipped entirely.

This replaces the need for codecov as a separate required check in
branch protection, which didn't work because Codecov doesn't post
status when no backend changes are made.
@fiddur fiddur marked this pull request as ready for review February 28, 2026 12:14
@fiddur fiddur enabled auto-merge February 28, 2026 12:14
@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 (f73c291) to head (ed92805).

Additional details and impacted files
@@           Coverage Diff            @@
##           develop     #283   +/-   ##
========================================
  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 dd07b1a into develop Feb 28, 2026
6 checks passed
@fiddur fiddur deleted the fix/ci-gate-codecov branch February 28, 2026 12:26
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