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/runner.md +2
| @@ -330,6 +330,8 @@ slots, active work, and queued jobs. | |||
| 330 | 330 | - An attempt that stops before its first step has status `error` and appears as | |
| 331 | 331 | **could not run**; a required check waits rather than treating the commit as | |
| 332 | 332 | failed. | |
| 333 | - A newer event for the same change, issue, or comment cancels that subject's | ||
| 334 | queued event runs; a running handler finishes. | ||
| 333 | 335 | - Rerunning a finished run creates another attempt with the same pinned workflow, | |
| 334 | 336 | image, and secrets. | |
| 335 | 337 | ||