Repository navigation
ci: stop newer main pushes cancelling the AOT run the NuGet publish gate needs - #7519
Conversation
…ate needs d87516c grouped aot.yml push runs by ref with cancel-in-progress, so every merge to main cancels the in-flight AOT run. UploadToNuGetModule requires a passing aot.yml run on the exact commit it publishes, so a publish of any commit that was followed by another merge before AOT finished fails closed. Every main push run on 2026-11-03 was cancelled this way, which blocked the release of a828bb8. Group push runs by commit instead; PR runs still cancel superseded ones.
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Review: LGTM. The change is correct and minimal. Grouping push runs by The trade-off is that rapid merges now queue one AOT run per commit, including macOS. The PR description already says so. If runner cost becomes a problem later, you could keep |
[Medium impact] This PR appears safe to merge. SummaryChanges
Acknowledged trade-off: thomhurst explicitly accepts queuing one AOT run per commit, including macOS, instead of collapsing runs. Reviews (1) · Last reviewed commit: "ci: stop newer main pushes cancelling th..." · Reviewed by Greptile |
Problem
NuGet publish fails with
Refusing to publish to NuGet: no aot.yml run passed for <sha> ... (cancelled)(e.g. run 41662470681).d87516c grouped
aot.ymlpush runs bygithub.refwithcancel-in-progress: true, so each merge to main cancels the AOT run for the previous commit.UploadToNuGetModulerequires a passingaot.ymlrun on the exact commit it publishes. Every main push run ofaot.ymltoday endedcancelled(the a828bb8 run's macOS jobs were still waiting for a runner after 80 minutes when b548be7 landed and cancelled it).Fix
Group
aot.ymlpush runs bygithub.sha, so each main commit's run is allowed to finish. PR runs still cancel superseded runs, and dispatch runs keep per-run groups.Trade-off: rapid merges now queue one AOT run per commit (including macOS) instead of collapsing them.
Summary by CodeRabbit