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

Fix fluky TestRenameCollectionCompat tests #3438

Merged

Conversation

chilagrow
Copy link
Member

@chilagrow chilagrow commented Sep 26, 2023

Description

Closes #3409.

Test sometimes fails because TestRenameCollectionCompat contains Valid test case which actually rename collection. After that has executed, collection no longer exists. So I've separated valid case to another compat test.

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.

@chilagrow chilagrow added the code/chore Code maintenance improvements label Sep 26, 2023
@chilagrow chilagrow added this to the Next milestone Sep 26, 2023
@chilagrow chilagrow self-assigned this Sep 26, 2023
@chilagrow chilagrow mentioned this pull request Sep 26, 2023
9 tasks
@codecov
Copy link

codecov bot commented Sep 26, 2023

Codecov Report

Merging #3438 (bdc2794) into main (ff4a3b6) will decrease coverage by 0.68%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3438      +/-   ##
==========================================
- Coverage   75.39%   74.72%   -0.68%     
==========================================
  Files         420      420              
  Lines       26179    26179              
==========================================
- Hits        19738    19562     -176     
- Misses       5308     5471     +163     
- Partials     1133     1146      +13     

see 23 files with indirect coverage changes

Flag Coverage Δ
filter-true 71.20% <ø> (-0.76%) ⬇️
hana-1 ?
integration 71.20% <ø> (-0.76%) ⬇️
mongodb-1 4.62% <ø> (ø)
pg-1 40.97% <ø> (-0.76%) ⬇️
pg-2 43.36% <ø> (-0.53%) ⬇️
pg-3 42.70% <ø> (+1.03%) ⬆️
postgresql-1 ∅ <ø> (∅)
postgresql-2 40.84% <ø> (-0.70%) ⬇️
postgresql-3 40.36% <ø> (+1.04%) ⬆️
sort-false 71.20% <ø> (-0.76%) ⬇️
sqlite-1 ?
sqlite-2 42.66% <ø> (-0.40%) ⬇️
sqlite-3 42.19% <ø> (+1.06%) ⬆️
unit 24.52% <ø> (+0.03%) ⬆️

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

@chilagrow chilagrow marked this pull request as ready for review September 26, 2023 09:30
@chilagrow chilagrow requested review from AlekSi and a team as code owners September 26, 2023 09:30
@chilagrow chilagrow requested review from rumyantseva, a team and noisersup September 26, 2023 09:30
@chilagrow chilagrow enabled auto-merge (squash) September 26, 2023 09:30
@chilagrow chilagrow requested a review from AlekSi September 26, 2023 10:22
rumyantseva
rumyantseva previously approved these changes Sep 26, 2023
Copy link
Contributor

@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.

LGTM! Thanks for fixing this.

integration/renamecollection_compat_test.go Show resolved Hide resolved
@chilagrow chilagrow changed the title Fix fluky RenameCollection tests Fix fluky TestRenameCollectionCompat tests Sep 27, 2023
Copy link
Contributor

@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:

@chilagrow chilagrow merged commit 7ca090f into FerretDB:main Sep 28, 2023
25 of 28 checks passed
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.

Some backend tests are fluky
4 participants