Skip to content

[Infra] Wait for NuGet packages to be published during release process#7163

Draft
martincostello wants to merge 2 commits into
open-telemetry:mainfrom
martincostello:wait-for-nuget-packages-to-be-published
Draft

[Infra] Wait for NuGet packages to be published during release process#7163
martincostello wants to merge 2 commits into
open-telemetry:mainfrom
martincostello:wait-for-nuget-packages-to-be-published

Conversation

@martincostello

@martincostello martincostello commented Apr 24, 2026

Copy link
Copy Markdown
Member

Changes

This is more of an RFC for now before I'd refactor more of the release process to leverage this fully.

In 2024 I wrote a .NET global tool that waits until one or more NuGet package has been fully published to NuGet.org for release automation. The UX is something like this.

I thought it would be a good idea to use it here to smooth out the release process.

At the moment, the PR to update the versions (e.g. #7125) is opened ~immediately after the release is published from a PR comment (e.g. #7123).

This PR then fails, and needs to be manually re-run once all the relevant packages are indexed and downloadable from NuGet.org.

Instead, if we waited for the NuGet packages to be available and then opened the PR, we'd waste CI resource on doomed-to-fail builds.

For now to illustrate the idea, this PR adds a workflow that waits for all the NuGet packages associated with a release to be published to NuGet.org and then posts a comment on the release PR once they are.

If people are happy, I can do further refactoring to change the workflow to:

  • publish release
  • post comment that the packages were uploaded
  • wait for packages to be published (which can fail and at worst case just introduce a fixed delay)
  • open the PR
  • post the "done" comment

Merge requirement checklist

  • CONTRIBUTING guidelines followed (license requirements, nullable enabled, static analysis, etc.)
  • Unit tests added/updated
  • Appropriate CHANGELOG.md files updated for non-trivial changes
  • Changes in public API reviewed (if applicable)

Add a workflow that waits for all the NuGet packages associated with a release to be published to NuGet.org and then posts a comment on the release PR once they are.
@github-actions github-actions Bot added the infra Infra work - CI/CD, code coverage, linters label Apr 24, 2026
@codecov

codecov Bot commented Apr 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.97%. Comparing base (2e084dc) to head (064b2da).
✅ All tests successful. No failed tests found.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #7163      +/-   ##
==========================================
- Coverage   90.03%   89.97%   -0.06%     
==========================================
  Files         276      276              
  Lines       14218    14218              
==========================================
- Hits        12801    12793       -8     
- Misses       1417     1425       +8     
Flag Coverage Δ
unittests-Project-Experimental 89.91% <ø> (+0.01%) ⬆️
unittests-Project-Stable 89.68% <ø> (-0.28%) ⬇️
unittests-Solution 89.88% <ø> (-0.03%) ⬇️
unittests-UnstableCoreLibraries-Experimental 48.25% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
see 5 files with indirect coverage changes

@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown
Contributor

This PR was marked stale due to lack of activity and will be closed in 7 days. Commenting or pushing will instruct the bot to automatically remove the label. This bot runs once per day.

@github-actions github-actions Bot added the Stale Issues and pull requests which have been flagged for closing due to inactivity label May 2, 2026
@martincostello martincostello added keep-open Prevents issues and pull requests being closed as stale and removed Stale Issues and pull requests which have been flagged for closing due to inactivity labels May 2, 2026

jobs:

wait-for-publish:

"published=true" >> ${env:GITHUB_OUTPUT}

notify-release:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra Infra work - CI/CD, code coverage, linters keep-open Prevents issues and pull requests being closed as stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants