Skip to content

Remove duplicate "See log" output on build failure - #17096

Merged
ViktorHofer merged 1 commit into
dotnet:mainfrom
ViktorHofer:ViktorHofer/remove-duplicate-see-log
Jul 10, 2026
Merged

ViktorHofer merged 1 commit into
dotnet:mainfrom
ViktorHofer:ViktorHofer/remove-duplicate-see-log

Conversation

@ViktorHofer

Copy link
Copy Markdown
Member

Summary

Removes the See log: <path> line that tools.ps1 prints from the MSBuild failure handler, along with the now-unused GetMSBuildBinaryLogCommandLineArgument helper (its only caller).

Motivation

MSBuild now natively prints the binary log path when the build finishes, e.g.:

BinaryLogger wrote to: C:\...\artifacts\log\Debug\Build.binlog

Time Elapsed 00:02:06.14
Build failed with exit code 1. Check errors above.
See log: C:\...\artifacts\log\Debug\Build.binlog   <-- duplicate, emitted by tools.ps1
Killing running build processes...

The See log: line printed by tools.ps1 duplicates MSBuild's own BinaryLogger wrote to: output, so it is redundant. Removing it (and the helper that only existed to support it) drops the duplication.

Notes

  • PowerShell-only: tools.sh has no equivalent See log line, so no change is needed there.
  • GetMSBuildBinaryLogCommandLineArgument had no other callers.

MSBuild now natively prints the binary log path when the build finishes, e.g.:

    BinaryLogger wrote to: .../artifacts/log/Debug/Build.binlog

so the "See log: <path>" line printed by the MSBuild failure handler in
tools.ps1 is redundant and duplicates that output. Remove it along with the
now-unused GetMSBuildBinaryLogCommandLineArgument helper (its only caller).

Co-authored-by: Copilot <[email protected]>
Copilot-Session: 0ba1f12e-c9d7-4f5e-b31c-911fc21be955
Copilot AI review requested due to automatic review settings July 10, 2026 14:06

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.

Pull request overview

This PR reduces redundant build-failure console output in Arcade’s shared PowerShell tooling by removing the extra See log: <path> line printed on MSBuild failure, relying on MSBuild’s own binlog-path output instead. It also deletes the now-unused helper that parsed /bl: and /binaryLogger: arguments.

Changes:

  • Remove duplicate See log: ... output from the MSBuild failure path in eng/common/tools.ps1.
  • Remove the unused GetMSBuildBinaryLogCommandLineArgument helper (no remaining callers).
Show a summary per file
File Description
eng/common/tools.ps1 Removes redundant binlog “See log” printing and deletes the unused argument-parsing helper.

Copilot's findings

Tip

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

  • Files reviewed: 1/1 changed files
  • Comments generated: 0

@ViktorHofer
ViktorHofer requested a review from a team July 10, 2026 14:08
@ViktorHofer
ViktorHofer enabled auto-merge (squash) July 10, 2026 14:20
@ViktorHofer
ViktorHofer merged commit aadc7bf into dotnet:main Jul 10, 2026
10 checks passed
@ViktorHofer
ViktorHofer deleted the ViktorHofer/remove-duplicate-see-log branch July 10, 2026 15:52
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 13, 2026
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