Skip to content

use rwmutex for the github client cache

c3ba388
Select commit
Loading
Failed to load commit list.
Open

feat: governance improvements #6077

use rwmutex for the github client cache
c3ba388
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Apr 25, 2026 in 0s

58.11% (+0.38%) compared to c737ce5

View this Pull Request on Codecov

58.11% (+0.38%) compared to c737ce5

Details

Codecov Report

❌ Patch coverage is 76.75805% with 195 lines in your changes missing coverage. Please review.
✅ Project coverage is 58.11%. Comparing base (c737ce5) to head (c3ba388).

Files with missing lines Patch % Lines
pkg/governance/handler.go 62.41% 39 Missing and 14 partials ⚠️
pkg/governance/github_client.go 68.46% 33 Missing and 8 partials ⚠️
cmd/governance-bot/main.go 0.00% 36 Missing ⚠️
pkg/governance/pr_handler.go 82.85% 21 Missing and 15 partials ⚠️
pkg/governance/comment_handler.go 88.39% 9 Missing and 4 partials ⚠️
pkg/governance/issue_handler.go 82.60% 2 Missing and 2 partials ⚠️
pkg/governance/runner.go 50.00% 2 Missing and 2 partials ⚠️
pkg/governance/common.go 92.59% 1 Missing and 1 partial ⚠️
pkg/governance/config.go 86.66% 1 Missing and 1 partial ⚠️
pkg/governance/runner_apply_pr_policy.go 92.30% 1 Missing and 1 partial ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6077      +/-   ##
==========================================
+ Coverage   57.72%   58.11%   +0.38%     
==========================================
  Files         475      490      +15     
  Lines       40541    41380     +839     
==========================================
+ Hits        23402    24046     +644     
- Misses      15746    15892     +146     
- Partials     1393     1442      +49     

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