Skip to content

Reorder error and warning log line processing#12515

Merged
weshaggard merged 1 commit intomainfrom
weshaggard-patch-1
Oct 20, 2025
Merged

Reorder error and warning log line processing#12515
weshaggard merged 1 commit intomainfrom
weshaggard-patch-1

Conversation

@weshaggard
Copy link
Copy Markdown
Member

For lines that have both : error and : warning lets prefer the error.
/mnt/vss/_work/1/s/sdk/core/Azure.Core.TestFramework/src/Azure.Core.TestFramework.csproj : error NU1904: Warning As Error: Package

@weshaggard weshaggard requested a review from a team as a code owner October 15, 2025 22:05
Copilot AI review requested due to automatic review settings October 15, 2025 22:05
Copy link
Copy Markdown
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 reorders the conditional checks in ProcessMsBuildLogLine to prioritize error detection over warning detection. This ensures that when a log line contains both : error and : warning patterns (such as NuGet's "Warning As Error" messages), it is correctly categorized and reported as an error rather than a warning.

Key Changes:

  • Reordered if-elseif conditions to check for : error before : warning

@azure-sdk
Copy link
Copy Markdown
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

azure-sdk added a commit to Azure/azure-sdk-for-js that referenced this pull request Oct 20, 2025
Sync eng/common directory with azure-sdk-tools for PR
Azure/azure-sdk-tools#12515 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
azure-sdk added a commit to Azure/azure-sdk-for-rust that referenced this pull request Oct 20, 2025
Sync eng/common directory with azure-sdk-tools for PR
Azure/azure-sdk-tools#12515 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

Co-authored-by: Wes Haggard <weshaggard@users.noreply.github.com>
@weshaggard weshaggard merged commit 046a721 into main Oct 20, 2025
12 checks passed
@weshaggard weshaggard deleted the weshaggard-patch-1 branch October 20, 2025 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants