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

Add basic tests for iterators #2880

Merged
merged 4 commits into from
Jun 21, 2023
Merged

Add basic tests for iterators #2880

merged 4 commits into from
Jun 21, 2023

Conversation

AlekSi
Copy link
Member

@AlekSi AlekSi commented Jun 21, 2023

Readiness checklist

  • I added/updated unit tests.
  • I added/updated integration/compatibility tests.
  • 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 Jun 21, 2023
@AlekSi AlekSi added this to the Next milestone Jun 21, 2023
@AlekSi AlekSi self-assigned this Jun 21, 2023
@AlekSi AlekSi marked this pull request as ready for review June 21, 2023 11:01
@AlekSi AlekSi requested a review from a team as a code owner June 21, 2023 11:01
@AlekSi AlekSi requested review from w84thesun and rumyantseva June 21, 2023 11:01
@AlekSi AlekSi enabled auto-merge (squash) June 21, 2023 11:01
@AlekSi AlekSi requested review from a team, chilagrow and noisersup June 21, 2023 11:01
@codecov
Copy link

codecov bot commented Jun 21, 2023

Codecov Report

Merging #2880 (eba8ceb) into main (24683b6) will decrease coverage by 14.45%.
The diff coverage is 100.00%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             main    #2880       +/-   ##
===========================================
- Coverage   64.19%   49.75%   -14.45%     
===========================================
  Files         448      450        +2     
  Lines       23084    23125       +41     
===========================================
- Hits        14819    11506     -3313     
- Misses       7299    10652     +3353     
- Partials      966      967        +1     
Impacted Files Coverage Δ
...nternal/util/iterator/testiterator/testiterator.go 100.00% <100.00%> (ø)
internal/util/teststress/stress.go 100.00% <100.00%> (ø)

... and 82 files with indirect coverage changes

Flag Coverage Δ
integration 41.47% <ø> (-15.92%) ⬇️
mongodb 4.22% <ø> (ø)
pg 41.14% <ø> (-16.17%) ⬇️
shard-1 41.47% <ø> (+0.01%) ⬆️
shard-2 ?
shard-3 ?
unit 24.76% <100.00%> (+0.09%) ⬆️

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

@AlekSi AlekSi requested a review from rumyantseva June 21, 2023 12:11
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.

I like the idea of moving this separate Stress logic into a separate function! One suggestion - maybe in our test naming convention we should mention that there are those Stress tests and how they should be named. Could be in the same PR where the existing tests will use the new Stress function.

Copy link
Member

@noisersup noisersup left a comment

Choose a reason for hiding this comment

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

Makes sense!

@AlekSi AlekSi merged commit 93b80a4 into FerretDB:main Jun 21, 2023
@AlekSi AlekSi deleted the stress-helper branch June 21, 2023 12:55
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.

3 participants