Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve version files conflicts during forward flows #4372

Merged
merged 13 commits into from
Jan 24, 2025

Conversation

premun
Copy link
Member

@premun premun commented Jan 24, 2025

  • Extends the test to also account for conflicts in the forward flow
  • Conflict resolution will change a bit in the future but the test and most of the other changes will stay

#4345

@premun premun requested review from dkurepa and adamzip January 24, 2025 12:36
@premun premun requested a review from Copilot January 24, 2025 14:17

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comments suppressed due to low confidence (4)

src/Microsoft.DotNet.Darc/DarcLib/VirtualMonoRepo/VmrForwardFlower.cs:444

  • [nitpick] The error message 'Auto-resolving conflict in {file} using PR version' could be more descriptive. Consider specifying what 'PR version' refers to.
_logger.LogInformation("Auto-resolving conflict in {file} using PR version", filePath);

src/Microsoft.DotNet.Darc/DarcLib/VirtualMonoRepo/VmrForwardFlower.cs:465

  • The use of '..' in the line '..conflictedFiles.Where(f => f.Path.ToLowerInvariant().StartsWith(Constants.CommonScriptFilesPath + '/'))' is incorrect. It should be a single dot '.' to indicate the current directory.
..conflictedFiles.Where(f => f.Path.ToLowerInvariant().StartsWith(Constants.CommonScriptFilesPath + '/'))

test/Microsoft.DotNet.Darc.VirtualMonoRepo.E2E.Tests/VmrTwoWayCodeflowTest.cs:281

  • [nitpick] The variable name 'shaInStep6' is ambiguous. It should be renamed to 'commitShaInStep6' for better clarity.
var shaInStep6 = await GitOperations.GetRepoLastCommit(ProductRepoPath);

test/Microsoft.DotNet.Darc.VirtualMonoRepo.E2E.Tests/VmrTestsBase.cs:381

  • [nitpick] The reassignment of the 'commit' variable could be confusing. Consider renaming the reassigned variable to 'resolvedCommit'.
commit ??= await GitOperations.GetRepoLastCommit(repoPath);
@premun premun merged commit f85f739 into dotnet:main Jan 24, 2025
9 checks passed
@premun premun deleted the prvysoky/full-flow-conflicts branch January 24, 2025 15:08
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