Repository navigation
Builds of closed PRs and deleted branches stop waiting for review (sc-8797) - #31
Merged
Merged
Conversation
ndbroadbent
force-pushed
the
closed-builds
branch
from
December 2, 2026 06:48
13391f8 to
a766401
Compare
VisualCIdocspring/visualci · build #140 · 302 unchanged · no changes This PR vs base: nothing since #132, across 3 builds Updated as builds change. Agents can review with VisualCI's MCP tools. |
…review (sc-8797): a pull request closed without merging (GitHub, GitLab) makes its branch's pending builds closed, with a note, a neutral 'Closed without review' check and a closed pill, and reopening puts the newest back; the hourly forge sync closes the builds of branches deleted without one (asked once a day per branch; Metadata permission is enough); migration 000040; docs and plugin
ndbroadbent
force-pushed
the
closed-builds
branch
from
December 2, 2026 07:13
ecaa121 to
909b2e9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sc-8797. Builds of pull requests closed without merging, and of deleted branches, stayed in
waiting_for_review, whoami and the waiting counts forever. In VisualCI's own project, that's #79 (sc-8709), #53 and #56 (qa/sticky-comment) and #5 (sc-8336-dogfood).ForgeEvent::Closed { branch, why }:pull_requestclosed without merging,deleteof a branch, or apushwithdeleted: true;close, or a push whoseafteris all zeros.ForgeEvent::Reopened: GitHubreopened, GitLabreopen.octocat:main,<fork path>:<branch>).closed(migration 000040 adds it to the review state constraint), with a warning: "Closed without review: the pull request was closed without merging" or "…the branch was deleted".pending. Their check becomes neutral, "Closed without review", and the PR comment says "closed without review".deleteorpushevents, and adding the permission would ask every installation for more access. Instead, the hourlyforge:syncasks the forge whether each branch with builds waiting still exists, and closes the builds of those that are gone.branch_checks, in migration 000040) and at most 500 branches a run, and only for branches with CI builds waiting. Fork branches aren't asked.delete/pushparsing stays, in case the app is ever subscribed.Tests:
feature, one onother).feature's two, with the note; the other stays, and the project's waiting count drops to 1.deletecloses it again with the branch note, and apushwithdeleted: trueclosesother.Review: no screenshots change.