Skip to content

chore: update codecov#144

Merged
rustatian merged 1 commit intomasterfrom
fix/codecov
Feb 18, 2026
Merged

chore: update codecov#144
rustatian merged 1 commit intomasterfrom
fix/codecov

Conversation

@rustatian
Copy link
Member

@rustatian rustatian commented Feb 18, 2026

Reason for This PR

  • Codecov 0% test coverage

Description of Changes

  • Fix codecov upload

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the MIT license.

PR Checklist

[Author TODO: Meet these criteria.]
[Reviewer TODO: Verify that these criteria are met. Request changes if not]

  • All commits in this PR are signed (git commit -s).
  • The reason for this PR is clearly provided (issue no. or explanation).
  • The description of changes is clear and encompassing.
  • Any required documentation changes (code and docs) are included in this PR.
  • Any user-facing changes are mentioned in CHANGELOG.md.
  • All added/changed functionality is tested.

Summary by CodeRabbit

  • Chores
    • Updated code coverage workflow to enhance coverage result processing and reporting accuracy.

Signed-off-by: Valery Piashchynski <piashchynski.valery@gmail.com>
Copilot AI review requested due to automatic review settings February 18, 2026 18:41
@rustatian rustatian self-assigned this Feb 18, 2026
@coderabbitai
Copy link

coderabbitai bot commented Feb 18, 2026

📝 Walkthrough

Walkthrough

This pull request modifies the codecov workflow in the GitHub Actions configuration to download coverage artifacts and refactor the coverage file processing pipeline. The workflow now reads coverage results from a subdirectory and applies an awk-based filter to rewrite file paths instead of the previous sed-based approach.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow
.github/workflows/linux.yml
Added checkout and artifact download steps to codecov job. Changed coverage file source from root to coverage/*.out directory. Replaced sed-based string filtering with awk filter that preserves the first line, strips the github.com/roadrunner-server/grpc/v5/ prefix, and rewrites proto c_plugins/v5/ paths to protoc_plugins/.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

🐰 Artifacts dance down the workflow stream,
Coverage paths flow like a digital dream,
AWK transforms the data with care,
Prefixes stripped from the air! ✨

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (2 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive The title 'chore: update codecov' is vague and overly generic. It does not convey the specific nature of the changes (artifact downloading, coverage path filtering, awk-based filtering logic). Provide a more specific title that describes the key change, such as 'chore: fix codecov workflow to download and process coverage artifacts' or similar.
Description check ❓ Inconclusive The description is incomplete and vague. It states the reason as 'Codecov 0% test coverage' and changes as 'Fix codecov upload' without explaining the actual technical modifications made to the workflow. Expand the description to include specific technical details about the workflow changes, such as adding artifact download steps and implementing awk-based coverage path filtering.
✅ Passed checks (1 passed)
Check name Status Explanation
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 fix/codecov

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.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the GitHub Actions workflow to correctly aggregate and upload Go coverage data to Codecov, addressing the reported 0% coverage issue by ensuring paths in the combined coverprofile map to files in this repository.

Changes:

  • Ensure the Codecov upload job checks out the repository and downloads the coverage artifact into a known directory.
  • Combine *.out files from the downloaded artifact and rewrite coverprofile paths so they are repository-relative (including the nested protoc_plugins Go module).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.github/workflows/linux.yml:
- Around line 88-99: The awk block that transforms summary.txt into
summary.filtered.txt currently only prints lines matching NR==1 or the two
/^github\.com\/roadrunner-server\/grpc\/v5\// and
/^github\.com\/roadrunner-server\/grpc\/protoc_plugins\/v5\// patterns, which
silently drops any other lines; update the awk script (the multi-line awk in the
workflow that reads summary.txt and writes summary.filtered.txt) to include a
default action that prints unmatched lines and emits a warning (e.g., print the
line and a diagnostic to stderr or prefixed comment) so unrecognised module
paths are preserved and visible rather than lost.

@codecov
Copy link

codecov bot commented Feb 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.31%. Comparing base (d7b71e6) to head (78b4acd).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff             @@
##           master     #144       +/-   ##
===========================================
+ Coverage        0   68.31%   +68.31%     
===========================================
  Files           0        7        +7     
  Lines           0      464      +464     
===========================================
+ Hits            0      317      +317     
- Misses          0      113      +113     
- Partials        0       34       +34     

☔ 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.

@rustatian rustatian merged commit ed78f96 into master Feb 18, 2026
16 checks passed
@rustatian rustatian deleted the fix/codecov branch February 18, 2026 19:03
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.

2 participants