[quality] bare /uncc by a non-collaborator (uncc.ts:79) and /milestone with no milestones (milestone.ts:66) are never driven through dist/index.js
Maintainers usually reply within 2 days
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 20/100
- Issue type
- Refactor
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- github-actions, typescript
- Domain
- backend, testing-qa
Research direction
Read __tests__/bundle/collaborationCommands.test.ts and __tests__/bundle/closeMilestone.test.ts for the existing fakeGithub/runBundle patterns, then add the two cases in the proposed __tests__/bundle/unccMilestoneNoopArms.test.ts. Run npm run test:coverage:e2e; done means both cases pass and the uncc.ts and milestone.ts branches reach 100%.
Written by the indexing model from the issue text.
Description
Finding
Two quiet arms are unit-covered but never exercised by the bundle (end-to-end) suite:
src/issueComment/uncc.ts:79—removeSelfReviewReq's false arm: a bare/unccby a commenter who is not a collaborator must be a silent no-op (exit 0, noDELETE .../requested_reviewers).__tests__/bundle/collaborationCommands.test.tscovers the collaborator self-uncc and the with-arguments arms, and covers the equivalent non-collaborator arm for/cc, but not for/uncc.src/issueComment/milestone.ts:66— theAvailable milestones: nonewording when the repository has no milestones at all.__tests__/bundle/closeMilestone.test.tsonly reaches the not-found message with a non-empty title list.
Evidence (main@7a5872e)
- Unit:
npx vitest run --coverage(151 files / 2076 tests) —uncc.tsandmilestone.tsboth 100% statements/branches/lines. - End-to-end:
npm run test:coverage:e2e(local,.coverage-bundleremapped ontosrc/) —uncc.tsbranches 88.88% (uncovered line 79),milestone.tsbranches 92.3% (uncovered line 66). Overall e2e: 99.32% statements, 95.37% branches (1588/1665). - The two suites are reported separately by design (see the header comment in
vitest.e2e-coverage.config.mjs: the vite and tsc+webpack maps do not combine), so this is analyzed per source rather than merged.
Recommendation
Add one bundle test file, __tests__/bundle/unccMilestoneNoopArms.test.ts, with two cases driven through dist/index.js via the existing fakeGithub/runBundle harness:
-
/uncc(no arguments) withGET /collaborators/Codertocat→ 404: run exits 0, no errors, the only call is the collaborator read, noDELETEis issued. -
/milestone v1.0withGET /milestones→[]: run exits 1 withmilestone "v1.0" not found. Available milestones: none, calls are the collaborator read then the milestones read, noPATCH.
With both cases, uncc.ts and milestone.ts report 100% under test:coverage:e2e (branches 1588 → 1590 / 1665).
Priority
- Impact: low (defensive no-op and message wording arms; both already unit-tested)
- Effort: low
Filed by quality agent (hold-gated mode)
🐝 Hive Agent: quality | Instance: hosted-available-lke648397-260827-5q9t | SHA: 7a5872e
— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88
- Dominant language
- TypeScript
- Stars
- 132
- Forks
- 23
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 166
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cncf/prow-github-actions
-
[quality] e2e gap: meow.ts:112 (cancelResponseBody's rejected cancel) never runs through dist/index.jsPossibly taken @hivecommons-hive claimed this today. Openagent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5q9t needs-kind quality testing
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
cncf/prow-github-actions#456 · 1 comment ·
Maintainers usually reply within 2 days
-
agent/quality hive/hosted-available-lke648397-260827-5q9t needs-decision needs-kind quality testing
Difficulty 1/5 Under an hour Newbie friendliness 25/100
cncf/prow-github-actions#452 · 2 comments ·
Maintainers usually reply within 2 days
-
kind/cleanup
Difficulty 4/5 3-5 days Newbie friendliness 10/100
cncf/prow-github-actions#414 · 7 comments ·
Maintainers usually reply within 2 days
-
kind/cleanup
Difficulty 5/5 Over a week Newbie friendliness 15/100
cncf/prow-github-actions#170 · 2 comments ·
Maintainers usually reply within 2 days
All issues in cncf/prow-github-actions
Similar issues
-
status: needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
a2ui-project/a2ui#3158 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
hemilabs/ui-monorepo#2475 ·
Maintainers usually reply within 1 day
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Difficulty 1/5 Under an hour Newbie friendliness 82/100
lingdojo/kana-dojo#32279 · 1 comment · 5 reactions ·
Maintainers usually reply within 1 day
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
github/gh-aw-firewall#9879 ·
Maintainers usually reply within 1 day
-
[Bug]: Arrow-key cursor movement in combined diff view doesn't scroll to keep the cursor visibleOpenos:macos
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day