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-12350 Reduce error logs from diagnostic data on arbiter nodes #819

Closed
wants to merge 1 commit into from

Conversation

idoqo
Copy link
Contributor

@idoqo idoqo commented Mar 18, 2024

PMM-12350 (optional, if ticket reported)

  • Links to related pull requests (optional).

Below we provide a basic checklist of things that would make it a good PR:

  • Make sure to sign the CLA (Contributor License Agreement).
  • Make sure all tests pass.
  • Keep current with the target branch and fix conflicts if necessary.
  • Update jira ticket description if necessary.
  • Attach screenshots and/or console output to the jira ticket to confirm new behavior, if applicable.
  • Leave notes to the reviewers if you need to focus their attention on something specific.

Once all checks pass and the code is ready for review, please add pmm-review-exporters team as the reviewer. That would assign people from the review team automatically. Report any issues on our Forum.

@idoqo idoqo requested a review from a team as a code owner March 18, 2024 01:51
@idoqo idoqo requested review from BupycHuk and JiriCtvrtka and removed request for a team March 18, 2024 01:51
port, err := tu.PortForContainer(container)
require.NoError(t, err)

exporterOpts := &Opts{

Choose a reason for hiding this comment

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

🚫 [golangci-lint] reported by reviewdog 🐶
exporter.Opts is missing fields CollStatsNamespaces, CollStatsLimit, CompatibleMode, ConnectTimeoutMS, DisableDefaultRegistry, DiscoveringMode, ProfileTimeTS, TimeoutOffset, CurrentOpSlowTime, CollectAll, EnableDBStats, EnableDBStatsFreeStorage, EnableReplicasetStatus, EnableCurrentopMetrics, EnableTopMetrics, EnableIndexStats, EnableCollStats, EnableProfile, EnableShards, EnableOverrideDescendingIndex, IndexStatsCollections (exhaustruct)

@@ -236,6 +237,29 @@ func TestAllDiagnosticDataCollectorMetrics(t *testing.T) {
}
}

func TestDiagnosticErrorLogs(t *testing.T) {

Choose a reason for hiding this comment

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

🚫 [golangci-lint] reported by reviewdog 🐶
Function TestDiagnosticErrorLogs missing the call to method parallel (paralleltest)

@@ -199,6 +200,39 @@ func TestMongoS(t *testing.T) {
}
}

func TestArbiterCollectors(t *testing.T) {

Choose a reason for hiding this comment

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

🚫 [golangci-lint] reported by reviewdog 🐶
Function TestArbiterCollectors missing the call to method parallel (paralleltest)

r := e.makeRegistry(ctx, client, new(labelsGetterMock), *e.opts)

res := r.Unregister(rsgsc)
assert.Equal(t, false, res)

Choose a reason for hiding this comment

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

🚫 [golangci-lint] reported by reviewdog 🐶
bool-compare: use assert.False (testifylint)

@idoqo
Copy link
Contributor Author

idoqo commented Mar 18, 2024

Wrong ticket ), closing in favour of #820

@idoqo idoqo closed this Mar 18, 2024
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.

1 participant