Skip to content

Ensure all evaluation data are in binlogs from file-based apps #49841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jjonescz
Copy link
Member

@jjonescz jjonescz commented Jul 17, 2025

Better fix than #49588.
Currently only restore evaluation data are in the binlogs, not build evaluation data - this PR fixes that.

@jjonescz jjonescz added the Area-run-file Items related to the "dotnet run <file>" effort label Jul 17, 2025
@jjonescz jjonescz force-pushed the sprint-binlog-eval-2 branch from 662e468 to a13354b Compare July 17, 2025 18:04
@jjonescz jjonescz marked this pull request as ready for review July 17, 2025 18:23
@Copilot Copilot AI review requested due to automatic review settings July 17, 2025 18:23
Copy link
Contributor

@Copilot 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 ensures that both restore and build evaluation data are properly captured in binary logs for file-based applications. Previously, only restore evaluation data was being logged to binlogs, missing build evaluation data.

  • Restructures project creation to occur before BeginBuild() is called to ensure evaluation data is captured
  • Updates test assertions to verify exactly 2 evaluation events (restore + build) instead of just checking for existence
  • Removes conditional BeginBuild() calls and consolidates to a single call after project creation

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/Cli/dotnet/Commands/Run/VirtualProjectBuildingCommand.cs Restructures project creation and build initialization to ensure evaluation data is captured in binlogs
test/dotnet.Tests/CommandTests/Run/RunFileTests.cs Updates test to verify exactly 2 evaluation events are logged

@jjonescz jjonescz requested a review from a team July 17, 2025 18:24
@jjonescz jjonescz marked this pull request as draft July 18, 2025 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-run-file Items related to the "dotnet run <file>" effort
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants