mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-24 17:11:28 +01:00
Merge queue ready fetches missing pull request heads in one go, says so, and stops after 60 seconds (GST-3460) (#4668)
`gstack-ship-queue ready` no longer goes silent for minutes on a long merge queue: it fetches every missing pull request head in one `git fetch`, prints a progress line first, and stops after 60 seconds. Why: on gbrain #10011 ready printed nothing for minutes, so nobody could tell a slow fetch from a hang. Nothing to do; `GSTACK_TRIAL_FETCH_TIMEOUT_MS` changes the limit. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/specialist-batched#1 reader=testing
This commit is contained in:
1 parent
c2b4f0d2ad
commit
7c0659a69f
7 files changed
+199
-11
No files matched your search
@@ -6209,7 +6209,10 @@ HEAD is not the PR's pushed head (read through `gh pr view`), CI at that
|
||||
exact head is not green (failed, pending or unreadable), or the pregate result
|
||||
is missing, failed or recorded on another tree (`PREGATE_STALE`). Under
|
||||
`--dispatch-ci` it is also a dispatched workflow run that concluded red (a red
|
||||
run clears no pregate lane) or a `gh workflow run` that failed. `train land`
|
||||
run clears no pregate lane) or a `gh workflow run` that failed. It is also the trial-merge fetch (rule 14)
|
||||
running out of time (`GSTACK_TRIAL_FETCH_TIMEOUT_MS`, default 60 s) before
|
||||
every sibling PR head arrived; the message names each `refs/pull/<n>/head` it
|
||||
was waiting on. `train land`
|
||||
uses it while a slot cannot merge yet: checks on the stamp commit are not
|
||||
green, a name in `changelog_fragments.required_checks` is missing or not green
|
||||
there, the PR's base is no longer the train's base, the stamp push failed while
|
||||
@@ -6221,7 +6224,10 @@ origin's lock ref could not be read to tell whether the push landed.
|
||||
`gstack-pregate run --allow-repo-commands` when the tree changed, then rerun
|
||||
`gstack-ship-queue ready --pr <n>`. The block it prints before refusing shows
|
||||
which line is not yet true. For `train land`, do what `NEXT:` says, then rerun
|
||||
the same `train land` command; it adopts its own journaled stamp commit. For an
|
||||
the same `train land` command; it adopts its own journaled stamp commit. For a
|
||||
trial-merge fetch timeout, fetch the named refs by hand
|
||||
(`git fetch origin <ref>`) or raise `GSTACK_TRIAL_FETCH_TIMEOUT_MS`, then
|
||||
rerun ready. For an
|
||||
unreadable land lock, rerun the same `land` command once origin answers; it
|
||||
resumes its own lock.
|
||||
|
||||
|
||||
+5
-2
@@ -1101,8 +1101,11 @@ whose decision names the reader (`gstack-decision-trail <file> trail-read
|
||||
for a risk-class receipt, then that row's flags (`Flags (trail row <n>): …`, or
|
||||
`No flags (trail row <n>)`), or `MISSING: cross-family trail read` when the trail
|
||||
has none, and one `TRIAL_MERGES` line per open PR that shares a file, from
|
||||
`git merge-tree` at both heads. A PR from a fork is labelled as an outside PR
|
||||
and never fetched or merged. `decisions.jsonl` stays the typed record `gstack-artifact` validates; the
|
||||
`git merge-tree` at both heads. Heads this clone lacks come down in one
|
||||
`git fetch` (then one at a time if that fails) within
|
||||
`GSTACK_TRIAL_FETCH_TIMEOUT_MS` (default 60 s); ready prints a progress line
|
||||
before the fetch and refuses with `QUEUE_NOT_READY` when the limit runs out.
|
||||
A PR from a fork is labelled as an outside PR and never fetched or merged. `decisions.jsonl` stays the typed record `gstack-artifact` validates; the
|
||||
trail is the plain one a person reads, and `column -s$'\t' -t decisions.tsv`
|
||||
renders it in a terminal.
|
||||
|
||||
|
||||
Reference in new issue
Block a user