Skip to content

Automatically submit update PRs to internal release branch - #6738

Merged
lbussell merged 18 commits into
dotnet:nightlyfrom
lbussell:update-deps-int-pr
Oct 21, 2025
Merged

lbussell merged 18 commits into
dotnet:nightlyfrom
lbussell:update-deps-int-pr

Conversation

@lbussell

@lbussell lbussell commented Oct 21, 2025 •

Copy link
Copy Markdown
Member

Fixes https://github.com/dotnet/dotnet-docker-internal/issues/6741.

Summary of changes:

  • Automatically trigger the update-dependencies-internal-official pipeline every time there is a new staged .NET version.
  • Only use service connections/managed identity for submitting PRs to Azure DevOps.
  • Both official and unofficial pipelines use pipeline resources to reference the staging pipeline, making them more similar.
  • Use the Darc backend to submit pull requests in the from-staging-pipeline command.
  • from-staging-pipeline command now has two explicit "modes" - Local and Remote.
    • Local makes changes in your working repo. This is for the local dev workflow.
    • Remote can target any branch and does not touch your local git repo. It works in a temporary git repo. It always submits a pull request. This is the same way the sync pipeline works. Example scenarios where this is useful:
      • From your local machine, run one command to submit an update PR to any internal branch without touching your local repo.
      • Use the latest code from the nightly branch to update dependencies in any other internal branch.
    • All the git functionality is encapsulated in the private GitRepoContext class so that it required minimal changes to the logic in FromStagingPipelineCommand.Execute.
  • Share some code between FromStagingPipelineCommand and SyncInternalReleaseCommand

Example pull request generated by these changes: https://dev.azure.com/dnceng/internal/_git/dotnet-dotnet-docker/pullrequest/54519

@lbussell
lbussell requested a review from a team as a code owner October 21, 2025 00:46
@lbussell
lbussell requested a review from mthalman October 21, 2025 16:00
@lbussell
lbussell enabled auto-merge (squash) October 21, 2025 16:19
@lbussell
lbussell merged commit a4ba799 into dotnet:nightly Oct 21, 2025
@lbussell
lbussell deleted the update-deps-int-pr branch October 21, 2025 17:14
lbussell added a commit to lbussell/dotnet-docker that referenced this pull request Oct 22, 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.

2 participants