vole
Site
Clone
Read only, no credentials:
https://rodent.software/vole.git
Write over SSH with a registered key:
git clone ssh://git@rodent.software/vole.git
Self-hosted forge that lives in your Git repo.
Retire the queued runs of an event a newer one replaced
8ca8bbe04848a350f514eb956f70951b701bcd9c · Keenan Nemetz · 10d ago · parent 3031e357
Retire the queued runs of an event a newer one replaced Opening a change request and then updating it queued two full sets of the workflow's jobs for the same base commit. Neither superseded the other: the occurrence is what makes event runs distinct, and CancelSuperseded only looks at pushes. On a single-slot runner the newer event waited behind the older event's identical work, and every edit added another set. A run now records the subject of the event that queued it: a change-request ID, an issue ID, or an entity and comment pair. When an event's batch is queued, the queued runs of an older event for the same repository, trigger, and subject are canceled. The batch's own occurrences are kept, so an edited and an assigned action from one push do not cancel each other. Only queued rows are touched: a handler that has started finishes, because it is already acting on the event it received. Schedules and dispatches have no subject and are unchanged. The query needs no ref: the subject is a globally unique entity ID, so a base branch that moved does not keep the older set alive, and another change request's queue on the same branch is untouched. Verified with go test ./server/, the store tests, and vole workflow run verify.
docs/workflows.md +3−1
| @@ -137,7 +137,9 @@ do not interpolate issue or comment text into a shell command. | |||
| 137 | 137 | ||
| 138 | 138 | A change-request event checks out the base branch, not the unapproved head. | |
| 139 | 139 | Issue, comment, and schedule events use the default branch. A manual run uses | |
| 140 | its selected `--ref`. See | ||
| 140 | its selected `--ref`. A newer event for the same change, issue, or comment | ||
| 141 | cancels the queued runs of the event it replaced; a handler that has already | ||
| 142 | started finishes. See | ||
| 141 | 143 | [Event data available to steps](reference/workflow-reference.md#event-data-available-to-steps) | |
| 142 | 144 | for the payload fields. | |
| 143 | 145 | ||