test_bank_forks_new_rw_arc_memory_leak should test hard fork count, rather than looping until OOM#8585
Conversation
…ather than looping until OOM
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #8585 +/- ##
=======================================
Coverage 83.1% 83.1%
=======================================
Files 847 847
Lines 368907 368906 -1
=======================================
+ Hits 306810 306825 +15
+ Misses 62097 62081 -16 🚀 New features to boost your workflow:
|
|
I'm not sure if there is anyone else who should review this one. Test was originally added by a public contribution. |
|
Can you share the PR that added this test originally, please? Edit: original PR is #1893 |
What did the failure on the original commit look like? Assert? OOM? Something else? |
|
For this PR, is the problem that the test is slow? Or that the test is flaky? Or the test isn't actually practically testing anything? |
The test as written does not fail on the commit prior to the fix. Likely the system that I have is different than the system that the original test was run on (it was expecting OOM). |
The test (prior to changes) doesn't actually fail prior to the original fix on my system. So the test is not catching anything. The test as modified is significantly faster, and actually catches the issue that it was intended to test. So both. |
|
The change is correct and improves the test significantly. However, the test needs a comment explaining what it's testing for, since the memory leak issue is not immediately obvious. Suggestion: Add a comment to clarify the test's purpose This makes it clear to future readers what the test is checking and why it matters, without needing to dig through git history. |
Makes sense! Added. |
…ather than looping until OOM (anza-xyz#8585) * test_bank_forks_new_rw_arc_memory_leak should test hard fork count, rather than looping until OOM * Updating test description
Problem
test_bank_forks_new_rw_arc_memory_leak is attempting to loop until OOM by creating bank_forks. This is indeterminate based on system settings. Tested the original commit (prior to the test introduction) and did not OOM on my system.
Summary of Changes
Note: this test + one other cause the runtime tests to take 120s instead of 11s, impeding local development
Fixes #