Skip to content

Update ci/cd: add codecov upload steps#3452

Merged
arkid15r merged 2 commits into
mainfrom
ark/implement-codecov-upload
Jan 22, 2026
Merged

Update ci/cd: add codecov upload steps#3452
arkid15r merged 2 commits into
mainfrom
ark/implement-codecov-upload

Conversation

@arkid15r
Copy link
Copy Markdown
Collaborator

@arkid15r arkid15r commented Jan 22, 2026

Proposed change

Let's add codecov!

Checklist

  • Required: I followed the contributing workflow
  • Required: I verified that my code works as intended and resolves the issue as described
  • Required: I ran make check-test locally: all warnings addressed, tests passed
  • I used AI for code, documentation, tests, or communication related to this PR

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Jan 22, 2026

Summary by CodeRabbit

  • Chores
    • Enhanced CI/CD pipeline with improved security (OIDC token permissions)
    • Optimized backend and frontend test execution with better container lifecycle management
    • Added automated code coverage reports to Codecov for both backend and frontend projects with configurable coverage targets (80%) and thresholds

✏️ Tip: You can customize this high-level summary in your review settings.

Walkthrough

Adds OIDC-enabled Codecov uploads and refactors backend/frontend test jobs to run inside explicit container lifecycles; also adds coverage XML output for pytest and switches Jest to Cobertura reporting.

Changes

Cohort / File(s) Summary
CI/CD workflow
.github/workflows/run-ci-cd.yaml
Added id-token: write permission. Reworked backend and frontend test jobs to create/start containers, capture exit codes, copy coverage artifacts, remove containers, and exit with captured codes. Added Codecov upload steps (use_oidc: true, fail_ci_if_error: false, flags per suite).
Codecov configuration
.codecov.yml
Added Codecov configuration: require_ci_to_pass: true, comment layout, per-project coverage targets (backend/frontend 80% target), and path-based flags with carryforward.
Backend coverage config
backend/pyproject.toml
Added --cov-report=xml to pytest addopts to generate XML coverage reports.
Frontend coverage config
frontend/jest.config.ts
Replaced Jest coverage reporters ['text','lcov','html','json-summary'] with ['cobertura','lcov','text'].
Spellcheck dictionary
cspell/custom-dict.txt
Added token carryforward.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Suggested labels

backend-tests

Suggested reviewers

  • kasya
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: adding Codecov upload steps to the CI/CD pipeline, which matches the core objective of the changeset.
Description check ✅ Passed The description is directly related to the changeset, proposing to add Codecov functionality to the CI/CD pipeline as evidenced by the changes across all modified files.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch ark/implement-codecov-upload

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

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 22, 2026

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

coderabbitai[bot]
coderabbitai Bot previously approved these changes Jan 22, 2026
@sonarqubecloud
Copy link
Copy Markdown

@arkid15r arkid15r marked this pull request as ready for review January 22, 2026 00:47
@arkid15r arkid15r requested a review from kasya as a code owner January 22, 2026 00:47
@arkid15r arkid15r enabled auto-merge January 22, 2026 00:48
@arkid15r arkid15r added this pull request to the merge queue Jan 22, 2026
Merged via the queue into main with commit 7dc51d7 Jan 22, 2026
31 of 32 checks passed
@arkid15r arkid15r deleted the ark/implement-codecov-upload branch January 22, 2026 01:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants