Repository navigation
tests: programs/sbf: use default rent - #16473
Merged
Merged
Conversation
buffalojoec
marked this pull request as ready for review
October 28, 2026 04:14
buffalojoec
enabled auto-merge
October 28, 2026 04:14
buffalojoec
force-pushed
the
sbf-tests-default-rent
branch
from
October 28, 2026 09:40
ec47daf to
afa6a37
Compare
Lichtso
approved these changes
Oct 28, 2026
|
You will have to rebase to silence |
buffalojoec
force-pushed
the
sbf-tests-default-rent
branch
from
October 28, 2026 10:34
afa6a37 to
c5db2cf
Compare
buffalojoec
force-pushed
the
sbf-tests-default-rent
branch
from
October 28, 2026 11:34
c5db2cf to
9b4be88
Compare
Lichtso
approved these changes
Oct 28, 2026
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #16473 +/- ##
=========================================
- Coverage 82.5% 82.3% -0.2%
=========================================
Files 955 955
Lines 373598 373609 +11
=========================================
- Hits 308230 307706 -524
- Misses 65368 65903 +535 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
I noticed the default
Rentfor runtime'sgenesis_utils::create_genesis_config& family isRent::free. This is fine for a lot of the test suites that use it - like core - but forprograms/sbfthis creates a footgun for testing that could be problematic.Summary of Changes
Switch all of the
programs/sbftests over to useRent::default.Since there were already plenty of constructors in
runtime/src/genesis_utils.rs, I added one more under DCOU that affirmatively adds theRent::defaultparameter. Trying to modify or reuse one of the existing ones was more trouble than it was worth.Also factors some tests and updates lamports balances throughout, now that rent is required.
Testing
Updates existing tests.