-
Notifications
You must be signed in to change notification settings - Fork 918
GODRIVER-3696: Add CI/CD label to label checker (#2243) #2245
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
Draft
prestonvasquez
wants to merge
18
commits into
mongodb:release/2.4
Choose a base branch
from
prestonvasquez:cicd/godriver-3670-update-golangci-lint-v2.6.2
base: release/2.4
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
GODRIVER-3696: Add CI/CD label to label checker (#2243) #2245
prestonvasquez
wants to merge
18
commits into
mongodb:release/2.4
from
prestonvasquez:cicd/godriver-3670-update-golangci-lint-v2.6.2
Conversation
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
Contributor
API Change ReportNo changes found! |
Contributor
🧪 Performance ResultsCommit SHA: 90c0463There were no significant changes to the performance to report for version 692108d5a4834f0007b2901c. For a comprehensive view of all microbenchmark results for this PR's commit, please check out the Evergreen perf task for this patch. |
699b70f to
5e80b53
Compare
Update golangci-lint configuration to V2 format and enable gosec G115 (integer overflow) checks. Update linter installation script.
ac584ca to
4dd5720
Compare
04441fb to
b096fe6
Compare
Extract binary read/write utility functions from wiremessage.go and bsoncore.go into a new internal/binaryutil package to centralize bit manipulation operations and facilitate gosec G115 compliance.
Add SafeConvertNumeric function for overflow-safe integer type conversions. This utility helps address gosec G115 warnings by providing runtime overflow detection for integer conversions.
Address gosec G115 integer overflow warnings in the bson package: - Add SafeConvertNumeric for legitimate overflow risks - Use nolint for provably safe conversions (e.g., int8/int16/int32 to int32, conversions after fitsIn32Bits checks) - Document why each nolint is safe
Address gosec G115 integer overflow warnings in the mongo package: - Add SafeConvertNumeric for protocol fields, user data, and len() conversions - Use nolint where conversions are provably safe - Handle overflow cases in gridfs, bulk write, and error handling
Address gosec G115 integer overflow warnings in bsoncore: - Add SafeConvertNumeric for BSON document/array/element length calculations - Use binaryutil package for safe binary operations - Document safe conversions with nolint where appropriate
Address gosec G115 integer overflow warnings in driver core: - Add SafeConvertNumeric for wire message length calculations - Add SafeConvertNumeric for batch operations and document sequences - Use binaryutil for safe compression operations
Address gosec G115 integer overflow warnings in authentication: - Add SafeConvertNumeric for SASL token and buffer size conversions - Add SafeConvertNumeric for GSSAPI/SSPI buffer operations
Address gosec G115 integer overflow warnings in mongocrypt: - Add SafeConvertNumeric for binary data length conversions - Add SafeConvertNumeric for KMS context buffer operations
Address gosec G115 integer overflow warnings in operations: - Add SafeConvertNumeric for operation timeout and option conversions - Handle overflow in find, aggregate, distinct, and update operations
Address gosec G115 integer overflow warnings in session handling
Address gosec G115 integer overflow warnings in topology: - Add SafeConvertNumeric for wire message compression operations - Add SafeConvertNumeric for server description fields (maxBsonObjectSize, etc.) - Add SafeConvertNumeric for connection pool size conversions - Use binaryutil for safe binary operations
Address gosec G115 integer overflow warnings in wiremessage: - Use binaryutil package for safe binary read/write operations - Add validation for MsgFlag overflow with nolint for safe conversions - Document safety of wire protocol flag conversions
Address gosec G115 integer overflow warnings in decimal128: - Use nolint for bitmask operations (14-bit values always fit in int) - Use nolint for modulo result conversions (always fit in uint32) - Document why conversions are safe
Address gosec G115 integer overflow warnings: - Add SafeConvertNumeric for server version and option conversions
Address gosec G115 integer overflow warnings: - Add SafeConvertNumeric for log message width and truncation conversions
Address gosec G115 integer overflow warnings in unified test runner: - Add SafeConvertNumeric for test parameter conversions - Use nolint for int32 to uint64 conversions (always safe) - Add SafeConvertNumeric for event count and option conversions
Address gosec G115 integer overflow warnings in: - internal/credproviders: credential provider conversions - internal/errutil: error code conversions - internal/israce: build tag updates - internal/integration: test helper conversions - x/mongo/driver test files
b096fe6 to
90c0463
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
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.
Summary
Background & Motivation