Repository navigation
test(bundle): drive suggestApprovers' second greedy round (approve.ts:260) through dist/index.js - #472
Conversation
|
Important Held for human review by the hive's ACMM level gate. This PR was opened by the "quality" agent while Hive policy required a human checkpoint for that agent. Non-outreach agents are held at ACMM L3–L5; the Hive will keep the |
|
Please add a kind label with |
jeefy
left a comment
There was a problem hiding this comment.
Both cases reach only the false arm of approve.ts:260.
- Drop
approveSuggestionArms.test.ts:45–66and keep:68–86.:68is the case that actually tests the greedy choice (x is never suggested);:45's bob/carol result would come out the same from code that lists every approver of every file. - Optional: put the kept case in
approveEvaluationArms.test.ts, which already has therouteEvaluation,runReviewandpostedNotifierhelpers (:57–78) this file copies.
…:260) through dist/index.js Every bundle scenario so far was coverable by one approver, so the notifier never named two: BRDA:260,42,1 was 0 in coverage-e2e/lcov.info. One pull_request_review scenario in approveEvaluationArms.test.ts now asserts the multi-login form end-to-end: the a/b/c no_parent_owners set cover where y beats x on the tie and z finishes, so x is never suggested. Refs #466 Co-authored-by: quality <quality@hive.kubestellar.io> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Bob Killen <bkillen@linuxfoundation.org>
|
Addressed review: dropped the disjoint bob/carol case (it would pass against code listing every approver of every file) and the new file; the greedy-rounds case now lives in |
4b6bb03 to
e3378bc
Compare
🔒 Hold-gate integrity: branch changed while hold-gated — fresh review requiredThis PR's branch moved while it sat hold-gated: the head recorded when the hold was applied was Commits not present in the hold-time snapshot (1):
Authors not in the hold-time author set: A human should review the FULL diff at the current head — a rebase or force-push renames every commit, so everything above needs eyes even if it looks familiar. Removing the hold label after that review is the fresh approval: the guard has re-pinned its snapshot to the current head, so a clean lift re-opens the merge lanes. |
Test Improvement
Adds one
pull_request_reviewscenario to__tests__/bundle/approveEvaluationArms.test.tsdrivingsuggestApprovers' second greedy round (src/plugins/approve.ts:260) through the compileddist/index.js. Every other bundle scenario is coverable by a single approver, so the notifier never named two.a/OWNERS[x, y],b/OWNERS[y, z],c/OWNERS[z](allno_parent_owners) on filesa/1,b/1,c/1→please assign **y**, **z**and`/assign @y @z`;xis never suggested (y and z each cover two files, y wins the tie, then only z coversc/1)Test-only change; no
src/ordist/edits.Related Issue
Refs #466