Skip to content

[Repo Assist] fix: suppress workload update notifications in test output#2155

Merged
Krzysztof-Cieslak merged 2 commits intomainfrom
repo-assist/fix-issue-2020-workload-updates-567e5723e619cf7d
Mar 18, 2026
Merged

[Repo Assist] fix: suppress workload update notifications in test output#2155
Krzysztof-Cieslak merged 2 commits intomainfrom
repo-assist/fix-issue-2020-workload-updates-567e5723e619cf7d

Conversation

@github-actions
Copy link
Contributor

🤖 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=1 in the child process environment inside the getEnv helper in TestExplorer.fs. This environment variable is supported by the .NET SDK to suppress workload update notifications. The fix applies to both dotnet test runs and dotnet test --list-tests (test discovery), since both go through the same dotnetTest/getEnv path.

Trade-offs

  • This unconditionally disables the workload update notification for tests spawned by Ionide. Users who rely on seeing this notification from VS Code test runs will no longer see it; however, it will still appear in regular terminal dotnet test invocations.
  • The environment variable name (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.

Generated by Repo Assist ·

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@346204513ecfa08b81566450d7d599556807389f

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>
@Krzysztof-Cieslak Krzysztof-Cieslak marked this pull request as ready for review March 18, 2026 12:02
@Krzysztof-Cieslak Krzysztof-Cieslak merged commit 93d6f2a into main Mar 18, 2026
2 checks passed
@Krzysztof-Cieslak Krzysztof-Cieslak deleted the repo-assist/fix-issue-2020-workload-updates-567e5723e619cf7d branch March 18, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test Runner displays "Workload Updates are available"

1 participant