Skip to content

Don't update inProgress (and the PR) if the codeflow had no updates#6122

Open
dkurepa wants to merge 1 commit intodotnet:mainfrom
dkurepa:dkurepa/DontUpdateWhenNoUpdates
Open

Don't update inProgress (and the PR) if the codeflow had no updates#6122
dkurepa wants to merge 1 commit intodotnet:mainfrom
dkurepa:dkurepa/DontUpdateWhenNoUpdates

Conversation

@dkurepa
Copy link
Member

@dkurepa dkurepa commented Mar 24, 2026

@dkurepa dkurepa requested review from adamzip, Copilot and premun and removed request for Copilot March 24, 2026 14:39

result = result with
{
// For backflow, we want to always push the changes (even if only the <Source> tag changed) as it contains important information about where the flow came from
Copy link
Member

Choose a reason for hiding this comment

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

Somehow I don't understand how this explanation does not apply for forward flow too. Maybe it can be reworded to explain better why FF don't have it?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not sure too honestly. In FF, we'd consider this a meaningless change and not flow it. I'm not sure why backflows would want to treat this differently. I'd vote for removing this, pushing empty changes essentially.
@mmitche any thoughts on this? Is there any reason we'd want to update a backflow PR with a newer VMR build that doesn't actually bring anything else in (code or dependencies)

Copy link
Member

Choose a reason for hiding this comment

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

If nothing is brought in, no dependencies and no code, then all we're doing is updating the latest backflow and that is just for tracking purposes at this point. That in itself may be pretty valuable.. I think this is pretty rare though. Maybe we see this with some tooling repos?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, I think it's mostly repos like arcade and diagnostics. In that case it's probably fine to keep this. I was worried that if this was happening more often it might lead to us retriggering pipelines for no reason and just spending cores, but it sounds like it's just a rare thing.
I think the reason we don't do it for forward flows is because it'd eat up the pool fast, that's why we have the meaningless flows

Copy link
Member

Choose a reason for hiding this comment

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

My comment was rather supposed to read like:

The way it's written right now in the comment, it does not have a lot of value because it does not explain why. Forward flows also carry important information about where the flow came from.

So if there's no updates to the PR, maybe we shouldn't update it in neither direction?

Copy link
Member Author

Choose a reason for hiding this comment

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

I was gonna say that a new backflow update always brings in a new commit sha, even if there are no code contents (because other repos can have them), and that a FF would have the same sha if there are no content updates, but that's not really true is it, cloaked file changes would change the sha and there'd be no code update

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