ship-queue: manual train freeze for a gh outage after a bad slot-1 squash, and an unreadable-slots field on the freeze record

Aperta
#3,519 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github, typescript

Direzione di ricerca

Read lib/ship-queue-train-verify.ts around freezeQueue and stopped, then review the run-train and QUEUE_TRAIN_FROZEN documentation named in the issue. Trace how the freeze record and clear-time NEXT: are built. Done means the manual freeze command and unreadable-slot field follow the stated rules, with schema and documentation updated.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

enhancement S3 ship-queue

Two follow-ups from #3518 (GSTA-129), filed on GStack Minder's word; neither is in that PR's scope.

(a) A manual gstack-ship-queue train freeze for a sustained gh outage after a bad slot-1 squash

Today verify --train is the only writer of a freeze. When slot 1's own squash fails the post-merge check and gh pr view cannot be read, verify refuses with QUEUE_PROOF_MISSING and asks to be rerun once gh answers; while gh stays down, main holds an unverified squash with no freeze and no backstop. The adversarial pass on #3518 asked whether that should escalate. Proposed shape: a manual train freeze --train <nonce> --reason <text> the operator runs under a written grant, which writes the same freeze record and dispatches the backstop, with verify staying the only automatic writer. The command must refuse when a freeze is already active and must record who froze (the operator, not verify) in the reason.

(b) A freeze-record field for unreadable slots

Since #3518 the freeze record is built from the one GitHub read that decided to freeze: a slot that read MERGED is merged, a slot that read OPEN/CLOSED is unmerged, and a slot that was unreadable beside a merged one is left out of unmerged and named only in the reason prose ("# unreadable on GitHub, left out of unmerged; seat it in a train by hand once gh pr view answers"). The post-repair NEXT: is built from freeze.unmerged alone, so it omits that slot and the operator has to parse the reason. Three pass-4 specialists flagged this. Proposed shape: an unreadable: Array<{ pr, head }> field on FreezeRecord (schema bump), frozenLines printing it, and the clear-time NEXT: either re-reading those slots once gh answers or naming them beside the rebuild command.

Refs: #3518 (lib/ship-queue-train-verify.ts freezeQueue/stopped, docs/ship-policy.md § Run a merge train, docs/troubleshooting.md § QUEUE_TRAIN_FROZEN), train 24 (GSTA-96).

Lingua principale
TypeScript
Stelle
143k
Fork
21k
Merge medio
5h 25m
PR unite (30g)
791

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di garrytan/gstack

Tutte le issue di garrytan/gstack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.