Repository navigation
Conversation
|
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers. Code Coverage & BenchmarksFor details see: https://corecheck.dev/bitcoin/bitcoin/pulls/34395. ReviewsSee the guideline for information on the review process.
If your review is incorrectly listed, please copy-paste 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. |
|
NACK Sorry for the push back, but I think the subjective benefit here does not outweigh the cost on the project |
what's the cost on the project? I'm unifying python testing nomenclature with the C++ one. |
d2b531c to
ea70e66
Compare
…CK equivalents The functional test framework's `assert_greater_than*` helpers are verbose and noisy at call sites. Rename them to `assert_gt` and `assert_ge` to align with the C++ `BOOST_CHECK_GT`/`BOOST_CHECK_GE` naming. The comparison semantics are unchanged. -BEGIN VERIFY SCRIPT- git grep -qE "\b(assert_gt|assert_ge)\b" -- test/functional && echo "Error: Target names already exist" >&2 && exit 1 perl -pi -e "s/\bassert_greater_than_or_equal\b/assert_ge/g" $(git grep -l "\bassert_greater_than_or_equal\b" -- test/functional) perl -pi -e "s/\bassert_greater_than\b/assert_gt/g" $(git grep -l "\bassert_greater_than\b" -- test/functional) -END VERIFY SCRIPT-
ea70e66 to
1f70c30
Compare
The cost of reviewing this PR (e.g. #34395 (comment)), and the rebasing this would cause post merge (7 conflicts atm). |
It's fine if you don't want to invest time in doing or reviewing refactorings, but not sure why you want to stop others from doing so - most of our work is refactoring and cleanup... |
I don't think that is worthwhile tbh, or at least it doesn't feel like a sufficient quality of dev experience improvement to me. |
|
Thanks for the feedback. |
Problem
The functional test framework's
assert_greater_thanandassert_greater_than_or_equalhelper names are verbose, discouraging their use despite providing better error messages for debugging intermittent failures.They're also using a different nomenclature for comparison than what we're used to on C++ side.
Fix
Rename them to
assert_gtandassert_gevia a scripted diff to align with the C++BOOST_CHECK_GT/BOOST_CHECK_GEnaming.Discussed in #34328 (comment)