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

quickfix: mmap_mode to None should set max_nbytes to None #1325

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

thiswillbeyourgithub
Copy link

@thiswillbeyourgithub thiswillbeyourgithub commented Sep 8, 2022

A PR was asked by @ogrisel in this issue.

This seems of small importance and the patch is minimal but it passes the test script mentionned in the issue above.

edit : If I'm understanding code coverage correctly, the reduction in code coverage is expected and a good thing in this case, right ?

@codecov
Copy link

codecov bot commented Sep 8, 2022

Codecov Report

Merging #1325 (24580ea) into master (1f00a1c) will decrease coverage by 14.35%.
The diff coverage is 28.57%.

@@             Coverage Diff             @@
##           master    #1325       +/-   ##
===========================================
- Coverage   93.91%   79.55%   -14.36%     
===========================================
  Files          50       50               
  Lines        7275     7103      -172     
===========================================
- Hits         6832     5651     -1181     
- Misses        443     1452     +1009     
Impacted Files Coverage Δ
joblib/test/test_memmapping.py 33.91% <25.00%> (-65.34%) ⬇️
joblib/parallel.py 95.77% <50.00%> (-0.78%) ⬇️
joblib/test/test_dask.py 3.58% <0.00%> (-87.59%) ⬇️
joblib/_dask.py 24.01% <0.00%> (-68.67%) ⬇️
joblib/_memmapping_reducer.py 61.27% <0.00%> (-34.61%) ⬇️
joblib/executor.py 76.19% <0.00%> (-23.81%) ⬇️
joblib/backports.py 50.50% <0.00%> (-19.20%) ⬇️
joblib/test/testutils.py 33.33% <0.00%> (-16.67%) ⬇️
joblib/pool.py 72.13% <0.00%> (-16.49%) ⬇️
... and 23 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@ogrisel
Copy link
Contributor

ogrisel commented Sep 12, 2022

edit : If I'm understanding code coverage correctly, the reduction in code coverage is expected and a good thing in this case, right ?

No, it highlights the fact that we have no existing test that calls Parallel with mmap_mode=None. Please add a new one. You can take inspiration of the existing tests for the max_nbytes parameter.

Please also add an entry to document the change (as a bugfix) in the CHANGES.rst file.

@thiswillbeyourgithub
Copy link
Author

I edited CHANGES.rst and tried to add a test but I've never used pytest so it doesn't seem to work. I'm afraid I won't be able to figure out a good test sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants