Repository navigation
fuzz: increase txorphan harness stability - #30186
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code CoverageFor detailed information about the code coverage, see the test coverage report. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update. ConflictsReviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first. |
The script shouldn't be passing on macos. Otherwise, b3122e1 doesn't work as intended and should be fixed. |
f2f9610 to
94a30f1
Compare
|
Seems like CI still doesn't like it. I tried this (no space after -i) and it didn't work on Mac. Adding the |
You'll have to install and use gnu-sed on macos, or use Linux. If you don't want to test locally and want to know the syntax without testing, you can look at previous examples via Though, I am not sure if a three line diff is worth a scripted diff, so an alternative would be to just squash everything down into a single commit. |
Just for context, I suggested it to marco as a learning exercise. |
|
Sure, sounds good either way. Happy to review once CI is green and the UB is removed. |
initialize variable
-BEGIN VERIFY SCRIPT- sed -i 's/nNextSweep/m_next_sweep/g' $(git grep -l 'nNextSweep') -END VERIFY SCRIPT- fixing to match style
17d94a1 to
8defc18
Compare
I installed gnu-sed and used that locally. CI looks good now. |
|
utACK 8defc18 |
|
cc @glozow This conflicts with some of your pulls, so maybe you can have a look here? (#30186 (comment)) |
Summary: Backport of [[bitcoin/bitcoin#30186 | core#30186]] and [[bitcoin/bitcoin#30306 | core#30306]]. Note that we don't have the fuzz test yet, the point is to get the module up-to-date with upstream. Depends on D16505. Test Plan: ninja all check-all Reviewers: #bitcoin_abc, PiRK Reviewed By: #bitcoin_abc, PiRK Differential Revision: https://reviews.bitcoinabc.org/D16507
Summary: Backport of [[bitcoin/bitcoin#30186 | core#30186]] and [[bitcoin/bitcoin#30306 | core#30306]]. Note that we don't have the fuzz test yet, the point is to get the module up-to-date with upstream. Depends on D16505. Test Plan: ninja all check-all Reviewers: #bitcoin_abc, PiRK Reviewed By: #bitcoin_abc, PiRK Differential Revision: https://reviews.bitcoinabc.org/D16507
This moves
nNextSweepfrom being a static variable inLimitOrphansto being a member of theTxOrphanageclass. This improves the stability of thetxorphanfuzz harness, as each orphanage (created every iteration) now has its own value fornNextSweep.