Repository navigation
mop up some mess from the unified fuzzing change - #5254
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR cleans up fallout from the unified fuzzing change by ensuring testutils is not inadvertently enabled in “production” Soroban host builds, and by correcting related build flags and comments so fuzzing support remains available only where intended.
Changes:
- Removed propagation of
--features testutilsinto the max-protocol Soroban host build, relying instead onsoroban-fuzz-targetsto bring its owntestutils-enabled host when needed. - Rolled back a Soroban module-cache instruction-budget constant to its pre-compensation value.
- Removed obsolete
CARGO_FEATURE_FUZZreferences and updated comments/docs to reflect thetestutils-gated fuzzing setup.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/transactions/test/InvokeHostFunctionTests.cpp | Restores cached-module instruction budget constant after removing unintended testutils cost impact. |
| src/test/fuzz/FuzzRegressionTests.cpp | Updates skip rationale comment to reference testutils instead of the obsolete fuzz feature. |
| src/rust/src/soroban_fuzz.rs | Removes unnecessary next gating so Soroban fuzz targets are available whenever testutils is enabled. |
| src/rust/Cargo.toml | Clarifies non-unified build rationale and documents soroban-fuzz-targets version-tracking expectations; updates testutils feature comment. |
| src/Makefile.am | Stops injecting testutils into the max-protocol host build and removes obsolete CARGO_FEATURE_FUZZ usage. |
sisuresh
previously approved these changes
May 6, 2026
sisuresh
approved these changes
May 6, 2026
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.
This rolls back one serious issue and fixes a few minor ones along the way, all residual misunderstandings / bugs from previous iterations of the final change that landed in #5121
SOROBAN_MAX_PROTOCOL_TESTUTILS_FLAGS = --features = testutilssetting fromsrc/Makefile.amwhich turned ontestutilsin the max protocol soroban host. This was here as a misunderstanding of "which host actually gets fuzzed anyways": thesoroban-fuzz-targetsdependency will actually bring in its ownsoroban-env-hostwithtestutilsenabled, and does not need anything changed on the "production" hosts (the pNN ones compiled into .rlibs).INVOKE_ADD_CACHED_COST_PASSinInvokeHostFunctionTests.cppthat I made in the previous PR to compensate for thistestutils-in-the-production-host change. This should no longer be necessary, and rolling it back confirms that the production hosts do not in fact havetestutilsenabled.src/rust/Cargo.tomlCARGO_FEATURE_FUZZfuzzfeature insrc/test/fuzz/FuzzRegressionTests.cppnext-guarding ofsoroban-fuzz-targetssupport in the bridge