Skip to content

Use local dotnet SDK for fuzzing code coverage - #123597

Merged
MihaZupan merged 3 commits into
dotnet:mainfrom
MihaZupan:fuzzer-coverage2
Jan 28, 2026
Merged

MihaZupan merged 3 commits into
dotnet:mainfrom
MihaZupan:fuzzer-coverage2

Conversation

@MihaZupan

Copy link
Copy Markdown
Member

Small follow-up to #123079 for odd setups where the "global" dotnet SDK wouldn't work and we can make it work with the local one. There's also no need to use global tools since our build already installs these as local ones.
I had to make these tweaks to get MihuBot fuzzing to work on Helix queues.

@MihaZupan MihaZupan added this to the 11.0.0 milestone Jan 25, 2026
@MihaZupan
MihaZupan requested a review from rzikm January 25, 2026 16:18
@MihaZupan MihaZupan self-assigned this Jan 25, 2026
Copilot AI review requested due to automatic review settings January 25, 2026 16:18
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-meta
See info in area-owners.md if you want to be subscribed.

@MihaZupan

Copy link
Copy Markdown
Member Author

@MihuBot fuzz Base64Fuzzer -helix

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 updates the fuzzing code coverage collection script to use local dotnet tools instead of global tools, making it work in environments where the global dotnet SDK is not available (e.g., Helix queues).

Changes:

  • Removed -g and --global flags from dotnet tool installation and listing commands to use local tools
  • Prefixed tool invocations (coverlet and reportgenerator) with $dotnetPath to run them through the local dotnet SDK

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@MihuBot

MihuBot commented Jan 25, 2026

Copy link
Copy Markdown

Ran the fuzzer(s) successfully. Code coverage reports:

@MihaZupan

Copy link
Copy Markdown
Member Author

/ba-g This is a helper script not exercised in CI

@MihaZupan
MihaZupan merged commit 56e72d5 into dotnet:main Jan 28, 2026
77 of 92 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants