Closed chrisjsewell closed 3 years ago
Merging #102 into develop will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## develop #102 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 7 7
Lines 1502 1502
=========================================
Hits 1502 1502
Impacted Files | Coverage Δ | |
---|---|---|
disk_objectstore/container.py | 100.00% <100.00%> (ø) |
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 1d7c389...e62aabd. Read the comment docs.
I've also fixed the issue with codecov initially reporting lower test converage, caused by the fact that it was being uploaded (& overwritten) for every matrix run (and just by luck the windows tests are loaded last, which have the full test coverage) See also https://github.com/codecov/codecov-action/issues/40
Thanks! The fix is right, however the fix on the coverage is wrong. Indeed, as you see now coverage went down because there is a very small fraction of tests that are only run on linux or on mac.
Are you sure that it does not merge? In my experience, it does! It's just that it will prepare a comment as soon as the first build finishes, so at the beginning it seems it didn't use the windows ones, but if you wait at the end it will update the comment and merge the results.
You can see this in the tests for commit 1d7c389 that all pass with 100% coverage.
So I suggest you remove the fix for the coverage and then we merge the actual bug fix
Are you sure that it does not merge?
Ah good, I was lead to believe otherwise lol
Container.is_initialised
is a costly operation, loading the config JSON every time. In https://github.com/aiidateam/disk-objectstore/commit/1d7c389c353185c1923c9addb1b107c283d5f561, the config is now called on every call toloose_prefix_len
, leading to a massive performance degradation.This PR makes sure the
is_initialised
test is called only if the config has not already been loaded into memory.Before:
After: