Skip to content

Fix backflow scenario tests#5438

Merged
premun merged 2 commits intodotnet:mainfrom
premun:prvysoky/fix-scenario-tests
Nov 7, 2025
Merged

Fix backflow scenario tests#5438
premun merged 2 commits intodotnet:mainfrom
premun:prvysoky/fix-scenario-tests

Conversation

@premun
Copy link
Copy Markdown
Member

@premun premun commented Nov 6, 2025

  • The VMR URI was set to dotnet/dotnet and never set the maestro-auth-test/vmr so it probably runs fine in PROD but tests were failing.
  • Also we had an extra recreation loop that didn't do anything.

#5362

- The VMR URI was set to dotnet/dotnet and never set the maestro-auth-test/vmr so it probably runs fine in PROD but tests were failing.
- Also we had an extra recreation loop that didn't do anything.

dotnet#5362
Copilot AI review requested due to automatic review settings November 6, 2025 13:59
@premun premun enabled auto-merge (squash) November 6, 2025 14:01
@premun premun changed the title Fix backflow tests Fix backflow scenario tests Nov 6, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 fixes off-by-one errors in the VMR codeflow logic and ensures VmrUri is properly set during VMR preparation. The changes address bugs where rewinding to previous flows would not reach the correct depth and where VmrUri could be uninitialized in certain code paths.

  • Fixed loop conditions to iterate the correct number of times when rewinding to previous flows
  • Ensured VmrUri is set during VMR preparation to prevent null/default values in downstream operations

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
src/Microsoft.DotNet.Darc/DarcLib/VirtualMonoRepo/VmrForwardFlower.cs Fixed loop condition from i < depth to i <= depth to correctly rewind to the nth previous flow
src/Microsoft.DotNet.Darc/DarcLib/VirtualMonoRepo/VmrBackflower.cs Fixed loop condition from i < depth to i <= depth to correctly rewind to the nth previous flow
src/Microsoft.DotNet.Darc/DarcLib/VirtualMonoRepo/VmrCloneManager.cs Added assignment of VmrUri to ensure it's properly initialized during VMR preparation

Comment thread src/Microsoft.DotNet.Darc/DarcLib/VirtualMonoRepo/VmrBackflower.cs Outdated
@premun premun disabled auto-merge November 6, 2025 14:35
dkurepa
dkurepa previously approved these changes Nov 6, 2025
@premun premun merged commit 0165c9a into dotnet:main Nov 7, 2025
8 of 9 checks passed
@premun premun deleted the prvysoky/fix-scenario-tests branch November 7, 2025 09:40
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