Skip to content

WEB-146: Integrate Codecov coverage upload - #4249

Open
janasouvik wants to merge 1 commit into
openMF:devfrom
janasouvik:WEB-146-integrate-codecov
Open

janasouvik wants to merge 1 commit into
openMF:devfrom
janasouvik:WEB-146-integrate-codecov

Conversation

@janasouvik

@janasouvik janasouvik commented Nov 7, 2026 •

Copy link
Copy Markdown

Description

Integrates Codecov into the existing Jest unit-test GitHub Actions workflow to upload test coverage reports.

Changes Made

  • Added the Codecov GitHub Action to .github/workflows/unit-tests.yml.
  • Configured it to upload the generated coverage/lcov.info report.
  • Added the unit-tests coverage flag.
  • Pinned the Codecov action to a specific v7.1.1 commit SHA.
  • Preserved the existing GitHub Actions coverage artifact upload.

Testing

  • Verified the workflow configuration locally.
  • Validated the Git diff with git diff --check.
  • GitHub Actions execution and Codecov upload are pending PR validation.

Closes WEB-146

Summary by CodeRabbit

  • Chores
    • Project-wide and patch-level coverage status checks are now informational rather than required pass/fail gates. Their results remain available for review, but coverage status no longer blocks a change from passing these checks. This update affects coverage reporting only and does not change application features or runtime behavior. It gives teams visibility into coverage results without making them mandatory status requirements.

@janasouvik
janasouvik requested a review from a team November 7, 2026 08:25
@coderabbitai

coderabbitai Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Explain Change →

Important

Review skipped

Review was skipped as selected files did not have any reviewable changes.

Files ignored due to path filters: 1

  • .github/workflows/unit-tests.yml is excluded by !.github/** and included by **/*
Run configuration

  • Source mode: Auto
  • Repository: openMF/web-app
  • Branch: dev
  • File: .coderabbit.yaml
  • Commit: 76315a1
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: d32a5ede-5e06-4e5d-bdc9-68ad1ca40d46
Commits

Reviewing files that changed from the base of the PR and between ba9ffec and 9c117d3.

Files ignored due to path filters: 1

  • .github/workflows/unit-tests.yml is excluded by !.github/** and included by **/*

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

Parsing warnings: 2

Validation error: Unrecognized key: "instructions" at "reviews"; Unrecognized key: "pre_merge_checks"
Configuration instructions

  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

No actionable comments were generated in the recent review.

Walkthrough

The Codecov configuration adds comments and sets project and patch coverage status checks to informational.

Changes

Codecov Status Configuration

Layer / File(s) Summary
Set coverage statuses to informational
codecov.yml
The configuration sets project and patch coverage statuses to informational. It also adds comments.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: adamsaghy, iohacker

Merge Risk: Minimal · previous review ba9ff · assessed changes only

Path filters excluded changed files. This rating applies only to the assessed changes.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "WEB-146: Integrate Codecov coverage upload" names the main change: the PR adds the Codecov GitHub Action to the unit-tests workflow to upload coverage/lcov.info. The summary of codecov.yml,…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "WEB-146: Integrate Codecov coverage upload" names the main change: the PR adds the Codecov GitHub Action to the unit-tests workflow to upload coverage/lcov.info. The summary of codecov.yml, which configures project and patch status checks as informational, is a secondary part of the change, and the title does not mention it. The title is specific and matches the primary objective.

Finishing Touches

Generate unit tests (beta)

  • Create a new PR
Fix failing CI checks

  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: openMF/web-app
  • Branch: dev
  • File: .coderabbit.yaml
  • Commit: db9b16b
  • Layers: Repository YAML
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: f4bdf2c2-98d1-4ca3-b6a5-524765af0ddb
Commits

Reviewing files that changed from the base of the PR and between 42417fc and ba9ffec.

Files selected for processing: 1

  • codecov.yml

Included review availability: This review used your included allowance. Your plan provides up to 2 included reviews per hour; 1 remain after this review.

@mifos-cla-check

Copy link
Copy Markdown

👋 Hi @janasouvik — thank you for your pull request.

This PR is currently blocked because we do not have a Contributor License Agreement (CLA) on file for your GitHub account.

To get unblocked:

  1. Complete the form at https://mifos.org/about-us/financial-legal/mifos-contributor-agreement
  2. Complete the CLA signing process
  3. Once verified (this can take up to 48 working hours) you will be invited to the approved contributors list
  4. You will receive an email from GitHub at your registered email address for the account with a link you must accept (this may go into your Junk folder, so please check it)
  5. Once accepted, you will be added to the approved contributors list and this PR check will be cleared

@mifos-cla-check mifos-cla-check Bot added the cla-required CLA signature required before this PR can be merged label Nov 7, 2026
@codecov-commenter

codecov-commenter commented Nov 7, 2026 •

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (dev@76315a1). Learn more about missing BASE report.
❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@          Coverage Diff           @@
##             dev    #4249   +/-   ##
======================================
  Coverage       ?   53.29%           
======================================
  Files          ?     1559           
  Lines          ?   227081           
  Branches       ?    11317           
======================================
  Hits           ?   121019           
  Misses         ?   105637           
  Partials       ?      425           
Flag Coverage Δ
unit-tests 53.29% <ø> (?)

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

☔ View full report in Codecov by Harness.
📢 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.

@IOhacker

IOhacker commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

@janasouvik has been this ticket reviewed within the Community in Slack or in the email list?

@janasouvik

janasouvik commented Nov 8, 2026 •

Copy link
Copy Markdown
Author

@janasouvik has been this ticket reviewed within the Community in Slack or in the email list?

@IOhacker Hi, yes, I discussed WEB-146 in the Mifos community Slack channel. Gopi kishan confirmed that the Codecov integration would be useful for tracking test coverage.

I've also shared my proposed implementation approach there. Please let me know if any further discussion or approval is needed before proceeding.

Thank you!

@mifos-cla-check mifos-cla-check Bot removed the cla-required CLA signature required before this PR can be merged label Nov 8, 2026
@janasouvik

Copy link
Copy Markdown
Author

@IOhacker Hi, just following up on this PR. I've resolved the CLA verification issue, and all CI checks are now passing.

Could you please review the PR and let me know if any changes are needed?

Thank you.

@IOhacker

IOhacker commented Nov 9, 2026 via email

Copy link
Copy Markdown
Contributor

@janasouvik

Copy link
Copy Markdown
Author

Please wait for the response from Mifos community that has grants over any repo change El dom, 8 nov 2026 a las 23:22, Souvik Jana @.>) escribió:
…
janasouvik left a comment (openMF/web-app#4249) <#4249 (comment)> @janasouvik https://github.com/janasouvik has been this ticket reviewed within the Community in Slack or in the email list? @IOhacker https://github.com/IOhacker Hi, yes, I discussed WEB-146 in the Mifos community Slack channel. Gopi kishan confirmed that the Codecov integration would be useful for tracking test coverage. I've also shared my proposed implementation approach there. Please let me know if any further discussion or approval is needed before proceeding. Thank you! — Reply to this email directly, view it on GitHub <#4249?email_source=notifications&email_token=ALD2ZAQCFN4XHVHEH4XXK2T5YFIBZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMNZSGYYTGNRTHE2KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-6726136394>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALD2ZAULHZSS22OEWBCQKYD5YFIBZAVCNFSNUABFKJSXA33TNF2G64TZHMYTGNBTGM3TQNJQHNEXG43VMU5TMMRVGY4TGNBVGU4KC5QC . Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS https://github.com/notifications/mobile/ios/ALD2ZAVXGAGLIIFLVAVCZKL5YFIBZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMNZSGYYTGNRTHE2KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y and Android https://github.com/notifications/mobile/android/ALD2ZAVH4SZ5RMDKBAUOV5L5YFIBZA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMNZSGYYTGNRTHE2KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI. Download it today! You are receiving this because you were mentioned.Message ID: @.
>

Understood. Thank you for clarifying. I'll wait for the Mifos community's response and approval before proceeding with any further changes.

@devvaansh

Copy link
Copy Markdown
Member

Please wait for the response from Mifos community that has grants over any
repo change
El dom, 8 nov 2026 a las 23:22, Souvik Jana @.***>)
escribió:

I think right now the Jest step can't fail (continue-on-error), and 2 specs have been silently broken on dev since late October, so we'd be uploading coverage from a red run. I'm raising a PR to fix those specs so Codecov will also need an org admin to install the app and add a token. meanwhile @janasouvik can convert this to draft until those land and the community approves? we'll pick it up right after

@janasouvik
janasouvik marked this pull request as draft November 9, 2026 12:49
@janasouvik

janasouvik commented Nov 9, 2026 •

Copy link
Copy Markdown
Author

Please wait for the response from Mifos community that has grants over any
repo change
El dom, 8 nov 2026 a las 23:22, Souvik Jana @.***>)
escribió:

I think right now the Jest step can't fail (continue-on-error), and 2 specs have been silently broken on dev since late October, so we'd be uploading coverage from a red run. I'm raising a PR to fix those specs so Codecov will also need an org admin to install the app and add a token. meanwhile @janasouvik can convert this to draft until those land and the community approves? we'll pick it up right after

@devvaansh Thanks for the update and clarification.
Sure, I'll convert PR #4249 to Draft and wait until the test fixes are merged and the community approval is in place.
Could you please let me know or tag me when everything is ready so I can continue with the PR?
I'll be happy to make any necessary updates at that point.
Thanks for your guidance.

@devvaansh

Copy link
Copy Markdown
Member

@devvaansh Thanks for the update and clarification.
Sure, I'll convert PR #4249 to Draft and wait until the test fixes are merged and the community approval is in place.
Could you please let me know or tag me when everything is ready so I can continue with the PR?
I'll be happy to make any necessary updates at that point.
Thanks for your guidance.

I'll tag you once #4261 (spec fixes) and #3957 (blocking Jest gate) are merged.

@janasouvik

Copy link
Copy Markdown
Author

@devvaansh Thanks for the update and clarification.
Sure, I'll convert PR #4249 to Draft and wait until the test fixes are merged and the community approval is in place.
Could you please let me know or tag me when everything is ready so I can continue with the PR?
I'll be happy to make any necessary updates at that point.
Thanks for your guidance.

I'll tag you once #4261 (spec fixes) and #3957 (blocking Jest gate) are merged.

ok thanks

@adamsaghy adamsaghy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The workflow change is safe: the action is pinned to the v7.1.1 commit, the workflow runs on pull_request (not pull_request_target), and uploads without a token don't fail the build.

Keeping it in draft makes sense until:

  • #3957 removes continue-on-error from the Jest step (otherwise a run with failing tests stays green and still uploads coverage);
  • an org admin installs the Codecov GitHub app and adds CODECOV_TOKEN.

Question for maintainers: without a codecov.yml, Codecov's default project/patch statuses will apply to every PR. Do we want them informational only?

@janasouvik

Copy link
Copy Markdown
Author

The workflow change is safe: the action is pinned to the v7.1.1 commit, the workflow runs on pull_request (not pull_request_target), and uploads without a token don't fail the build.

Keeping it in draft makes sense until:

Question for maintainers: without a codecov.yml, Codecov's default project/patch statuses will apply to every PR. Do we want them informational only?

Thanks for the detailed review and clarification!

I'll keep PR #4249 in Draft until PR #3957 is merged and the Codecov organization setup is completed.

I'll also wait for the maintainers' decision regarding the Codecov status checks and make any necessary adjustments accordingly.

Could you please tag me or let me know once PR #3957 is merged so I can proceed with the next steps?

Thanks for taking the time to review this!

@janasouvik

Copy link
Copy Markdown
Author

Hi maintainers,
Can I open the pr now ?

@janasouvik
janasouvik marked this pull request as ready for review November 30, 2026 15:34
@janasouvik

Copy link
Copy Markdown
Author

Hi maintainers,
Can you please review the pr?

@gkbishnoi07

Copy link
Copy Markdown
Contributor

please add codecov.yml file

- Upload coverage/lcov.info to Codecov in .github/workflows/unit-tests.yml

- Add root codecov.yml with informational project and patch status checks
@janasouvik
janasouvik force-pushed the WEB-146-integrate-codecov branch from ba9ffec to 9c117d3 Compare December 1, 2026 13:38
@janasouvik

janasouvik commented Dec 1, 2026 •

Copy link
Copy Markdown
Author

Hi @gkbishnoi07

I've updated the codecov.yml configuration as requested, and all checks are now passing. Could you please review PR #4249 and let me know if I can proceed with the final PR?

Thank you

This branch has not been deployed

No deployments
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.

6 participants