Skip to content

Add rebase scenario tests#5429

Merged
premun merged 22 commits intodotnet:mainfrom
premun:prvysoky/e2e-rebase-tests
Nov 4, 2025
Merged

Add rebase scenario tests#5429
premun merged 22 commits intodotnet:mainfrom
premun:prvysoky/e2e-rebase-tests

Conversation

@premun
Copy link
Copy Markdown
Member

@premun premun commented Nov 4, 2025

Copilot AI review requested due to automatic review settings November 4, 2025 15:07
adamzip
adamzip previously approved these changes Nov 4, 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 adds two new scenario tests for codeflow rebase functionality and includes related refactoring and improvements across the codebase. The changes test forward and backward flow with rebase strategy when conflicts occur, while also making logging adjustments and cleanup.

  • Adds comprehensive scenario tests for forward/backward flow with rebase strategy and conflict resolution
  • Enables missing commit logic in PCS forward/backward flowers when rebase is enabled
  • Improves clone manager to support local VMR registration and lookup
  • Reduces logging verbosity by converting several Information logs to Debug level

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 10 comments.

Show a summary per file
File Description
ScenarioTests_CodeFlowRebase.cs Adds new scenario tests for forward/backward flow with rebase and conflict resolution
ScenarioTests_CodeFlow.cs Removes unused VirtualMonoRepo import
ScenarioTestBase.cs Adds logging, simplifies CheckoutRemoteRefAsync, removes unused methods, adds waitTime parameter
CodeFlowScenarioTestBase.cs Removes unused batchable parameter and adds standard-automerge flag
PullRequestUpdater.cs Fixes comment typo, adds whitespace, adds check result deletion logic
PcsVmrForwardFlower.cs Overrides MergeWorkBranchAsync to commit when rebase is enabled
PcsVmrBackFlower.cs Overrides MergeWorkBranchAsync to commit when rebase is enabled
VmrPatchHandler.cs Changes logging from Information to Debug level
VmrManagerBase.cs Changes commit logging from Information to Debug level
VmrCodeflower.cs Makes MergeWorkBranchAsync virtual for override support
VmrCloneManager.cs Refactors PrepareVmrAsync to support registered clone paths
CredScanSuppressionsGenerator.cs Changes logging from Information to Debug level
CloneManager.cs Makes _clones dictionary protected for subclass access
VmrOperationBase.cs Changes conflict logging from Information to Warning level
ForwardFlowOperation.cs Adds using statement, initializes VmrPath, registers VMR, uses remote URI
Comments suppressed due to low confidence (3)

test/ProductConstructionService.ScenarioTests/ScenarioTests/ScenarioTests_CodeFlowRebase.cs:338

  • Poor error handling: empty catch block.
            catch
            {
            }

test/ProductConstructionService.ScenarioTests/ScenarioTests/ScenarioTests_CodeFlowRebase.cs:94

  • Poor error handling: empty catch block.
                catch {}

test/ProductConstructionService.ScenarioTests/ScenarioTests/ScenarioTests_CodeFlowRebase.cs:246

  • Poor error handling: empty catch block.
                catch {}

Comment thread test/ProductConstructionService.ScenarioTests/ScenarioTestBase.cs
Comment thread src/Microsoft.DotNet.Darc/DarcLib/VirtualMonoRepo/VmrCloneManager.cs Outdated
adamzip
adamzip previously approved these changes Nov 4, 2025
@premun premun enabled auto-merge (squash) November 4, 2025 15:16
premun and others added 2 commits November 4, 2025 17:26
# Conflicts:
#	src/Microsoft.DotNet.Darc/DarcLib/VirtualMonoRepo/VmrCloneManager.cs
@premun premun requested a review from adamzip November 4, 2025 16:51
@premun premun merged commit 8eb68e2 into dotnet:main Nov 4, 2025
8 of 9 checks passed
@premun premun deleted the prvysoky/e2e-rebase-tests branch November 5, 2025 10:51
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