Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## kurtis/durable-storage/testable-tmp-dir-util-merge #781 +/- ##
=====================================================================================
Coverage ? 91.06%
=====================================================================================
Files ? 110
Lines ? 20831
Branches ? 20831
=====================================================================================
Hits ? 18969
Misses ? 1489
Partials ? 373 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
763af63 to
8442c5a
Compare
|
Benchmark results for revision b3189af:
Full results
Compare the results above with those for the default branch. |
62eccad to
1b08c86
Compare
| test_durable_storage_inner(operations) | ||
| } | ||
|
|
||
| const VALUE_MAX_SIZE: usize = 4096; |
There was a problem hiding this comment.
Seems low given the database supports much larger values?
There was a problem hiding this comment.
This is also to try to balance performance of the test but I will look into something that tests some large values.
| /// proptest's shrinking algorithm can find a minimal-failing test with fewer iterations. | ||
| #[test] | ||
| fn test_durable_storage_prop((keys, values, ops) in operations_strategy(1usize..100)) { | ||
| // Auto formatting doesn't work within the proptest macro |
There was a problem hiding this comment.
| // Auto formatting doesn't work within the proptest macro |
There was a problem hiding this comment.
This is intentional, to explain why I'm using a standalone function outside of the proptest macro.
There was a problem hiding this comment.
Oh, I'd maybe add that to the comment then, otherwise it looked to me like just stating a fact so I didn't understand why it was there. Feel free to resolve either way.
8af8bc0 to
80c7318
Compare
80c7318 to
0f77146
Compare
There was a problem hiding this comment.
What is the reason for making the integration tests a separate crate? What prevents them from existing as integration tests in the octez-riscv-durable-storage crate?
There was a problem hiding this comment.
Oops, I didn't know that was a thing. Thanks, done.
durable-storage/src/utils.rs
Outdated
There was a problem hiding this comment.
Would this be suitable for the octez-riscv-test-utils crate in /test-utils?
There was a problem hiding this comment.
I'll make this a standalone PR now
2908264 to
6ff9ccd
Compare
6ff9ccd to
f27d362
Compare
0232561 to
e87d575
Compare
f27d362 to
21d2b57
Compare
e87d575 to
22feb1f
Compare
21d2b57 to
38cc95d
Compare
Adds an integration test for all of the operations of `Registry` and `Database`.
38cc95d to
81f2b89
Compare
Closes RV-859
What
Integration test for Durable Storage
Why
We want to:
DatabaseandRegistryAPIsHow
TestableTmpDirto a newutilsmodule so that external crates (e.g. the integration test, the benchmarks) can use it.Manually Testing
In the root directory::
or in
durable-storage/tests/integration/But not in
durable-storage/!Tasks for the Author