Narrow review scope on events that skip narrowing today (ready_for_review, reopened, moved head)
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
- 25/100
Direzione di ricerca
Start by reading #19232 and its measurement, then inspect scope.cjs and the two named hosted review workflows. Re-run the measurement with event actions and head-moved log lines, and classify the 14 runs with links. Done means each cause has a merged fix or a documented reason to keep current behavior, any changed review scope cites an owner decision, and a comparable re-measure shows fewer whole reviews.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
Of 34 review model runs on heads whose last commit merged main with an empty remerge diff (2026-11-25 12:00Z to 2026-11-26 03:30Z, 1010 hosted review runs; #19232 measurement), 14 got a whole review because resolve-review-scope attempted no narrowing at all. That is the largest share of the 34, and fixing it loosens no check.
scope.cjs narrows only when INCREMENTAL is on, EVENT_ACTION === "synchronize" and the live head equals the run's head (melodic-software/ci-workflows .github/actions/resolve-review-scope/scope.cjs:333; head check :318-322). The review callers trigger on opened, synchronize, ready_for_review, reopened (.github/workflows/pr-review-hosted.yml:50), and the non-synchronize events always review the whole pull request (pr-review-hosted.yml:44-46). So each of the 14 is either a ready_for_review/reopened event on a pull request the lane had already reviewed, or a synchronize run whose head moved before scoping. Which of the two dominates is UNVERIFIED: the measurement did not record the event action per run.
The owner chose this route on 2026-11-25 (Q1 option (c) on #19232, verbatim: "go w/ recommendations, bake it into the handoff"): base-merge-only heads keep a whole review; the 14 runs get a separate look.
Cost of leaving it: up to 14 whole re-reviews per 15 busy hours, each a whole-pull-request model run on the code or security lane, plus their GITHUB_TOKEN calls (#19233).
Proposed work
- Re-run the #19232 measurement with each run's event action and the "head moved" log line (
The pull request's head moved to) recorded, and split the 14 by cause. - For
ready_for_reviewandreopenedon a pull request with a recorded lane review: decide whether the same since-last-review narrowing applies. If narrowing these events changes what a lane reviews (it does: they review the whole PR today), that is a loosened check and needs an owner-decisions row before it merges. - For a
synchronizerun whose head moved: the newer head's own run reviews it; check whether the stale run can skip instead of reviewing the whole pull request (it would review a head that is no longer the PR's).
Acceptance criteria
- The 14 runs are classified by cause (event action, head moved), with run links.
- Each cause has a fix merged, or a comment here stating why it stays.
- Any change to what a lane reviews cites an owner-decisions row.
- A re-measure over a comparable window shows fewer whole reviews on heads with a recorded lane review.
References
- #19232 (measurement, owner answer), #19233 (GITHUB_TOKEN spend), #19247
melodic-software/ci-workflows.github/actions/resolve-review-scope/scope.cjs.github/workflows/pr-review-hosted.yml,.github/workflows/pr-review-security-hosted.yml
- Lingua principale
- Shell
- Stelle
- 22
- Fork
- 2
- Merge medio
- 2h
- PR unite (30g)
- 960
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di melodic-software/claude-code-plugins
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
melodic-software/claude-code-plugins#19225 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
melodic-software/claude-code-plugins#17779 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
recurring
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
melodic-software/claude-code-plugins#19274 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
melodic-software/claude-code-plugins#19270 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 53/100
melodic-software/claude-code-plugins#19269 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di melodic-software/claude-code-plugins
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
nais/attest-sign#139 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
community-scripts/core#303 ·
I maintainer di solito rispondono entro 1 giorno
-
severity: low
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
luainkernel/lunatik#2727 ·
I maintainer di solito rispondono entro 1 giorno
-
[quality] release publish.mjs integrity guards have no unit testForse già presa @robarnold l’ha presa oggi. Apertaagent/quality stage/040-covered-by-pr testing
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
marinatedconcrete/config#1155 ·
I maintainer di solito rispondono entro 1 giorno
-
bug report-to-upstream
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
flatpark/flatpark#1585 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno