-
Notifications
You must be signed in to change notification settings - Fork 217
PMM-7 Fix prealloc linter warnings #5418
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
Merged
Merged
Changes from all commits
Commits
Show all changes
61 commits
Select commit
Hold shift + click to select a range
e0ec222
PMM-7 Fix Makefile.devcontainer usage
maxkondr bb77f81
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr 9161af8
PMM-7 Fix testifylint linter warnings
maxkondr eb4b6f4
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr 14987af
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr 45cbd2f
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr 3d21901
PMM-7 Fix testifylint linter warnings (p2)
maxkondr 80b5b0e
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr 60484a2
fix
maxkondr ef9fb5d
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr cdec538
fix
maxkondr c2b14ed
fix
maxkondr 288cf32
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr 5c8289c
fix
maxkondr 03af8ba
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr e6aca31
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr d67473f
PMM-7 Fix intrange linter warnings
maxkondr eb25aa0
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr abfa5cd
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr a9536e7
fix
maxkondr 663fbf9
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr 51cd34d
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr c7563b4
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr 4efd669
PMM-7 Fix modernize linter warnings
maxkondr 16d9a32
Update managed/cmd/pmm-managed/main.go
maxkondr 5b2e263
replace panic with Fatal for func in waitGroup
maxkondr fcb4aca
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr 0528a5e
PMM-7 Fix staticcheck linter warnings
maxkondr 20441b4
fix noerrcheck linter warnings
maxkondr e081731
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr 4bb5383
fix: use res.Err() instead of nil err in BenchmarkCollector
Copilot fbcea6b
fix
maxkondr 9f8637d
fix
maxkondr 7e43ebf
fix
maxkondr d9153ad
fix
maxkondr e0d7e9a
PMM-7 Fix prealloc linter warnings
maxkondr 63f4c69
fix
maxkondr 9eaca2f
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr 77349fc
Merge branch 'PMM-7-linter-fixes' into PMM-7-linter-fixes-2
maxkondr a429d92
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr b69b84a
fix
maxkondr fef3c4b
Merge branch 'PMM-7-linter-fixes' into PMM-7-linter-fixes-2
maxkondr bcc22a6
fix
maxkondr 45a66d6
Merge branch 'PMM-7-linter-fixes' into PMM-7-linter-fixes-2
maxkondr e2b6a48
fix
maxkondr f4846ac
Merge branch 'PMM-7-linter-fixes' into PMM-7-linter-fixes-2
maxkondr e191c53
fix
maxkondr 0a1f6fb
fix
maxkondr 061ee6d
Merge branch 'PMM-7-linter-fixes' into PMM-7-linter-fixes-2
maxkondr 5b59b75
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr 3804118
Merge branch 'PMM-7-linter-fixes' into PMM-7-linter-fixes-2
maxkondr aa8e537
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr 486ab4f
Merge branch 'PMM-7-linter-fixes' into PMM-7-linter-fixes-2
maxkondr dd26e56
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr 45b68d9
Merge branch 'v3' into PMM-7-linter-fixes
maxkondr 9a32de1
Merge branch 'PMM-7-linter-fixes' into PMM-7-linter-fixes-2
maxkondr f5f44da
Merge branch 'v3' into PMM-7-linter-fixes-2
maxkondr 8c121ca
Merge branch 'v3' into PMM-7-linter-fixes-2
maxkondr d679775
Merge branch 'v3' into PMM-7-linter-fixes-2
maxkondr b36f957
Update managed/services/victoriametrics/victoriametrics.go
maxkondr ec54567
Update managed/services/victoriametrics/victoriametrics.go
maxkondr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -141,7 +141,21 @@ func removeAllAgentsInList(t *testing.T, listAgentsOK *agents.ListAgentsOK) { | |
| require.NotNil(t, listAgentsOK) | ||
| require.NotNil(t, listAgentsOK.Payload) | ||
|
|
||
| var agentIDs []string //nolint:prealloc | ||
| agentIDs := make([]string, 0, | ||
| len(listAgentsOK.Payload.NodeExporter)+ | ||
| len(listAgentsOK.Payload.PMMAgent)+ | ||
| len(listAgentsOK.Payload.PostgresExporter)+ | ||
| len(listAgentsOK.Payload.MysqldExporter)+ | ||
| len(listAgentsOK.Payload.ProxysqlExporter)+ | ||
| len(listAgentsOK.Payload.QANMysqlPerfschemaAgent)+ | ||
| len(listAgentsOK.Payload.MongodbExporter)+ | ||
| len(listAgentsOK.Payload.QANMongodbProfilerAgent)+ | ||
| len(listAgentsOK.Payload.QANMongodbMongologAgent)+ | ||
| len(listAgentsOK.Payload.QANMysqlSlowlogAgent)+ | ||
| len(listAgentsOK.Payload.QANPostgresqlPgstatementsAgent)+ | ||
| len(listAgentsOK.Payload.ExternalExporter)+ | ||
| len(listAgentsOK.Payload.VMAgent)+ | ||
| len(listAgentsOK.Payload.RtaMongodbAgent)) | ||
| for _, agent := range listAgentsOK.Payload.NodeExporter { | ||
| agentIDs = append(agentIDs, agent.AgentID) | ||
| } | ||
|
|
@@ -181,6 +195,9 @@ func removeAllAgentsInList(t *testing.T, listAgentsOK *agents.ListAgentsOK) { | |
| for _, agent := range listAgentsOK.Payload.VMAgent { | ||
| agentIDs = append(agentIDs, agent.AgentID) | ||
| } | ||
| for _, agent := range listAgentsOK.Payload.RtaMongodbAgent { | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This one as well?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yep, it was missed |
||
| agentIDs = append(agentIDs, agent.AgentID) | ||
| } | ||
|
|
||
| pmmapitests.RemoveAgents(t, agentIDs...) | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like a bugfix, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, it was missed in response