Skip to content

Publish merged comments earlier#5440

Merged
dkurepa merged 3 commits intodotnet:mainfrom
dkurepa:dkurepa/FixFFTestAgain
Nov 7, 2025
Merged

Publish merged comments earlier#5440
dkurepa merged 3 commits intodotnet:mainfrom
dkurepa:dkurepa/FixFFTestAgain

Conversation

@dkurepa
Copy link
Copy Markdown
Member

@dkurepa dkurepa commented Nov 7, 2025

Copilot AI review requested due to automatic review settings November 7, 2025 09:45
premun
premun previously approved these changes Nov 7, 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 refactors comment handling in the dependency flow system to prevent comments from being posted to incorrect pull requests. The changes ensure that comments collected during forward flow tagging are posted immediately to the correct PR and then cleared, rather than potentially appearing in subsequently created PRs.

  • Adds a Reset() method to ICommentCollector to clear collected comments
  • Updates TagForwardFlownPRs to post and reset comments immediately after tagging forward-flown PRs
  • Removes premature comment posting from CheckPullRequestAsync to avoid posting at incorrect times
  • Enables ForceUpdate in VmrCodeflower when recreating previous flows to handle conflicts

Reviewed Changes

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

File Description
src/ProductConstructionService/ProductConstructionService.DependencyFlow/PullRequestUpdater.cs Removes premature comment posting from CheckPullRequestAsync; updates TagForwardFlownPRs to accept PR URL parameter and post/reset comments immediately
src/Microsoft.DotNet.Darc/DarcLib/CommentCollector.cs Adds Reset() method to clear collected comments
src/Microsoft.DotNet.Darc/DarcLib/VirtualMonoRepo/VmrCodeflower.cs Sets ForceUpdate = true when recreating previous flows during conflict handling

premun
premun previously approved these changes Nov 7, 2025
@premun
Copy link
Copy Markdown
Member

premun commented Nov 7, 2025

I just spent 5 minutes trying to figure out how come it does not conflict with main and only now the conflict showed

@dkurepa dkurepa enabled auto-merge (squash) November 7, 2025 09:59
@dkurepa dkurepa merged commit 9db3c69 into dotnet:main Nov 7, 2025
7 of 9 checks passed
dkurepa added a commit to dkurepa/arcade-services that referenced this pull request Nov 12, 2025
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