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

Improve OP_MSG validity checks #4135

Merged
merged 3 commits into from
Feb 29, 2024
Merged

Improve OP_MSG validity checks #4135

merged 3 commits into from
Feb 29, 2024

Conversation

AlekSi
Copy link
Member

@AlekSi AlekSi commented Feb 29, 2024

Description

Plus, various small improvements.

Readiness checklist

  • I added/updated unit tests (and they pass).
  • I added/updated integration/compatibility tests (and they pass).
  • I added/updated comments and checked rendering.
  • I made spot refactorings.
  • I updated user documentation.
  • I ran task all, and it passed.
  • I ensured that PR title is good enough for the changelog.
  • (for maintainers only) I set Reviewers (@FerretDB/core), Milestone (Next), Labels, Project and project's Sprint fields.
  • I marked all done items in this checklist.

@AlekSi AlekSi added the code/chore Code maintenance improvements label Feb 29, 2024
@AlekSi AlekSi added this to the Next milestone Feb 29, 2024
@AlekSi AlekSi self-assigned this Feb 29, 2024
"time"

fakerlib "github.com/jaswdr/faker"
Copy link
Member Author

Choose a reason for hiding this comment

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

That library uses a ton of memory allocations. It dominates everything else in the benchmark's memory profile. And we don't need many features from it.

@AlekSi AlekSi changed the title Improve OP_MSG validity checks Improve OP_MSG validity checks Feb 29, 2024
@AlekSi AlekSi marked this pull request as ready for review February 29, 2024 08:44
@AlekSi AlekSi requested a review from a team as a code owner February 29, 2024 08:44
@AlekSi AlekSi enabled auto-merge (squash) February 29, 2024 08:44
@AlekSi AlekSi requested review from a team, henvic and noisersup February 29, 2024 08:44
Copy link

codecov bot commented Feb 29, 2024

Codecov Report

Attention: Patch coverage is 34.48276% with 38 lines in your changes are missing coverage. Please review.

Project coverage is 74.21%. Comparing base (a8cfbb5) to head (3322bed).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #4135      +/-   ##
==========================================
- Coverage   74.91%   74.21%   -0.71%     
==========================================
  Files         352      353       +1     
  Lines       22579    22606      +27     
==========================================
- Hits        16916    16776     -140     
- Misses       4392     4565     +173     
+ Partials     1271     1265       -6     
Files Coverage Δ
internal/util/testutil/testutil.go 90.00% <ø> (-2.60%) ⬇️
internal/wire/msg_body.go 50.00% <ø> (ø)
internal/util/testutil/logging.go 70.00% <70.00%> (ø)
integration/shareddata/faker.go 7.14% <21.42%> (+7.14%) ⬆️
internal/wire/op_msg.go 67.78% <29.41%> (-2.06%) ⬇️

... and 21 files with indirect coverage changes

Flag Coverage Δ
filter-false ?
filter-true 67.60% <32.75%> (-0.89%) ⬇️
hana-1 ?
integration 67.60% <32.75%> (-0.95%) ⬇️
mongodb-1 4.77% <13.79%> (+<0.01%) ⬆️
mysql-1 ?
mysql-2 ?
mysql-3 ?
postgresql-1 48.44% <32.75%> (-0.14%) ⬇️
postgresql-2 48.83% <32.75%> (-0.07%) ⬇️
postgresql-3 49.36% <32.75%> (-0.11%) ⬇️
sqlite-1 47.58% <29.31%> (-0.16%) ⬇️
sqlite-2 48.02% <29.31%> (-0.06%) ⬇️
sqlite-3 48.42% <29.31%> (-0.11%) ⬇️
unit 32.76% <36.36%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

@AlekSi AlekSi disabled auto-merge February 29, 2024 09:58
@AlekSi AlekSi merged commit ef2798e into FerretDB:main Feb 29, 2024
31 of 34 checks passed
@AlekSi AlekSi deleted the wire-tweaks branch February 29, 2024 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code/chore Code maintenance improvements
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants