Skip to content

mop up some mess from the unified fuzzing change - #5254

Merged
sisuresh merged 1 commit into
stellar:masterfrom
graydon:fuzz-test-fixes
May 7, 2026
Merged

sisuresh merged 1 commit into
stellar:masterfrom
graydon:fuzz-test-fixes

Conversation

@graydon

@graydon graydon commented May 6, 2026

Copy link
Copy Markdown
Contributor

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

  • Main fix:
    • Remove the SOROBAN_MAX_PROTOCOL_TESTUTILS_FLAGS = --features = testutils setting from src/Makefile.am which turned on testutils in the max protocol soroban host. This was here as a misunderstanding of "which host actually gets fuzzed anyways": the soroban-fuzz-targets dependency will actually bring in its own soroban-env-host with testutils enabled, and does not need anything changed on the "production" hosts (the pNN ones compiled into .rlibs).
    • Revert the change to INVOKE_ADD_CACHED_COST_PASS in InvokeHostFunctionTests.cpp that I made in the previous PR to compensate for this testutils-in-the-production-host change. This should no longer be necessary, and rolling it back confirms that the production hosts do not in fact have testutils enabled.
    • Adjust comments to explain this a little better in src/rust/Cargo.toml
  • Smaller fixes:
    • Remove references to obsolete Makefile variable CARGO_FEATURE_FUZZ
    • Fix an obsolete comment mentioning the obsolete fuzz feature in src/test/fuzz/FuzzRegressionTests.cpp
    • Remove overzealous next-guarding of soroban-fuzz-targets support in the bridge

Copilot AI review requested due to automatic review settings May 6, 2026 18:56
@graydon
graydon force-pushed the fuzz-test-fixes branch from 49b388c to be50617 Compare May 6, 2026 18:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 testutils into the max-protocol Soroban host build, relying instead on soroban-fuzz-targets to bring its own testutils-enabled host when needed.
  • Rolled back a Soroban module-cache instruction-budget constant to its pre-compensation value.
  • Removed obsolete CARGO_FEATURE_FUZZ references and updated comments/docs to reflect the testutils-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.

Comment thread src/rust/src/soroban_fuzz.rs Resolved
sisuresh
sisuresh previously approved these changes May 6, 2026
@sisuresh
sisuresh added this pull request to the merge queue May 7, 2026
Merged via the queue into stellar:master with commit 2faecc4 May 7, 2026
58 of 60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants