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 default value for StoreBackendBase.compress #1139

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ogrisel
Copy link
Contributor

@ogrisel ogrisel commented Dec 15, 2020

Fixes #1127.

Ideally we would need update the tests but the bare try / except in StoreBackendBase.dump_item makes this difficult and looks like an anti-pattern anyway. However I am not sure which exception we should expect in case of a race condition in the creation of directory (probably OSError?). We probably need more tests, including multi-threaded stress tests to check for the robustness of concurrent directory creation.

@aabadie if you are still interested in this, please feel free to send a PR :)

@codecov
Copy link

codecov bot commented Dec 15, 2020

Codecov Report

Merging #1139 (5c261e9) into master (311d8be) will increase coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1139      +/-   ##
==========================================
+ Coverage   94.52%   94.54%   +0.01%     
==========================================
  Files          47       47              
  Lines        6960     6961       +1     
==========================================
+ Hits         6579     6581       +2     
+ Misses        381      380       -1     
Impacted Files Coverage Δ
joblib/_store_backends.py 90.81% <100.00%> (+0.04%) ⬆️
joblib/test/test_store_backends.py 91.42% <0.00%> (-5.72%) ⬇️
joblib/_parallel_backends.py 96.09% <0.00%> (+1.17%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 311d8be...5c261e9. Read the comment docs.

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.

store backend mixin assuming 'compress' attrib
1 participant