Fix the fuzzy test#26402
Merged
Merged
Conversation
TravisEz13
approved these changes
Nov 6, 2025
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the fuzzing test runner script to improve its usability and maintainability. The changes simplify the script by removing dynamic target discovery and providing better default values for paths.
Key Changes
- Updated parameter defaults to use
$PSScriptRootfor better portability and made$corpusparameter optional with a sensible default - Simplified instrumentation logic by targeting specific classes (
FuzzTests.TargetandSystem.Management.Automation.Remoting.RemoteSessionHyperVSocketClient) instead of using dynamic discovery - Modernized the
.csprojfile by importingTest.Common.propsfor consistent build configuration across test projects
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| test/fuzzing/runFuzzer.ps1 | Added documentation header, updated parameter defaults with $PSScriptRoot, simplified instrumentation to target specific classes, and changed build configuration to Debug |
| test/fuzzing/FuzzingApp/powershell-fuzz-tests.csproj | Added import of Test.Common.props and removed redundant property definitions for cleaner project configuration |
| test/fuzzing/FuzzingApp/Target.cs | Removed trailing newline (whitespace cleanup) |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
SIRMARGIN
pushed a commit
to SIRMARGIN/PowerShell
that referenced
this pull request
Dec 12, 2025
kilasuit
pushed a commit
to kilasuit/PowerShell
that referenced
this pull request
Jan 2, 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.
PR Summary
powershell-fuzz-tests.csprojto useTest.Common.props. So, it doesn't need to update the target framework separately in future.runFuzzer.ps1file to correct the instrumentation and remove unneeded code.