Skip to content

Stop edit-triggered runs reporting a skipped internal-build - #8171

Merged
jp4a50 merged 1 commit into
mainfrom
jp4a50/internal-build-edit-check
Nov 3, 2026
Merged

jp4a50 merged 1 commit into
mainfrom
jp4a50/internal-build-edit-check

Conversation

@jp4a50

@jp4a50 jp4a50 commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

internal-build is a required check, and GitHub counts a skipped required check as passing. Since the workflow started running on edited events, editing a PR's title or description created a skipped internal-build check run on the same commit as a build still in progress. On #8034 such a run appeared while the build was running, the PR was merged, and the build then failed.

Name the job internal-build only for runs that check the PR, and give it a different id so a skipped run can't fall back to that name. Filter stacked PRs with branches: [main] rather than a job condition, so they get no check instead of a skipped one. Fold the paths filter into the build job, so docs-only PRs report success and a failing filter fails the check rather than skipping it.

`internal-build` is a required check, and GitHub counts a skipped
required check as passing. Since the workflow started running on
`edited` events, editing a PR's title or description created a
skipped `internal-build` check run on the same commit as a build
still in progress. On #8034 such a run appeared while the build was
running, the PR was merged, and the build then failed.

Name the job `internal-build` only for runs that check the PR, and
give it a different id so a skipped run can't fall back to that
name. Filter stacked PRs with `branches: [main]` rather than a job
condition, so they get no check instead of a skipped one. Fold the
paths filter into the build job, so docs-only PRs report success
and a failing filter fails the check rather than skipping it.
@jp4a50
jp4a50 requested a review from jasnell November 3, 2026 00:52
@jp4a50
jp4a50 requested review from a team as code owners November 3, 2026 00:52

@clanky-the-clanker clanky-the-clanker Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Approved — No issues found: the workflow change does what the description says on the edit, stacked pull request, docs-only and fork paths.

The decision is advisory: this review is a comment and never approves, blocks or requests changes on the pull request.


✅ All checks passed

📋 Code Quality: ✅ LGTM

I traced every trigger path in the workflow and each one behaves as described. Runs for title or description edits are skipped under a name other than internal-build, and the job id is not internal-build either. branches: [main] keeps stacked pull requests from getting a check until they are retargeted onto main. The paths filter, now part of the build job, fails the check if it errors and reports success for pull requests that don't need an internal build. The trusted checkout and the fork membership check both still run before the merge commit is checked out.


📝 Documentation: ✅ LGTM

The new comments in the workflow describe how it behaves now and match the code.


Reviewed commit: 07600be1

@jp4a50
jp4a50 enabled auto-merge November 3, 2026 00:55
@jp4a50
jp4a50 merged commit ae06cc2 into main Nov 3, 2026
24 checks passed
@jp4a50
jp4a50 deleted the jp4a50/internal-build-edit-check branch November 3, 2026 01:16
piscisaureus added a commit that referenced this pull request Nov 4, 2026
Since #8171 the job's name is an expression that evaluates to
`internal-build` only for runs that check the PR. PRs now show the
required `internal-build` check as "Expected - Waiting for status to be
reported" while that job runs, and get stuck on it, which suggests the
required check is not matched to a check run whose name is computed.

Name the job `internal-build` again, with no `if`, so no run reports a
skipped check under that name. Edits that change neither the base nor
the commit (title, body) still must not pass the check early: they now
share the PR's concurrency group without cancelling a build in
progress, so they wait for it and then check the same commit again,
which reuses its internal pipeline.
piscisaureus added a commit that referenced this pull request Nov 4, 2026
Since #8171 an edit to a PR's title or body starts a run of this
workflow whose job is skipped and is not named `internal-build`. For
the required check, GitHub goes by the newest run of the workflow on
the commit, so after such an edit `internal-build` shows as "Expected
- Waiting for status to be reported" and the PR is blocked, even when
the earlier run's `internal-build` passed or is still running.

Name the job `internal-build` in every run, with no `if`, so no run
reports a skipped check under that name and the newest run always has
one. Edits that change neither the base nor the commit still must not
pass the check early: they now share the PR's concurrency group
without cancelling a build in progress, so they wait for it and then
check the same commit again, which reuses its internal pipeline.
piscisaureus added a commit that referenced this pull request Nov 4, 2026
Since #8171 an edit to a PR's title or body starts a run of this
workflow whose job is skipped and is not named `internal-build`. For
the required check, GitHub goes by the newest run of the workflow on
the commit, so after such an edit `internal-build` shows as "Expected
- Waiting for status to be reported" and the PR is blocked, even when
the earlier run's `internal-build` passed or is still running.

Name the job `internal-build` in every run, with no `if`, so no run
reports a skipped check under that name and the newest run always has
one. Edits that change neither the base nor the commit still must not
pass the check early: they now share the PR's concurrency group
without cancelling a build in progress, so they wait for it and then
check the same commit again, which reuses its internal pipeline.
piscisaureus added a commit that referenced this pull request Nov 4, 2026
Since #8171 an edit to a PR's title or body starts a run of this
workflow whose job is skipped and is not named `internal-build`. For
the required check, GitHub goes by the newest run of the workflow on
the commit, so after such an edit `internal-build` shows as "Expected
- Waiting for status to be reported" and the PR is blocked, even when
the earlier run's `internal-build` passed or is still running.

Drop the job's `if` and give it the literal name `internal-build`, so
an edit's run checks the PR like any other. It still doesn't cancel a
build in progress, since edits keep their own concurrency group, and
it checks the same commit, so it doesn't pass before that build does.
piscisaureus added a commit that referenced this pull request Nov 4, 2026
Since #8171 an edit to a PR's title or body starts a run of this
workflow whose job is skipped and is not named `internal-build`. For
the required check, GitHub goes by the newest run of the workflow on
the commit, so after such an edit `internal-build` shows as "Expected
- Waiting for status to be reported" and the PR is blocked, even when
the earlier run's `internal-build` passed or is still running.

Drop the job's `if` and give it the literal name `internal-build`, so
an edit's run checks the PR like any other. It still doesn't cancel a
build in progress, since edits keep their own concurrency group, and
it checks the same commit, so its result is as good as that build's.
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.

3 participants