Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PMM-12468 Mongo plan summary and full scan. #3496

Open
wants to merge 33 commits into
base: v3
Choose a base branch
from

Conversation

JiriCtvrtka
Copy link
Contributor

@JiriCtvrtka JiriCtvrtka commented Jan 23, 2025

Copy link

codecov bot commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (v3@6c22c93). Learn more about missing BASE report.

Additional details and impacted files
@@          Coverage Diff          @@
##             v3    #3496   +/-   ##
=====================================
  Coverage      ?   43.63%           
=====================================
  Files         ?      366           
  Lines         ?    44320           
  Branches      ?        0           
=====================================
  Hits          ?    19340           
  Misses        ?    23296           
  Partials      ?     1684           
Flag Coverage Δ
admin 11.47% <ø> (?)
agent 51.95% <100.00%> (?)
managed 45.40% <100.00%> (?)

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.

@@ -284,7 +284,7 @@ func TestPerfSchema(t *testing.T) {
"SELECT * FROM `city`": "9c799bdb2460f79b3423b77cd10403da",
}

case "8.0-oracle", "8.0-percona", "8.4-oracle", "9.0-oracle", "9.1-oracle":
case "8.0-oracle", "8.0-percona", "8.4-oracle", "9.0-oracle", "9.1-oracle", "9.2-oracle":
Copy link
Contributor Author

Choose a reason for hiding this comment

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

New Oracle version.

@JiriCtvrtka JiriCtvrtka marked this pull request as ready for review January 27, 2025 11:51
@JiriCtvrtka JiriCtvrtka requested review from a team and BupycHuk as code owners January 27, 2025 11:51
@JiriCtvrtka JiriCtvrtka requested review from ademidoff and idoqo and removed request for a team January 27, 2025 11:51

// ExtendedSystemProfile is extended SystemProfile from Percona Toolkit.
type ExtendedSystemProfile struct {
proto.SystemProfile `bson:",inline"`
Copy link
Member

Choose a reason for hiding this comment

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

Is the comma not a typo here?

Copy link
Contributor Author

@JiriCtvrtka JiriCtvrtka Jan 28, 2025

Choose a reason for hiding this comment

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

I believe without that proto.SystemProfile properties wont be on same (TOP) level in struct.

@JiriCtvrtka JiriCtvrtka requested a review from ademidoff January 28, 2025 11:19
@@ -38,7 +38,7 @@ func TestAggregator(t *testing.T) {
t.Run("Add", func(t *testing.T) {
t.Run("error if aggregator is not running", func(t *testing.T) {
a := New(time.Now(), "test-agent", logrus.WithField("component", "test"), truncate.GetMongoDBDefaultMaxQueryLength())
err := a.Add(nil, proto.SystemProfile{})
err := a.Add(context.TODO(), proto.SystemProfile{})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Context should not be nil.

@@ -237,7 +237,7 @@ func (a *Aggregator) newInterval(ts time.Time) {
a.timeEnd = a.timeStart.Add(a.d)
}

func (a *Aggregator) createResult(ctx context.Context) *report.Result {
func (a *Aggregator) createResult(_ context.Context) *report.Result {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Unused there.

@JiriCtvrtka
Copy link
Contributor Author

I will revert changes in go.mod and go.sum files once Percona Toolkit PR is merged.

@JiriCtvrtka
Copy link
Contributor Author

@ademidoff could you recheck this one, since I moved a lot of code into "Percona Toolkit" repository itself. Thanks.

@JiriCtvrtka JiriCtvrtka requested a review from ademidoff February 4, 2025 11:11
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.

3 participants