Skip to content

fix: avoid MSBuild parallel console logger in tests - #5138

Merged
arturcic merged 1 commit into
GitTools:mainfrom
arturcic:codex/fix-msbuild-pipe-logger
Aug 14, 2026
Merged

fix: avoid MSBuild parallel console logger in tests#5138
arturcic merged 1 commit into
GitTools:mainfrom
arturcic:codex/fix-msbuild-pipe-logger

Conversation

@arturcic

Copy link
Copy Markdown
Member

Summary

Replace the MSBuild test fixture's ConsoleLogger with a focused message logger.

Root cause

With Microsoft.Build 18.9.6, the Buildalyzer pipe logger can replay a message without a BuildEventContext. ParallelConsoleLogger rejects that event, causing otherwise unrelated MSBuild task tests to fail intermittently on macOS ARM.

The replacement captures the message events asserted by the tests without routing through ParallelConsoleLogger.

Validation

  • dotnet test --project src/GitVersion.MsBuild.Tests/GitVersion.MsBuild.Tests.csproj --no-build --no-restore --verbosity minimal
    • 151 passed

@sonarqubecloud

Copy link
Copy Markdown

@arturcic arturcic added the build label Aug 14, 2026
@arturcic
arturcic marked this pull request as ready for review August 14, 2026 16:15
Copilot AI lite review requested due to automatic review settings August 14, 2026 16:15

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 was unable to review this pull request because the user who requested the review has reached their quota limit.

@arturcic
arturcic merged commit c5aa989 into GitTools:main Aug 14, 2026
60 checks passed
@arturcic
arturcic deleted the codex/fix-msbuild-pipe-logger branch August 14, 2026 16:15
@mergify

mergify Bot commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

Thank you @arturcic for your contribution!

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants