Skip to content

Add build review guidance for architecture and design-time builds - #68279

Merged
PureWeen merged 2 commits into
mainfrom
pureween-ground-build-agents
Aug 24, 2026
Merged

PureWeen merged 2 commits into
mainfrom
pureween-ground-build-agents

Conversation

@PureWeen

@PureWeen PureWeen commented Aug 7, 2026 •

Copy link
Copy Markdown
Member

Why

A focused review of #68254 found two build-system paths that were easy to miss even after extensive validation:

  • eng/build.sh detects and passes the host architecture, while bare dotnet and IDE evaluation can leave TargetArchitecture unset and reach the x64 fallback in eng/Common.props.
  • Directory.Build.props does not register RepoTasks during design-time builds. A target that invokes one of those tasks must skip the invocation whenever that registration is unavailable.

The first review missed both because every reviewer looked at roughly the same entry point and evaluation mode. These are repository-wide review hazards, not details specific to one SFX fix.

What this changes

This adds path-scoped guidance for changes under eng/**, Directory.Build.*, and repository .props and .targets files. It asks reviewers and coding agents to:

  • trace properties through wrapper scripts, direct CLI usage, and IDE evaluation;
  • map the producer, persisted state, consumer, and resulting diagnostic before proposing a fix;
  • inspect custom-task registration and import conditions, especially DesignTimeBuild;
  • validate the modes that are actually affected, including restore/no-restore transitions, source-build or CI properties, and OS/architecture/RID combinations;
  • treat different reviewers as independent evidence only when they inspect different property sources, state transitions, import modes, or platform dimensions.

A comment beside the conditional RepoTasks import also keeps the design-time registration invariant next to the code that enforces it.

Why merge this

The build behavior is unchanged. This PR makes existing repository behavior discoverable at the point where build-infrastructure changes are reviewed, so a focused validation pass is less likely to miss a different entry point or evaluation mode.

This is defense in depth, not a claim that instructions guarantee perfect reviews. Behavioral evaluation improved defective-patch blocking and evidence diversity, but exact mechanism recovery was not reliable enough to claim full coverage. The current Vally infrastructure also does not model production .github/instructions applyTo loading, so a checked-in behavior eval is intentionally left for follow-up infrastructure work.

This PR also does not change the current TargetArchitecture fallback. That needs separate compatibility research rather than being mixed into a guidance-only change.

Validation

  • Parsed the instruction frontmatter and verified the expected applyTo patterns.
  • Parsed Directory.Build.props with xmllint.
  • Ran git diff --check.
  • Verified the branch applies cleanly to current main.
  • Verified the specific architecture and RepoTasks claims against the current repository sources.

Checklist

Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 3e38d320-317f-480e-81fa-e98a8374d9de
Co-authored-by: Copilot App <[email protected]>

Copilot-Session: 3e38d320-317f-480e-81fa-e98a8374d9de
@PureWeen PureWeen changed the title Add build infrastructure agent guidance Add build review guidance for architecture and design-time builds Aug 21, 2026
@PureWeen
PureWeen marked this pull request as ready for review August 21, 2026 19:32
@PureWeen
PureWeen requested review from a team and wtgodbe as code owners August 21, 2026 19:32
Copilot AI lite review requested due to automatic review settings August 21, 2026 19:32

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

Adds build-infrastructure review guidance for architecture and design-time evaluation paths without changing build behavior.

Changes:

  • Adds scoped MSBuild review and validation guidance.
  • Documents conditional RepoTasks registration during design-time builds.
Show a summary per file
File Summary
Directory.Build.props Documents design-time RepoTasks import behavior.
.github/instructions/build.instructions.md Adds build-infrastructure review guidance.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

@PureWeen
PureWeen merged commit f5721ac into main Aug 24, 2026
27 checks passed
@PureWeen
PureWeen deleted the pureween-ground-build-agents branch August 24, 2026 16:18
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants