Skip to content

Enable binlog capture for BuildWithComponents31 test#54863

Open
MichaelSimons wants to merge 1 commit into
mainfrom
michaelsimons/enable-binlog-rz10007-test
Open

Enable binlog capture for BuildWithComponents31 test#54863
MichaelSimons wants to merge 1 commit into
mainfrom
michaelsimons/enable-binlog-rz10007-test

Conversation

@MichaelSimons

@MichaelSimons MichaelSimons commented Jun 18, 2026

Copy link
Copy Markdown
Member

Summary

Add diagnostic information for an intermittently failing test by switching from build.Execute() to ExecuteCommand(build), which automatically captures a binlog. Set WithWorkingDirectory to the test asset's sandbox directory so the binlog is placed there rather than the shared test runner's current working directory.

Context

This test is intermittently failing in CI on macOS arm64 with:

NavMenu.razor(1,5): error RZ10007: The attribute 'class' is used two or more times for this element

Related to #54826

Copilot AI review requested due to automatic review settings June 18, 2026 13:06
@MichaelSimons MichaelSimons requested a review from a team as a code owner June 18, 2026 13:06
@MichaelSimons MichaelSimons requested a review from a team June 18, 2026 13:08

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 updates a Razor integration test to run MSBuild via the AspNetSdkTest.ExecuteCommand() helper so MSBuild binlogs are captured automatically, improving diagnosability of intermittent CI failures related to legacy Razor compilation.

Changes:

  • Switch BuildWithComponents31IntegrationTest from direct BuildCommand.Execute() to ExecuteCommand(build) to enable automatic /bl: binlog capture.

Comment on lines 16 to +17
var build = new BuildCommand(projectDirectory);
build.Execute().Should().Pass();
ExecuteCommand(build).Should().Pass();
@MichaelSimons MichaelSimons force-pushed the michaelsimons/enable-binlog-rz10007-test branch from 3f49ddf to c7522e7 Compare June 18, 2026 13:14
Use ExecuteCommand() instead of direct Execute() so the base class
adds /bl:msbuild0.binlog automatically. This will provide diagnostic
data when the intermittent RZ10007 false positive occurs in CI.

Relates to #54826

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@MichaelSimons MichaelSimons force-pushed the michaelsimons/enable-binlog-rz10007-test branch from c7522e7 to d045afd Compare June 18, 2026 18:06

@davidwengier davidwengier left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approval does not imply acceptance of ownership of any of this code 😛

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