Skip to content

ci: build every pull request, so a stacked PR is tested while stacked - #203

Merged
CaffeinatedCoder merged 2 commits into
mainfrom
ci/stacked-pr-runs
Oct 18, 2026
Merged

CaffeinatedCoder merged 2 commits into
mainfrom
ci/stacked-pr-runs

Conversation

@CaffeinatedCoder

Copy link
Copy Markdown
Owner

Closes #146

Problem

.github/workflows/dotnet.yml ran on pull_request only into main, release/** and net11. A stacked PR (opened against another open PR's branch) got no .NET run while it was stacked. After it was retargeted it sat with only PR hygiene and dependency submission green until someone pushed to it.

Change

  • The pull_request trigger loses its branches filter. Every PR is built against its own base; push keeps its filter.
  • edited is not added to catch the retarget. A body edit would start a run whose skipped jobs pass the required checks, and would cancel a real run in the same concurrency group. It isn't needed either: main's protection requires Test, Integration, Pack and Consumer smoke test on an up-to-date branch (strict: true, checked through the API). A PR whose base was merged into main is behind main, so updating it pushes a commit, and that starts a run. The reason is in the workflow's header comment.
  • The header comment now states the 10.x additions window from docs: 10.x takes additions for six months after v11.0.0 #180.
  • ReleaseWiringConventionTests.PullRequests_AreBuiltWhateverTheirBase holds both halves.

Tests

  • Conventions suite: 325 passed.
  • Proved by seeding: restoring branches: [ "main" ] fails the new test, and adding types: [ …, edited ] fails it with the edited message.
  • The stacked case from the issue's test plan is verified live on a throwaway PR stacked on this branch (result in a comment below).

🤖 Generated with Claude Code

The .NET workflow's pull_request trigger filtered on main, release/**
and net11, so a PR opened against another PR's branch got no run until
it was retargeted and updated. The filter goes; push keeps its own.

`edited` is deliberately not added for the retarget: a body edit would
start a run whose skipped jobs pass the required checks and cancel a
real run in the same concurrency group. main's protection requires the
checks on an up-to-date branch, so a retargeted PR is updated, and that
push starts a run. A convention test holds both halves.

Also brings the header comment in line with the 10.x additions window
(#180).

Closes #146

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@CaffeinatedCoder CaffeinatedCoder added this to the 10.0.0 milestone Oct 18, 2026
@CaffeinatedCoder CaffeinatedCoder added github_actions Pull requests that update GitHub Actions code chore Build, CI, packaging, refactoring with no behaviour change area/release Versioning, changelogs, release wiring labels Oct 18, 2026
@CaffeinatedCoder

Copy link
Copy Markdown
Owner Author

Verified live: throwaway draft PR #204, opened against ci/stacked-pr-runs (a stacked base, not main), started Test (ubuntu-latest), Integration (live PostgreSQL) and Consumer smoke test within a minute. Before this change it got none. #204 is closed, its branch deleted and its runs cancelled.

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

Labels

area/release Versioning, changelogs, release wiring chore Build, CI, packaging, refactoring with no behaviour change github_actions Pull requests that update GitHub Actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: a stacked PR retargeted to main gets no .NET run

1 participant