mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-17 13:44:32 +01:00
train forget: restore the local notes ref on a rejected lease and refuse every in-flight state
forgetNotes removed the note locally before the leased push, so a rejected lease left a local notes ref without the note that the next plain persist pushed without a lease. It now snapshots the ref and restores it on rejection, reporting failed removals separately. forget refused only merging/gate-pending/free-pending; built, pushed, free-green, dispatch-unknown and dispatch-absent are in flight too and are refused the same way. CHANGELOG and ship-policy say so. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
db7c8c8940
commit
3909acadd7
5 files changed
+46
-19
No files matched your search
+4
-1
@@ -575,7 +575,10 @@ PRs landed through another train or by hand): it logs each PR's state on a
|
||||
<pr>@<sha> [--dry-run]` removes one record (a settled train with its attempts,
|
||||
or one READY receipt) from local state and from `refs/notes/gstack-trains`
|
||||
with an exact lease on the notes ref, printing `FORGET:` then `FORGOTTEN:`; a
|
||||
merging, gate-pending or free-pending train is refused.
|
||||
train that is still building, running or merging (`built`, `pushed`,
|
||||
`free-pending`, `free-green`, `dispatch-unknown`, `dispatch-absent`,
|
||||
`gate-pending`, `merging`) is refused; a rejected lease removes nothing and
|
||||
restores the local notes ref.
|
||||
|
||||
**Following a train without a daemon.** `gstack-ship-queue train watch --train
|
||||
<nonce> [--timeout <s>]` is the one resumable follow command: it reads the
|
||||
|
||||
Reference in new issue
Block a user