Skip to content

ci: stop newer main pushes cancelling the AOT run the NuGet publish gate needs - #7519

Merged
thomhurst merged 1 commit into
mainfrom
fix/aot-push-cancel
Nov 3, 2026
Merged

thomhurst merged 1 commit into
mainfrom
fix/aot-push-cancel

Conversation

@thomhurst

@thomhurst thomhurst commented Nov 3, 2026 •

Copy link
Copy Markdown
Owner

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.yml push runs by github.ref with cancel-in-progress: true, so each merge to main cancels the AOT run for the previous commit. UploadToNuGetModule requires a passing aot.yml run on the exact commit it publishes. Every main push run of aot.yml today ended cancelled (the a828bb8 run's macOS jobs were still waiting for a runner after 80 minutes when b548be7 landed and cancelled it).

Fix

Group aot.yml push runs by github.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

  • Chores
    • Push workflow runs for different commits are now handled independently, even when those commits are on the same branch. Pull request runs continue to be grouped by pull request, and other events retain their existing grouping behavior. This keeps workflow execution organized according to the event that triggered each run.

…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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-03T18:02:00.040009Z c875fab PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Walkthrough

The AOT workflow now groups push runs by commit SHA. Pull request and other event groups keep their existing keys.

Changes: Push concurrency

Layer / File(s) Summary
Concurrency group selection
.github/workflows/aot.yml
Push runs use the commit SHA as the concurrency key. Pull requests continue to use the pull request number, and other events continue to use the run ID.

Estimated code review effort: 2 (Simple) | ~5 minutes

Change: Bug fix

Possibly related PRs

  • thomhurst/TUnit#7364: Adds an engine-tests job to aot.yml and makes publishing wait for that workflow. This change also affects how aot.yml runs for a commit being published.
Merge Risk: Minimal · up to c875f

The concurrency change meets the stated goal without introducing an identified merge-blocking risk.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main change: preventing newer main-branch pushes from cancelling the AOT run required by the NuGet publish gate.
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches
Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit checks the commit key,
Push runs group by SHA.
Pull requests keep their number,
Other runs keep their own ID.
The workflow hops along its way.

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: c987477d-3da5-4157-951f-cec74d55f56c
Commits

Reviewing files that changed from the base of the PR and between 605f33d and c875fab.

Files selected for processing: 1
  • .github/workflows/aot.yml

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Review: LGTM.

The change is correct and minimal. Grouping push runs by github.sha stops a later merge to main from cancelling the AOT run that the NuGet publish gate needs for the earlier commit. aot.yml only triggers on pushes to main, with no tag pushes. So two runs can't share a SHA group and cancel each other. PR runs still cancel superseded runs, and dispatch runs keep per-run groups.

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 cancel-in-progress and make the publish gate accept a passing AOT run on any descendant commit. That's a larger change and not needed here.

@greptile-apps

greptile-apps Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] This PR appears safe to merge.

Summary

Changes .github/workflows/aot.yml so each main push has a commit-specific concurrency group.

  • AOT runs for main commits no longer cancel each other.

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

This branch was previously deployed

1 inactive deployment
Pull Requests — c875fab2 Deployed Nov 3, 2026 by thomhurst via modularpipeline (ubuntu-latest) #20998
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.

1 participant