Repository navigation
test(bundle): drive canonicalCommand's dynamic remove-form arm (handleIssueComment.ts:91) through dist/index.js - #470
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 |
|
Review: looks good; one minor nit.
|
jeefy
left a comment
There was a problem hiding this comment.
All four cases reach only the two arms at handleIssueComment.ts:91.
- Keep
dynamicRemoveCanonicalization.test.ts:43–56; drop:58–69,:71–82and:84–94, and theissueRead/labelDeleteconsts at:17–18they use.:71is the "duplicates collapse" case #357 already dropped, and the missing-section error at:84is covered byprefixedRemoveArms.test.ts:34. - Minor: at
:45, userepoLabels('triage/accepted')from./helpers. The kept case would also fit as a third case incommandCanonicalization.test.ts, which has the same scaffold.
…ugh dist/index.js Adds a third case to __tests__/bundle/commandCanonicalization.test.ts listing a dynamic label section's remove form (/remove-triage) in prow-commands, so handleIssueComment.ts:91's base-canonicalization arm is reached end-to-end. Previously only the /remove-help alias-table path was exercised through the bundle. 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>
eb3625e to
0e1ce94
Compare
|
Addressed review: kept only the |
🔒 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 a third case to
__tests__/bundle/commandCanonicalization.test.tsdrivingcanonicalCommand's dynamic arm inhandleIssueComment.ts:91through the compileddist/index.js: a/remove-<key>listed inprow-commandswhose base is no built-in command names the<key>label section, so it enables the whole/<key>family (docs/commands.md: "Listing an alias in prow-commands enables the whole command family").prow-commands: /remove-triagewithlabels: { triage: { values: [accepted] } }inprow.yaml;/triage accepted→ onePOST /issues/1/labelswithtriage/acceptedPreviously only the
/remove-helpalias-table path was exercised through the bundle. The removal form's missing-section error is covered byprefixedRemoveArms.test.ts.Test-only change; no
src/ordist/edits.Related Issue
Refs #466