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

GODRIVER-3096 Remove "stats" package dependency #1672

Merged
merged 9 commits into from
Jun 17, 2024

Conversation

timothy-kim-mongo
Copy link
Contributor

GODRIVER-3096

Summary

The changes in this pull-request answers the ticket GODRIVER-3096 of removing the "github.com/montanaflynn/stats" dependency from the Go driver module. This is done by moving the internal/benchmark code into internal/cmd/benchmark (the only placed where the "stats" package is used) to make the benchmark system its own submodule so it can pull in additional dependencies.

Background & Motivation

PR 1507 (tentatively) removes the need to calculate 90th percentile and standard deviation for RTT samples. Those are the last two "production" use cases for the "github.com/montanaflynn/stats" package in the Go driver. We should remove all other uses of the "stats" package so we can remove it from the Go driver dependencies.

@timothy-kim-mongo timothy-kim-mongo self-assigned this Jun 11, 2024
@timothy-kim-mongo timothy-kim-mongo marked this pull request as draft June 11, 2024 20:01
@timothy-kim-mongo
Copy link
Contributor Author

codespell failed in pre_commit test because of lorem ipsum string mispelled words in the test strings of internal/cmd/benchmark/operation_test.go

@blink1073
Copy link
Member

codespell failed in pre_commit test because of lorem ipsum string mispelled words in the test strings of internal/cmd/benchmark/operation_test.go

You can add that file to the exclude regex

@mongodb-drivers-pr-bot mongodb-drivers-pr-bot bot added dependencies Pull requests that update a dependency file documentation Pull requests that update documentation or examples priority-3-low Low Priority PR for Review labels Jun 12, 2024
@timothy-kim-mongo timothy-kim-mongo marked this pull request as ready for review June 12, 2024 15:52
@prestonvasquez prestonvasquez requested review from prestonvasquez and matthewdale and removed request for prestonvasquez June 12, 2024 16:17
Copy link
Collaborator

@matthewdale matthewdale left a comment

Choose a reason for hiding this comment

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

One question/recommendation about Go versions, otherwise looks great!

internal/cmd/benchmark/go.mod Outdated Show resolved Hide resolved
Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

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

LGTM!

@timothy-kim-mongo timothy-kim-mongo merged commit b524a7e into mongodb:master Jun 17, 2024
3 of 4 checks passed
@timothy-kim-mongo timothy-kim-mongo deleted the GODRIVER-3096 branch June 17, 2024 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file documentation Pull requests that update documentation or examples priority-3-low Low Priority PR for Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants