Add stage container label to update-dependencies-internal pipeline runs#7002
Merged
Conversation
mthalman
approved these changes
Jan 21, 2026
Member
Author
|
Test run of update-deps-internal-unofficial: build#2884441 |
lbussell
added a commit
to lbussell/dotnet-docker
that referenced
this pull request
Feb 6, 2026
lbussell
added a commit
that referenced
this pull request
Feb 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Working towards #6915.
Adds a label like
Container - stage-1234567to update-dependencies-internal pipeline runs.AI generated description
This pull request introduces significant improvements to dependency injection, environment abstraction, and Azure Pipelines integration within the
eng/update-dependenciestooling. The changes refactor several services to use interfaces and dependency injection, add new abstractions for environment and build labeling, and improve testability and maintainability by removing direct environment variable access. Additionally, new extension methods are introduced for streamlined service registration.Dependency Injection and Service Abstractions
AzdoAuthProvider,AzdoHttpClient, andPipelineArtifactProviderto use interfaces (IAzdoAuthProvider,IPipelineArtifactProvider), enabling easier mocking and testing. Extension methods for registering these services withIServiceCollectionwere added. [1] [2] [3] [4] [5] [6] [7]IEnvironmentServiceand its implementation to encapsulate environment variable access, replacing directEnvironment.GetEnvironmentVariablecalls throughout the codebase. [1] [2]Azure Pipelines Integration and Build Labeling
IBuildLabelServiceand its implementation to allow tagging Azure Pipelines builds programmatically, with extension methods for DI registration. [1] [2]IEnvironmentService. [1] [2] [3] [4] [5]Code Cleanup and Documentation
AzurePipelinesHelperclass, consolidating environment logic intoEnvironmentService..github/instructions/csharp.instructions.mdto discourage comments like// Arrange,// Act, or// Assertin unit tests.Service Registration and Composition
Program.csby using new extension methods for environment, build label, and artifact provider services.These changes collectively modernize the codebase, improve testability, and make Azure Pipelines integration more robust and maintainable.