Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Handle FF submodule conflicts - #6527

#6527
Open
dkurepa wants to merge 1 commit into
dotnet:maindotnet/arcade-services:mainfrom
dkurepa:dkurepa/SubmoduleFFChangedkurepa/arcade-services:dkurepa/SubmoduleFFChangeCopy head branch name to clipboard
Open

Handle FF submodule conflicts#6527
dkurepa wants to merge 1 commit into
dotnet:maindotnet/arcade-services:mainfrom
dkurepa:dkurepa/SubmoduleFFChangedkurepa/arcade-services:dkurepa/SubmoduleFFChangeCopy head branch name to clipboard

Conversation

@dkurepa

@dkurepa dkurepa commented Jul 28, 2026

Copy link
Copy Markdown
Member

Copilot AI review requested due to automatic review settings July 28, 2026 15:59

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

This PR updates VMR forward-flow conflict handling to detect and surface divergent submodule pointer changes (repo bump vs. independent VMR reset) instead of auto-resolving source-manifest.json and silently discarding one side’s change, per #6444. It also refactors and expands the codeflow test coverage around submodule scenarios.

Changes:

  • Add logic in ForwardFlowConflictResolver to detect divergent submodule changes via merge index stages and leave source-manifest.json conflicted while emitting a user-facing remediation comment.
  • Move existing backflow submodule tests out of TwoWayCodeflowTests into a dedicated SubmoduleCodeflowTests fixture and add new forward-flow test coverage for same-direction and opposite-direction flows.
  • Minor cleanup in TwoWayCodeflowTests (removal of the relocated submodule tests).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
test/Darc/Microsoft.DotNet.DarcLib.Codeflow.Tests/TwoWayCodeflowTests.cs Removes submodule-specific tests that are now hosted in a dedicated fixture.
test/Darc/Microsoft.DotNet.DarcLib.Codeflow.Tests/SubmoduleCodeflowTests.cs Adds a focused test fixture for submodule backflow behavior and new forward-flow divergence scenarios.
src/Microsoft.DotNet.Darc/DarcLib/VirtualMonoRepo/ForwardFlowConflictResolver.cs Detects divergent submodule changes during forward flow and surfaces them as unresolved conflicts with a remediation comment.

Comment on lines +176 to +179
There was a conflict in the submodule flow that needs to be resolved manually. The submodule was
bumped in the repository while it was independently reset in the VMR, so the correct commit for the
submodule cannot be determined automatically. Please choose the correct submodule commit and run
`darc vmr reset-submodule <sha>` to make sure the submodule ends up in the desired state in the VMR.
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.