Skip to content

Commit 7c58df2

Browse files
authored
[Rollout] Production rollout 2025-04-29 (#4766)
#4765
2 parents 91c1cd7 + 5df4751 commit 7c58df2

File tree

4 files changed

+18
-10
lines changed

4 files changed

+18
-10
lines changed

src/Microsoft.DotNet.Darc/DarcLib/VirtualMonoRepo/VersionFileCodeFlowUpdater.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ private async Task<List<DependencyUpdate>> BackflowDependenciesAndToolset(
580580
await targetRepo.StageAsync(["."], cancellationToken);
581581

582582
await targetRepo.CommitAsync(
583-
"Update dependencies from " + build.GetRepository(),
583+
"Update dependencies from " + build.GetRepository() + " build " + build.Id,
584584
allowEmpty: false,
585585
cancellationToken: cancellationToken);
586586

src/ProductConstructionService/ProductConstructionService.DependencyFlow/PcsVmrBackFlower.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public async Task<CodeFlowResult> FlowBackAsync(
7979

8080
Codeflow lastFlow = await GetLastFlowAsync(mapping, targetRepo, currentIsBackflow: true);
8181

82-
return await FlowBackAsync(
82+
var result = await FlowBackAsync(
8383
mapping,
8484
targetRepo,
8585
lastFlow,
@@ -90,6 +90,14 @@ public async Task<CodeFlowResult> FlowBackAsync(
9090
discardPatches: true,
9191
headBranchExisted,
9292
cancellationToken);
93+
94+
// TODO: https://github.com/dotnet/arcade-services/issues/4763
95+
// We also return true when headBranchExisted so that we always flow even the <Source> tag change in an already existing PR
96+
// This is a workaround and will be fixed later properly
97+
return result with
98+
{
99+
HadUpdates = result.HadUpdates || headBranchExisted
100+
};
93101
}
94102

95103
private async Task<(bool, SourceMapping, ILocalGitRepo)> PrepareVmrAndRepo(

src/ProductConstructionService/ProductConstructionService.DependencyFlow/PullRequestBuilder.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ public string GenerateCodeFlowPRDescription(
242242
return CompressRepeatedLinksInDescription(desc);
243243
}
244244

245-
private string GenerateCodeFlowPRDescriptionInternal(
245+
private static string GenerateCodeFlowPRDescriptionInternal(
246246
SubscriptionUpdateWorkItem update,
247247
BuildDTO build,
248248
string previousSourceCommit,
@@ -282,7 +282,7 @@ This pull request brings the following source code changes
282282
}
283283
}
284284

285-
private String GenerateCodeFlowDescriptionForSubscription(
285+
private static string GenerateCodeFlowDescriptionForSubscription(
286286
Guid subscriptionId,
287287
string previousSourceCommit,
288288
BuildDTO build,
@@ -301,7 +301,7 @@ private String GenerateCodeFlowDescriptionForSubscription(
301301
- **Subscription**: {GetSubscriptionLink(subscriptionId)}
302302
- **Build**: [{build.AzureDevOpsBuildNumber}]({build.GetBuildLink()})
303303
- **Date Produced**: {build.DateProduced.ToUniversalTime():MMMM d, yyyy h:mm:ss tt UTC}
304-
- **Source Diff**: {sourceDiffText}
304+
- **Commit Diff**: {sourceDiffText}
305305
- **Commit**: [{build.Commit}]({build.GetCommitLink()})
306306
- **Branch**: {build.GetBranch()}
307307
{dependencyUpdateBlock}
@@ -419,11 +419,11 @@ private static string CreateSourceDiffLink(BuildDTO build, string previousSource
419419
return CommitDiffNotAvailableMsg;
420420
}
421421

422-
string sourceDiffText = $"{Commit.GetShortSha(previousSourceCommit)}..{Commit.GetShortSha(build.Commit)}";
422+
string sourceDiffText = $"{Commit.GetShortSha(previousSourceCommit)}...{Commit.GetShortSha(build.Commit)}";
423423

424424
if (!string.IsNullOrEmpty(build.GitHubRepository))
425425
{
426-
return $"[{sourceDiffText}]({build.GitHubRepository}/compare/{previousSourceCommit}..{build.Commit})";
426+
return $"[{sourceDiffText}]({build.GitHubRepository}/compare/{previousSourceCommit}...{build.Commit})";
427427
}
428428
else if (!string.IsNullOrEmpty(build.AzureDevOpsRepository))
429429
{

test/ProductConstructionService.DependencyFlow.Tests/PullRequestBuilderTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ This pull request brings the following source code changes
155155
- **Subscription**: [{subscriptionGuid}](https://maestro.dot.net/subscriptions?search={subscriptionGuid})
156156
- **Build**: [{build.AzureDevOpsBuildNumber}](https://dev.azure.com/{build.AzureDevOpsAccount}/{build.AzureDevOpsProject}/_build/results?buildId={build.AzureDevOpsBuildId})
157157
- **Date Produced**: {build.DateProduced.ToUniversalTime():MMMM d, yyyy h:mm:ss tt UTC}
158-
- **Source Diff**: [{shortPreviousCommitSha}..{shortCommitSha}]({build.GitHubRepository}/compare/{mockPreviousCommitSha}..{commitSha})
158+
- **Commit Diff**: [{shortPreviousCommitSha}...{shortCommitSha}]({build.GitHubRepository}/compare/{mockPreviousCommitSha}...{commitSha})
159159
- **Commit**: [{commitSha}]({build.GitHubRepository}/commit/{commitSha})
160160
- **Branch**: main
161161
@@ -235,7 +235,7 @@ This pull request brings the following source code changes
235235
- **Subscription**: [{subscriptionGuid}](https://maestro.dot.net/subscriptions?search={subscriptionGuid})
236236
- **Build**: [{build1.AzureDevOpsBuildNumber}](https://dev.azure.com/{build1.AzureDevOpsAccount}/{build1.AzureDevOpsProject}/_build/results?buildId={build1.AzureDevOpsBuildId})
237237
- **Date Produced**: {build1.DateProduced.ToUniversalTime():MMMM d, yyyy h:mm:ss tt UTC}
238-
- **Source Diff**: [{shortPreviousCommitSha}..{shortCommitSha}]({build1.GitHubRepository}/compare/{previousCommitSha}..{commitSha})
238+
- **Commit Diff**: [{shortPreviousCommitSha}...{shortCommitSha}]({build1.GitHubRepository}/compare/{previousCommitSha}...{commitSha})
239239
- **Commit**: [{commitSha}]({build1.GitHubRepository}/commit/{commitSha})
240240
- **Branch**: main
241241
@@ -247,7 +247,7 @@ This pull request brings the following source code changes
247247
- **Subscription**: [{subscriptionGuid2}](https://maestro.dot.net/subscriptions?search={subscriptionGuid2})
248248
- **Build**: [{build2.AzureDevOpsBuildNumber}](https://dev.azure.com/{build2.AzureDevOpsAccount}/{build2.AzureDevOpsProject}/_build/results?buildId={build2.AzureDevOpsBuildId})
249249
- **Date Produced**: {build2.DateProduced.ToUniversalTime():MMMM d, yyyy h:mm:ss tt UTC}
250-
- **Source Diff**: [{shortPreviousCommitSha2}..{shortCommitSha2}]({build2.GitHubRepository}/compare/{previousCommitSha2}..{commitSha2})
250+
- **Commit Diff**: [{shortPreviousCommitSha2}...{shortCommitSha2}]({build2.GitHubRepository}/compare/{previousCommitSha2}...{commitSha2})
251251
- **Commit**: [{commitSha2}]({build2.GitHubRepository}/commit/{commitSha2})
252252
- **Branch**: main
253253

0 commit comments

Comments
 (0)