Repository navigation
Conversation
Give marker and root shim layouts narrow stale-output ownership. Reuse incremental preparation and completion, preserve platform policy, and repair replaced shim contents before skipping. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4098ff8d-0d8e-4416-8404-27b792b4d1d0
|
Azure Pipelines: Successfully started running 2 pipeline(s). 1 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Dangling links and a file occupying the expected feature-band directory can bypass pre-cleanup validation.
3 open findings
What changed in this PR
Prepares workload-marker and root-shim layouts for future incremental installer builds while retaining the existing full-layout deletion.
Changes:
- Adds owned-output discovery, validation, cleanup, repair, and completion tracking.
- Integrates incremental targets for redist and intermediate layouts.
- Adds cross-platform regression tests and ownership documentation.
| File | Description |
|---|---|
test/UnitTests.proj |
Deploys layout targets and shim inputs for tests. |
test/sdk-tasks.Tests/WorkloadMetadataLayoutTests.cs |
Tests cleanup, recovery, validation, and incrementality. |
src/Tasks/sdk-tasks/WorkloadMetadataLayout.cs |
Discovers expected and stale workload markers. |
src/Tasks/sdk-tasks/WorkloadManifestLayout.cs |
Shares feature-band validation. |
src/Tasks/sdk-tasks/sdk-tasks.InTree.targets |
Registers the new tasks. |
src/Tasks/sdk-tasks/LayoutPathValidation.cs |
Adds owned-path safety checks. |
src/Tasks/sdk-tasks/GetDnxShimLayout.cs |
Discovers and validates root shims. |
src/Layout/redist/targets/GenerateInstallerLayout.targets |
Wires incremental marker and shim layouts. |
src/Layout/AGENTS.md |
Documents layout ownership rules. |
🧠 Review effort: Balanced
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4098ff8d-0d8e-4416-8404-27b792b4d1d0
nagilson
reviewed
Oct 14, 2026
nagilson
reviewed
Oct 14, 2026
nagilson
left a comment
Member
There was a problem hiding this comment.
I'm quite unfamiliar with this area, but did some look on the implementation. Let me know what you think.
Co-authored-by: Copilot App <[email protected]> Copilot-Session: 4098ff8d-0d8e-4416-8404-27b792b4d1d0
nagilson
approved these changes
Oct 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Problem
Full installer builds currently delete and recreate the staging directory. Before we can remove that deletion, each layout target needs to clean up the old files it owns.
The workload marker and root shim targets don't do that today. Reusing a layout can leave old feature-band markers, markers after source-only mode is disabled, or launchers that no longer belong in that layout.
Changes
userlocalmarkers without deleting workload records or other metadata.dnxanddnx.cmdfiles from base and intermediate installer staging, keeping the existing platform rules.This establishes the cleanup rules needed by #55871, which will replace the broad staging-directory deletion. That deletion remains in this PR, so this is groundwork for incremental builds, not a significant full-build speedup.
Fixes: #55870