Skip to content

Conversation

@NikolaMilosavljevic
Copy link
Member

This fixes the issue with logging of process errors. ExecuteHelper is used by source-build and other tests.

For some reason the condition was incorrect, so errors were never logged. Found this by accident while investigating #3144

@NikolaMilosavljevic NikolaMilosavljevic requested a review from a team as a code owner November 3, 2025 19:46
Copilot AI review requested due to automatic review settings November 3, 2025 19:46
@NikolaMilosavljevic NikolaMilosavljevic requested a review from a team as a code owner November 3, 2025 19:46
Copy link
Contributor

Copilot AI left a comment

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 fixes a conditional logic error in the test utility's process execution error handling. The condition was incorrectly checking if the error string was null or whitespace before logging it, when it should have been checking if it was NOT null or whitespace.

Key Changes:

  • Fixed inverted conditional logic for error message output in ExecuteProcess method

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@NikolaMilosavljevic NikolaMilosavljevic enabled auto-merge (squash) November 3, 2025 20:14
@NikolaMilosavljevic NikolaMilosavljevic merged commit 043604d into dotnet:main Nov 3, 2025
16 of 17 checks passed
@mthalman
Copy link
Member

/backport to release/10.0.1xx

@github-actions
Copy link
Contributor

Started backporting to release/10.0.1xx (link to workflow run)

@mthalman
Copy link
Member

/backport to release/10.0.2xx

@github-actions
Copy link
Contributor

Started backporting to release/10.0.2xx (link to workflow run)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants