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

Move diff tests from dance to integration tests #3525

Merged
merged 26 commits into from Nov 17, 2023

Conversation

ksankeerth
Copy link
Contributor

@ksankeerth ksankeerth commented Oct 8, 2023

Description

Closes #3383.

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.

@ksankeerth ksankeerth requested a review from a team as a code owner October 8, 2023 13:13
@CLAassistant
Copy link

CLAassistant commented Oct 8, 2023

CLA assistant check
All committers have signed the CLA.

Signed-off-by: Shankeerthan Kasilingam <shankeerthan1995@gmail.com>
@ksankeerth
Copy link
Contributor Author

Hi @AlekSi,
Please check the comment #3383 (comment) . There are a few pending items in check list. (including removing diff tests from dance and updating docs). If you want to move all the diff tests to ferretDB repo, I can remove all the test files in dance.
Thanks!

@AlekSi AlekSi self-assigned this Oct 10, 2023
// unsetRaw returns error with all Raw fields unset. It returns nil if err is nil.
//
// Error is checked using a regular type assertion; wrapped errors (errors.As) are not checked.
func unsetRaw(t testing.TB, err error) error {
Copy link
Member

Choose a reason for hiding this comment

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

That should be replaced with an existing UnsetRaw function

}

// assertEqualError asserts that the expected error is the same as the actual (ignoring the Raw part).
func assertEqualError(t testing.TB, expected mongo.CommandError, actual error) bool {
Copy link
Member

Choose a reason for hiding this comment

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

That should be replaces with existing AssertEqualCommandError

@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

Merging #3525 (854b59e) into main (8e27db3) will increase coverage by 0.05%.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #3525      +/-   ##
==========================================
+ Coverage   76.34%   76.40%   +0.05%     
==========================================
  Files         323      323              
  Lines       23069    23069              
==========================================
+ Hits        17613    17625      +12     
+ Misses       4417     4406      -11     
+ Partials     1039     1038       -1     

see 16 files with indirect coverage changes

Flag Coverage Δ
filter-true 72.53% <ø> (+0.15%) ⬆️
hana-1 ?
integration 72.53% <ø> (+0.15%) ⬆️
mongodb-1 5.45% <ø> (ø)
postgresql-1 51.83% <ø> (-0.56%) ⬇️
postgresql-2 51.50% <ø> (-0.15%) ⬇️
postgresql-3 52.51% <ø> (+1.80%) ⬆️
sort-false 72.53% <ø> (+0.15%) ⬆️
sqlite-1 50.97% <ø> (-0.62%) ⬇️
sqlite-2 50.66% <ø> (-0.18%) ⬇️
sqlite-3 51.64% <ø> (+1.81%) ⬆️
unit 30.17% <ø> (ø)

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

@AlekSi AlekSi assigned chilagrow and unassigned AlekSi Oct 16, 2023
@AlekSi
Copy link
Member

AlekSi commented Oct 19, 2023

@ksankeerth any news? Anything we could help you with?

@AlekSi AlekSi added the code/chore Code maintenance improvements label Oct 30, 2023
@AlekSi AlekSi added this to the Next milestone Oct 30, 2023
@chilagrow chilagrow changed the title [Draft]Move diff tests from dance to integration tests Move diff tests from dance to integration tests Nov 1, 2023
@chilagrow chilagrow requested review from a team, rumyantseva and noisersup November 1, 2023 07:34
@chilagrow chilagrow enabled auto-merge (squash) November 1, 2023 07:34
chilagrow
chilagrow previously approved these changes Nov 1, 2023
integration/diff_test.go Outdated Show resolved Hide resolved
integration/diff_test.go Outdated Show resolved Hide resolved
@chilagrow chilagrow requested a review from AlekSi November 1, 2023 07:43
@AlekSi AlekSi requested review from a team and chilagrow November 15, 2023 18:33
Copy link
Member

@AlekSi AlekSi left a comment

Choose a reason for hiding this comment

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

rumyantseva
rumyantseva previously approved these changes Nov 15, 2023
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.

LGTM

rumyantseva
rumyantseva previously approved these changes Nov 16, 2023
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.

LGTM

noisersup
noisersup previously approved these changes Nov 16, 2023
@noisersup noisersup dismissed stale reviews from rumyantseva and themself via 6dc73da November 17, 2023 11:55
@AlekSi AlekSi disabled auto-merge November 17, 2023 12:17
@AlekSi AlekSi merged commit d96606c into FerretDB:main Nov 17, 2023
29 checks passed
@AlekSi
Copy link
Member

AlekSi commented Nov 17, 2023

Thank you!

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.

Move diff tests from dance to integration tests
6 participants