Repository navigation
app/: a cancelled, failed or timed-out GitHub Actions run closes the builds it was sending (workflow_run) - #150
Merged
Conversation
…builds it was sending (workflow_run)
ndbroadbent
force-pushed
the
workflow-run-closes-builds
branch
from
December 3, 2026 22:06
e160846 to
cfa467a
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.
The GitHub App now subscribes to Workflow run. When a run completes with conclusion
cancelled,failureortimed_out, its builds that are still receiving are closed at once. Before this, they stayed open until the sweep gave up on them an hour later.Which builds: CI builds of the repository's linked projects for the run's
head_sha, stillreceiving, whoseenvironment_info.job_urlis that run's page (the CLI recordshttps://github.com/<repo>/actions/runs/<id>). Matching the run, not just the commit, matters: a lint workflow failing on the same commit must not close the visual workflow's build while it's still uploading. Builds without a job URL (other CI providers) and finalized builds are left alone.Each closed build fails as an abandoned one does, with the reason and the run's link: "The CI run sending this build was cancelled, so VisualCI closed it before
visualci build finalize: . Re-run the job to send a new build." Its check's title is the part before ", so ".BuildChangedfollows, so the check, PR comment and pages update. Delivering the same event twice closes nothing more.app/src/forge/webhooks.rs:ForgeEvent::RunEnded(read fromworkflow_runcompleted), handled by…app/src/domain/processing.rs:close_for_ended_runandrun_ended_error.app/tests/webhooks.rs: cancelled and timed-out runs close their builds. Another workflow's build on the same commit, a finalized build, a successful run and an in-progress run are left alone. A second delivery closes nothing.docs/deploy.md: notes this next to the sweep.webhooks, sweep and forge_reports tests, fmt and clippy all pass on docspring-dev.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.