Skip to content

Conversation

@idoqo
Copy link
Contributor

@idoqo idoqo commented Jan 8, 2026

@codecov
Copy link

codecov bot commented Jan 8, 2026

Codecov Report

❌ Patch coverage is 48.44334% with 414 lines in your changes missing coverage. Please review.
✅ Project coverage is 46.01%. Comparing base (41d84e6) to head (2966aba).

Files with missing lines Patch % Lines
managed/pi/check/check.go 50.37% 94 Missing and 38 partials ⚠️
managed/pi/alert/parameter.go 31.89% 67 Missing and 12 partials ⚠️
managed/pi/starlark/starlark.go 58.89% 46 Missing and 21 partials ⚠️
managed/pi/starlark/values.go 43.00% 51 Missing and 6 partials ⚠️
managed/pi/check/advisor.go 40.00% 19 Missing and 8 partials ⚠️
managed/pi/alert/template.go 56.52% 11 Missing and 9 partials ⚠️
managed/pi/common/severity.go 51.51% 14 Missing and 2 partials ⚠️
managed/pi/check/result.go 27.27% 5 Missing and 3 partials ⚠️
managed/pi/alert/type.go 44.44% 5 Missing ⚠️
managed/pi/common/severity_string.go 60.00% 1 Missing and 1 partial ⚠️
... and 1 more
Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #4900      +/-   ##
==========================================
+ Coverage   45.93%   46.01%   +0.08%     
==========================================
  Files         366      377      +11     
  Lines       38427    39228     +801     
==========================================
+ Hits        17651    18052     +401     
- Misses      19078    19378     +300     
- Partials     1698     1798     +100     
Flag Coverage Δ
admin 17.82% <ø> (ø)
agent 53.52% <ø> (+0.12%) ⬆️
managed 46.67% <48.44%> (+0.05%) ⬆️
vmproxy 72.09% <ø> (ø)

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

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

@idoqo idoqo marked this pull request as ready for review January 12, 2026 15:42
@idoqo idoqo requested a review from a team as a code owner January 12, 2026 15:42
@idoqo idoqo requested review from JiriCtvrtka, ademidoff and maxkondr and removed request for a team January 12, 2026 15:42
Copy link
Contributor

Choose a reason for hiding this comment

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

as I remember signatures were used in order to make sure that received data (advisor, alert template, etc) are really originated by Percona (signed by Percona's private key). in case the templates are moved to pmm repo itself - is it still required to check the signature?

Copy link
Member

Choose a reason for hiding this comment

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

You are raising a good question! Let's prepare for a discussion on the next BE call.

Copy link
Member

@ademidoff ademidoff Jan 12, 2026

Choose a reason for hiding this comment

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

FYI: we will be asked to source the advisors and alert templates from a GitHub repo. This is why I'm a bit reluctant to drop them now. It's never late to do that.

Copy link
Member

@ademidoff ademidoff left a comment

Choose a reason for hiding this comment

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

@idoqo Can we remove checks and alerts from that saas repo?

Comment on lines 205 to 210
case MySQL:
fallthrough
case PostgreSQL:
fallthrough
case MongoDB:
return nil
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
case MySQL:
fallthrough
case PostgreSQL:
fallthrough
case MongoDB:
return nil
case MySQL, PostgreSQL, MongoDB:
return nil

Comment on lines 231 to 236
case Standard:
fallthrough
case Frequent:
fallthrough
case Rare:
fallthrough
Copy link
Member

Choose a reason for hiding this comment

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

Let's get rid of fallthrough in favor of comma-separated cases.

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.

5 participants