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 MongoDB/FerretDB error checking in tests #3143

Merged
merged 7 commits into from Aug 2, 2023

Conversation

AlekSi
Copy link
Member

@AlekSi AlekSi commented Aug 1, 2023

Description

The main error message should come from MongoDB.

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), 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 Aug 1, 2023
@AlekSi AlekSi added this to the Next milestone Aug 1, 2023
@AlekSi AlekSi self-assigned this Aug 1, 2023
@codecov
Copy link

codecov bot commented Aug 1, 2023

Codecov Report

Merging #3143 (b613a2d) into main (9673b2d) will decrease coverage by 0.20%.
The diff coverage is 85.71%.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3143      +/-   ##
==========================================
- Coverage   75.47%   75.27%   -0.20%     
==========================================
  Files         393      393              
  Lines       21868    21872       +4     
==========================================
- Hits        16504    16464      -40     
- Misses       4401     4448      +47     
+ Partials      963      960       -3     
Files Changed Coverage Δ
integration/helpers.go 86.87% <80.00%> (+0.09%) ⬆️
integration/setup/test_helpers.go 100.00% <100.00%> (ø)

... and 18 files with indirect coverage changes

Flag Coverage Δ
hana ?
integration 71.71% <85.71%> (-0.20%) ⬇️
mongodb 5.38% <57.14%> (-0.02%) ⬇️
pg 65.24% <71.42%> (-0.01%) ⬇️
shard-1 54.89% <78.57%> (-0.36%) ⬇️
shard-2 53.13% <57.14%> (+0.06%) ⬆️
shard-3 58.04% <71.42%> (+0.69%) ⬆️
sqlite 37.97% <50.00%> (+3.28%) ⬆️
unit 24.65% <ø> (ø)

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

@AlekSi AlekSi changed the title Better check for alternative messages Improve MongoDB/FerretDB error checking in tests Aug 1, 2023
@AlekSi AlekSi marked this pull request as ready for review August 1, 2023 15:15
@AlekSi AlekSi requested a review from a team as a code owner August 1, 2023 15:15
@AlekSi AlekSi enabled auto-merge (squash) August 1, 2023 15:15
@AlekSi AlekSi requested review from a team and noisersup August 1, 2023 15:15
Copy link
Contributor

@chilagrow chilagrow left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Member

@rumyantseva rumyantseva left a comment

Choose a reason for hiding this comment

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

:shipit:

@AlekSi AlekSi merged commit eb84add into FerretDB:main Aug 2, 2023
24 of 28 checks passed
@AlekSi AlekSi deleted the alt-message branch August 2, 2023 08:19
yonarw pushed a commit to yonarw/FerretDB that referenced this pull request Aug 31, 2023
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.

None yet

4 participants