You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: a pull request edited right after a push shows a failed check, the cancelled run of the Conventional Commits check #2066
A pull request whose description is edited right after a push gets a failed check on its last commit, although every check passed.
The Conventional Commits PR Check (conventionalCheck.yml) runs on opened, edited and synchronize, and since #1973 a newer run cancels the one in progress (cancel-in-progress: true). edited fires for any edit of the pull request, also of its description. So a push followed within a few seconds by an edit of the description starts two runs of main on the same commit, and the second cancels the first. The cancelled run stays on the commit, and GitHub counts it as a failure: the commit's combined status (statusCheckRollup) is FAILURE, the pull request shows a red cross, and its merge state is UNSTABLE, while the other run of the same check passed.
Seen on #2049 and #2053 (head commits 9c343013 and 6bfa7699: one run of main cancelled, one successful), and now on #2052 (e6580ed7).
A fix, for this check only, which takes a few seconds:
run it on edited only when the title changed: if: github.event.action != 'edited' || github.event.changes.title != null on the job;
and drop its concurrency group, so that no run is cancelled and left on a commit. cancel-in-progress: false is not enough: a run that waits in the group is still cancelled when a newer one joins it.
The cancellation of #1973 stays for the long workflows, where it saves runners.
Activity
ci: run the pull request title check without cancelling it, and skip …