flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[DevOps/CI] Automated Code Coverage Enforcement & Vitest CI Gate

Open blurbeast opened this issue 3 months ago • 6 comments

Overview & Background

To maintain high code quality across the codebase as open-source contributors submit pull requests, an automated test coverage enforcement gate is required in GitHub Actions CI to prevent coverage regressions.


Technical Specification & Architecture

  1. Vitest Coverage Configuration:
    • Configure @vitest/coverage-v8 in backend/vitest.config.ts and frontend/vitest.config.ts.
    • Set minimum coverage thresholds:
      • Statements: 80%
      • Branches: 75%
      • Functions: 80%
      • Lines: 80%
  2. GitHub Actions Integration:
    • Add coverage generation step in .github/workflows/ci.yml.
    • Post automated coverage summary comment on pull requests.
    • Fail PR build if coverage decreases by $> 1%$.

Target Files

  • backend/vitest.config.ts
  • frontend/vitest.config.ts
  • .github/workflows/ci.yml
  • .github/codecov.yml

Acceptance Criteria

  • [ ] Vitest generates lcov coverage reports for backend and frontend.
  • [ ] CI workflow fails if code coverage falls below threshold.
  • [ ] Automated PR summary table showing coverage changes per modified file.

blurbeast avatar Aug 29 '26 22:08 blurbeast

let me work on this issue

jchinedu avatar Aug 29 '26 22:08 jchinedu

Hi maintainers, I'd love to take this on!

Execution Plan for [DevOps/CI] Automated Code Coverage Enforcement & Vitest CI Gate:

  • Clean Implementation: Deliver an idiomatic solution for [DevOps/CI] Automated Code Coverage Enforcement & Vitest CI Gate adhering strictly to LabsCrypt/flowfi's architecture.
  • Automated Tests: Provide full test coverage asserting both edge cases and core workflows.
  • Clean Git Hygiene: Atomic conventional commits with zero merge conflicts.

Why assign me?

  • Proven Proof-of-Work: #1 contributor on Mova Store (28 merged Web3 PRs) and official ElizaOS contributor.
  • Fast Turnaround: Dedicated to shipping a tested, production-grade PR within 12–24 hours.
  • Zero Maintainer Burden: Self-documenting code with green CI and tests included so you don't spend time debugging.

Looking forward to clearing this off your backlog—please assign to me!

Ranjeet2063 avatar Sep 06 '26 10:09 Ranjeet2063

@Hollujay has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

I would like to work on this issue.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @Hollujay to this issue.

Hollujay avatar Sep 27 '26 15:09 Hollujay

@EmannuellaO has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

please assign me to this issue

ℹ️ Repo Maintainers: To accept this application, review their application or assign @EmannuellaO to this issue.

EmannuellaO avatar Sep 29 '26 13:09 EmannuellaO

Congratulations, @Hollujay! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.

🧑‍💻 @Hollujay: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Sep 29 '26 16:09 drips-wave[bot]

This issue has been completed by @Hollujay as part of the Stellar Wave Program's 11th Wave 🥳

😎 @Hollujay: You earned 150 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

drips-wave[bot] avatar Nov 20 '26 11:11 drips-wave[bot]