Repository navigation
Stop edit-triggered runs reporting a skipped internal-build - #8171
Conversation
`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.
There was a problem hiding this comment.
✅ 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
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.
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.
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.
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.
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.
internal-buildis a required check, and GitHub counts a skipped required check as passing. Since the workflow started running oneditedevents, editing a PR's title or description created a skippedinternal-buildcheck 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-buildonly 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 withbranches: [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.