mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-23 00:21:14 +01:00
A second review round reviews a gate-class fix instead of reporting done (GST-3187) (#4520)
/ship's second review round now reviews a fix that touched a gate-class path, instead of reporting done with nothing read. A plan told "nothing was fixed" while the branch has new commits since the reviewed head now refuses with `review_required_no_readers` rather than printing done. Nothing to do: the next /ship picks it up. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: p1/red-team#1 reader=red-team
This commit is contained in:
1 parent
b23e1b01a7
commit
45e6d549e3
13 files changed
+218
-15
No files matched your search
@@ -247,6 +247,7 @@ caught on another crew's PRs.
|
||||
|---|---|
|
||||
| none | full pass 1 on the whole diff |
|
||||
| a full pass with no edits | done |
|
||||
| a full pass (`--last full`) with no fix flag, when the PR has its own unreviewed runtime commits since `--range-base` | stop: `review_required_no_readers` (exit 3), not done; see [troubleshooting](troubleshooting.md#review-required-no-readers) |
|
||||
| a full pass that fixed a blocking finding, below the cap, on a diff below full depth with a fix range of at most 150 runtime lines | scoped pass on the range |
|
||||
| a full pass that fixed a blocking finding, below the cap (full depth, a larger range, or a range or depth it could not read) | full pass on the range |
|
||||
| a full pass whose fix touched a gate-class path, below the cap | full pass on the range |
|
||||
|
||||
@@ -4187,6 +4187,25 @@ plan that ran past the limit was killed with no output (GST-1442).
|
||||
repository's file count (`git ls-files | wc -l`) to your Captain. For
|
||||
`reason=signal`, check the machine's free memory first.
|
||||
|
||||
<a id="review-required-no-readers"></a>
|
||||
### `gstack-review-plan: not run (commits after the reviewed head would ship with no reviewer ...) (review_required_no_readers)`
|
||||
|
||||
**Meaning.** After a full review pass (`--last full`), the plan was told the
|
||||
step fixed nothing: no `--fixed-blocking`, `--fixed-below`,
|
||||
`--touched-gate` or `--blocking-open`. But `--range-base` shows the PR has its
|
||||
own new commits since the reviewed head. Planning `done` there would ship those
|
||||
commits with no reviewer, so the plan refuses (exit 3) and prints no plan;
|
||||
`gstack-review-dispatch pass` stops on it before it creates any reader. Before
|
||||
this refusal, a round-2 /ship could report the review done with nothing read
|
||||
(GST-3187).
|
||||
|
||||
**Fix.** Pass the flags that hold for what the step changed and plan again:
|
||||
`--fixed-blocking` for a fixed blocker, `--fixed-below` for fixes below the
|
||||
floor, `--touched-gate` when a fix edited a gate-class path. A gate-class edit
|
||||
on its own now plans a full pass on the range. If the commits since
|
||||
`--range-base` are not review fixes, pass the head the review actually read as
|
||||
`--range-base`.
|
||||
|
||||
<a id="review-exclude-reference"></a>
|
||||
### `REVIEW_EXCLUDE_REFERENCE`
|
||||
|
||||
|
||||
Reference in new issue
Block a user