Skip to content

[WIP] Prototype for discussion#10091

Closed
rokonec wants to merge 1 commit intomainfrom
rokonec/buildcheck-restore-nono
Closed

[WIP] Prototype for discussion#10091
rokonec wants to merge 1 commit intomainfrom
rokonec/buildcheck-restore-nono

Conversation

@rokonec
Copy link
Copy Markdown
Member

@rokonec rokonec commented Apr 30, 2024

Fixes #

Context

Changes Made

Testing

Notes

Copy link
Copy Markdown
Member

@JanKrivanek JanKrivanek left a comment

Choose a reason for hiding this comment

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

Looks good!

I need to look on #10018 and have a second look on this to form a firm opinion..

Comment thread src/MSBuild/XMake.cs
Comment on lines +1846 to +1849
if (wasBuildCheckEnabled == true)
{
buildManager.ConfigureBuildCheck(true);
}
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.

this feels that it might not need to be conditional - if the buildcheck was not enabled, then the _buildCheckManagerForEnabledState is anyways the null pattern manager - and hence setting doesn't hurt

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Correct. If we go this way, I plan to clean it a bit, so far I was mostly focusing on describing the approach

Comment on lines +18 to +19
private IBuildCheckManager _buildCheckManager;
private readonly IBuildCheckManager _buildCheckManagerForEnabledState;
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.

Btw. I definitely like this swapping approach.

I'm not 100% sure whether we want to have the infra dictate if restore is happening or have the other approach - storing the flag in BuildEvaluationStartedEventArg (as then the handling might be more unified for the replay case).
But even if we stay with BuildEvaluationStartedEventArg case - I'd like to adopt this swapping strategy

@rokonec rokonec changed the title Prototype for discussion [WIP] Prototype for discussion Apr 30, 2024
@rokonec rokonec closed this Jun 12, 2024
@ViktorHofer ViktorHofer deleted the rokonec/buildcheck-restore-nono branch December 1, 2025 16:58
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.

2 participants