Repository navigation
Split automated dependency updates into OpenTelemetry, Azure, and other PRs - #22432
Conversation
…er PRs The update-dependencies workflow now runs one matrix job per package group, each with its own branch and PR, so a package that can't be updated yet doesn't block the others. A new script restores the $(...Version) references that dotnet-outdated inlines and moves the new versions into eng/Versions.props. Co-authored-by: Copilot App <[email protected]>
|
🚀 Dogfood this PR with:
Or
|
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
There was a problem hiding this comment.
🟡 Changes recommended
The dependency updater can retain local overrides that bypass protected version pins, skip Update references, and discard property-file upgrades, breaking intended version control and future updates.
1 open issue
What changed in this PR
Splits Aspire’s weekly dependency updates into separate PRs so a blocked package group does not hold up unrelated updates.
Changes:
- Creates OpenTelemetry, Azure, and catch-all update jobs with separate branches; only the catch-all reports a missing PR.
- Adds version-property restoration intended to preserve shared version references and respect dependency ownership.
- Adds behavioral tests for restoration and command-line execution.
| File | Description |
|---|---|
tests/Infrastructure.Tests/WorkflowScripts/UpdateDependenciesVersionPropertiesTests.cs |
Tests version transfers, protected properties, conflicts, and file rewriting. |
tests/Infrastructure.Tests/WorkflowScripts/update-dependencies-version-properties.harness.js |
Invokes the production restoration function with test inputs. |
.github/workflows/update-dependencies.yml |
Splits updates by package group and invokes restoration. |
.github/workflows/update-dependencies-version-properties.js |
Restores property references and transfers eligible versions into eng/Versions.props. |
Review effort: Balanced
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
This comment has been minimized.
This comment has been minimized.
Pin dotnet-outdated to 4.9.0, move properties it adds to Directory.Packages.props into eng/Versions.props, restore repointed and Update references, and stage the final files so a run with every update rejected doesn't leave a stale index. Co-authored-by: Copilot App <[email protected]>
Tests selector1 / 101 PR test projects · 0 PR jobs, from 3 changed files. Selected PR test projects (1 / 101)
Selected PR jobs (0)none How these were chosen — grouped by what changed📄 📄 🧪 Job reasonsnone Selection computed for commit |
|
✅ No documentation update needed. Branch: proven false positive (docs_optional-equivalent → build_or_ci_only). Triggered signals: All 3 changed files match |

Description
The weekly
Update Dependenciesworkflow opens a single PR with every external package update. One package that can't be updated yet (for example, because it isn't mirrored to the internal feeds) blocks all the others, so the PR tends to sit open for months (#20281 has been open since September).This change splits the workflow into one PR per package group:
dotnet-outdatedfilters--include OpenTelemetryupdate-dependencies-opentelemetry--include Azure --exclude OpenTelemetryupdate-dependencies-azure--exclude OpenTelemetry --exclude Azureupdate-dependencies(the existing branch)The filters give every package exactly one group:
Azure.Monitor.OpenTelemetry.Exportergoes with OpenTelemetry. Only the catch-all job opens an issue when no PR is created, because the smaller groups often have nothing to update.It also stops
dotnet-outdatedfrom bypassing the$(...Version)properties ineng/Versions.props, which the project templates, Blazor scripts and MAUI playground read. Depending on the layout, dotnet-outdated 4.9.0 (now pinned) either inlines the new version intoDirectory.Packages.props, or adds an overriding property there and can repoint a reference to a different property. A new step runs the file-based C# app.github/workflows/update-dependencies-version-properties.cs. It restores every original reference (IncludeandUpdateelements), removes the added overriding properties, and moves the new version intoeng/Versions.propsfor properties used only by the external dependenciesItemGroup. Then it stages both files, so a run where every update is rejected leaves no stale index behind. Other properties keep their version, with a workflow warning:eng/Version.Details.xmlItemGroupeng/Versions.propsValidation:
dotnet test --project tests/Infrastructure.Tests/Infrastructure.Tests.csproj --no-launch-profile -- --filter-class "*.UpdateDependenciesVersionPropertiesTests" --filter-not-trait "quarantined=true" --filter-not-trait "outerloop=true": passed (4 tests).actionlint -shellcheck= -pyflakes= .github/workflows/update-dependencies.yml(v1.7.12): passed.Directory.Packages.props,eng/Versions.propsandeng/Version.Details.xmlwith simulated inlined versions. The OpenTelemetry and Azure Monitor properties were updated ineng/Versions.props. The Darc-managedMicrosoft.DotNet.Build.Tasks.Archives, theSystemTextJsonNet10Versionpin andMicrosoftSignedWixVersionwere restored unchanged.eng/Versions.props;Directory.Packages.propswas unchanged.workflow_dispatchafter merge.Fixes # (issue)
Checklist
<remarks />and<code />elements on your triple slash comments?