[Repo Assist] fix: suppress workload update notifications in test output#2155
Merged
Krzysztof-Cieslak merged 2 commits intomainfrom Mar 18, 2026
Conversation
Set DOTNET_CLI_WORKLOADS_UPDATE_NOTIFY_DISABLE=1 in the child process environment when running dotnet test, so that the .NET SDK no longer emits 'Workload updates are available' messages into the test output. These messages were appearing in the test discovery and test run output from the F# Test Adapter because they are emitted by the dotnet CLI before actual test output is produced. Suppressing them keeps the output clean and avoids confusing the test-name parsing logic. Closes #2020 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
39 tasks
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 PR was created by Repo Assist, an automated AI assistant.
Closes #2020
Root Cause
When running
dotnet test, the .NET CLI emits "Workload updates are available" messages before the actual test output. These messages appear in the F# Test Adapter's output because they are written to stdout by the SDK runtime prior to any test-related output being produced.Fix
Set
DOTNET_CLI_WORKLOADS_UPDATE_NOTIFY_DISABLE=1in the child process environment inside thegetEnvhelper inTestExplorer.fs. This environment variable is supported by the .NET SDK to suppress workload update notifications. The fix applies to bothdotnet testruns anddotnet test --list-tests(test discovery), since both go through the samedotnetTest/getEnvpath.Trade-offs
dotnet testinvocations.DOTNET_CLI_WORKLOADS_UPDATE_NOTIFY_DISABLE) is a supported SDK feature, confirmed via the .NET SDK source.Test Status
✅ Fable compilation succeeded — the changed file compiles without errors.
The project build requires network access (yarn/npm for full webpack bundle) which is not available in this environment. The F# type-checking and Fable transpilation completed successfully, confirming no type errors were introduced.