Skip to content

Mirror ProjectData 265321fe: reader, generator, and build-task projects - #85851

Open
genlu wants to merge 2 commits into
dotnet:mainfrom
genlu:dev/gel/mirror-projectdata
Open

genlu wants to merge 2 commits into
dotnet:mainfrom
genlu:dev/gel/mirror-projectdata

Conversation

@genlu

@genlu genlu commented Sep 30, 2026 •

Copy link
Copy Markdown
Member

This is 100% AI generated

Why

Roslyn should consume the latest reviewed ProjectData reader, generator, and build-task state from vs-green without forking shared behavior.

What

  • Plan 0 addition(s), 11 update(s), and 0 deletion(s) across the 6 projects; 56 path(s) are already equivalent.
  • Preserve Roslyn-owned project/source-build/signing/IVT/solution wiring and xUnit v2 adapters.
  • Add the two Tasks projects with Roslyn-owned project, source-build, signing, IVT, test-runner, xUnit v2, and solution wiring.

Provenance

  • Previous completed vs-green mirror: 21b9e352bb96cd02ed06276d05e53727a1c18143
  • Current vs-green source: 265321feab881cd9c5ef75ccbeda9a8a42692688
  • Roslyn base: 8bd473fe7df62aaf8117a37a162c1fb4ee398ba5

Validation

  • Audit report: 0 unclassified path(s), 0 integration requirement(s), 0 other blocker(s).
  • Exact candidate hashes and the 6 project builds/tests will be verified before publication.
Microsoft Reviewers: Open in CodeFlow

…ects

Why:
Roslyn should consume the reviewed authoritative reader, generator, and build-task sources without maintaining a fork.

What:
- Apply 0 additions, 11 updates, and 0 deletions across the 6 projects.

Mirror provenance:
- Previous source: 21b9e352bb96cd02ed06276d05e53727a1c18143
- Current source: 265321feab881cd9c5ef75ccbeda9a8a42692688

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI balanced review requested due to automatic review settings September 30, 2026 19:04
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

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.

Copilot review overview

🟡 Changes recommended

Attempt IDs can escape the cleanup root, and metadata-different duplicates are incorrectly treated as harmless.

Review effort: Balanced
Findings: 1 High severity · 1 Medium severity

Open (2)
What changed in this PR

Mirrors updated ProjectData build-task behavior, including sidecar slice isolation, diagnostic handling, and generated source inclusion.

Changes:

  • Adds build-attempt-scoped slice discovery and merging.
  • Improves diagnostic classification and deduplication.
  • Expands task and targets regression coverage.

Two blocking issues were identified: unsafe attempt-ID path construction and suppression of actionable duplicate-metadata warnings.

File Description
WriteProjectDataSliceTask.cs Demotes duplicate-item warnings.
WriteProjectDataBuildReceiptTask.cs Adds project identity task.
ProjectDataWriter.cs Hardens source-argument detection.
ProjectDataMerger.cs Selects preferred and fallback slices.
ProjectDataBuildCompletionLogger.cs Deduplicates and classifies diagnostics.
MergeProjectDataSlicesTask.cs Discovers fallback slices.
Microsoft.NET.ProjectData.targets Adds sidecar integration and attempt isolation.
TaskExecutionTests.cs Tests logging and diagnostic behavior.
TargetsFileSmokeTests.cs Tests targets integration scenarios.
ProjectDataWriterTests.cs Tests invalid path characters.
ProjectDataMergerTests.cs Tests fallback-slice selection.

<_ProjectDataOuterBuildActive>true</_ProjectDataOuterBuildActive>
<!-- DispatchToInnerBuilds reads $(InnerTargets) and forwards it to each inner build. -->
<InnerTargets Condition="'$(InnerTargets)' == ''">$(_ProjectDataBuildInnerTargets)</InnerTargets>
<_ProjectDataBuildAttemptSliceRoot Condition="'$(_ProjectDataBuildAttemptProjectId)' != ''">$(BaseIntermediateOutputPath)$(Configuration)/.csdevkit/projectdata-attempts/$(ProjectDataBuildReceiptAttemptId)/$(_ProjectDataBuildAttemptProjectId)</_ProjectDataBuildAttemptSliceRoot>
Comment on lines +231 to +235
// The writer deterministically keeps one equivalent item and still produces a valid
// cache. Keep the normalization in the binlog for product diagnosis, but do not emit
// an MSBuild warning: customers cannot act on it and retrying ProjectDataBuild cannot
// change the evaluated duplicate.
this.Log.LogMessage(
Copilot AI balanced review requested due to automatic review settings October 1, 2026 23:52

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.

Copilot review overview

🟡 Changes recommended

Two unresolved correctness findings remain concerning path traversal during cleanup and demotion of non-equivalent duplicate-item diagnostics.

Review effort: Balanced
Findings: 1 High severity · 1 Medium severity

Open (2)

This branch has not been deployed

No deployments
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