Closed metanivek closed 1 year ago
Merging #2180 (870a533) into main (ff45092) will decrease coverage by
0.01%
. The diff coverage is65.00%
.:exclamation: Current head 870a533 differs from pull request most recent head 2ee84e6. Consider uploading reports for the commit 2ee84e6 to get more accurate results
:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@ Coverage Diff @@
## main #2180 +/- ##
==========================================
- Coverage 68.07% 68.06% -0.01%
==========================================
Files 134 134
Lines 16161 16208 +47
==========================================
+ Hits 11001 11032 +31
- Misses 5160 5176 +16
Impacted Files | Coverage Δ | |
---|---|---|
src/irmin-pack/inode.ml | 78.96% <0.00%> (ø) |
|
src/irmin-pack/unix/dispatcher.ml | 76.02% <ø> (ø) |
|
src/irmin-pack/unix/errors.ml | 28.88% <ø> (ø) |
|
src/irmin-pack/unix/gc_worker.ml | 4.34% <ø> (ø) |
|
src/irmin-pack/unix/io_errors.ml | 58.33% <ø> (ø) |
|
src/irmin-pack/unix/mapping_file.ml | 89.88% <0.00%> (ø) |
|
src/irmin-pack/version.ml | 44.44% <ø> (ø) |
|
src/irmin-pack/unix/checks.ml | 23.28% <33.33%> (+0.22%) |
:arrow_up: |
src/irmin-pack/unix/store.ml | 63.26% <37.50%> (-0.85%) |
:arrow_down: |
src/irmin-pack/unix/async.ml | 56.60% <40.00%> (+2.75%) |
:arrow_up: |
... and 13 more |
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more
This PR refactors control file to support more than one type of control file and adds the initial version of a volume control file.
I left TODOs for things that we will need to address before release, but I'll re-iterate them here with some added thoughts/context:
Corrupted_control_file
so that we can know which control file is at fault. This can likely be as simple as giving a string that we put a message into.Corrupted_control_file
but it seems better to be specific with this error. Also, we should add path information to the error.add an error for V1|V2 instead of assert false. This isn't strictly necessary but a thing I spotted while working with this code that I think could be improved.