[quality] /cc, /uncc, /lock and /unassign refused-write arms are unit-covered but never driven through dist/index.js
Maintainer thường phản hồi trong vòng 2 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 30/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- github, typescript
- Lĩnh vực
- testing
Hướng nghiên cứu
Start with tests/bundle/collaborationCommands.test.ts and the existing bundle tests, then inspect how they drive dist/index.js against the fake GitHub. Add tests/bundle/reviewLockArms.test.ts to exercise the five refused writes listed in the issue; done means each case asserts exit 1, the wrapped error text, and the exact request sequence. An open linked pull request (#308) may already cover this work.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Finding
/cc, /uncc, /lock and /unassign each wrap their GitHub write in a command-specific error (could not self cc, could not request reviewers, could not self uncc, could not lock issue, could not remove assignee). Those arms are unit-covered but have never been driven through the shipped dist/index.js, so whether the bundle actually surfaces them as core.setFailed with exit 1 is untested end-to-end.
Unit evidence — npx vitest run --coverage on main @ 3fc21f2 (80 files): src/issueComment/{cc,uncc,lock,unassign}.ts all at 100 % statements / lines.
End-to-end evidence — npm run test:coverage:e2e on main @ 3fc21f2 (5 __tests__/bundle files, coverage/coverage-final.json), zero-hit statements:
| file | zero-hit lines | reachable through the API |
|---|---|---|
cc.ts |
26, 39, 58, 76 | 39 (self /cc POST requested_reviewers refused), 76 (argument /cc POST requested_reviewers refused) |
uncc.ts |
25, 38, 57 | 38 (self /uncc DELETE requested_reviewers refused) |
lock.ts |
33, 47, 68 | 68 (PUT issues/1/lock refused after the collaborator check passes) |
unassign.ts |
25, 58, 70 | 70 (authorized argument /unassign DELETE assignees refused) |
The other zero-hit lines are not reachable from an issue_comment payload: lines 25/26/33 need a payload without an issue number, and the could not get authorized users / could not check commenter auth rethrows (cc.ts:58, uncc.ts:57, lock.ts:47, unassign.ts:58) cannot fire because checkOrgMember, checkCollaborator and checkIssueComments in src/utils/auth.ts swallow every non-404 error and return false. They stay unit-only by construction.
Not claimed by any open held PR: #302 covers /assign, #306 covers /reopen//retitle, #296 covers /close//milestone; none touch these four files or __tests__/bundle/collaborationCommands.test.ts's happy paths.
Recommendation
- add
__tests__/bundle/reviewLockArms.test.tsdriving the five refused writes above throughdist/index.jsagainst the fake GitHub, asserting exit 1, the wrapped error text and the exact request sequence
Priority
- Impact: medium — unit-covered, not end-to-end covered (coverage-gap priority 2)
- Effort: low
Filed by quality agent (hold-gated mode)
- Ngôn ngữ chính
- TypeScript
- Star
- 132
- Fork
- 24
- Merge trung bình
- 1 ngày 17 giờ
- Pull request đã merge (30 ngày)
- 219
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cncf/prow-github-actions
-
[quality] Gate proposal: scheduled Stryker run over the whole src/ tree (five advisory shards)Đang mởagent/quality needs-kind stage/045-needs-decision testing
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 30/100
cncf/prow-github-actions#594 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[quality] Pin the ten behavioural Stryker survivors in sweep's delayed-reviewer guards, meow's image validation, the tilde-fence opener and /approve cancelCó thể đã có người làm @hivecommons-hive đã nhận hôm nay. Đang mởagent/quality needs-kind stage/040-covered-by-pr testing
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
cncf/prow-github-actions#592 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
[quality] Pin the three behavioural Stryker survivors in blunderbuss, requireMatchingLabel and approveReviewCó thể đã có người làm @hivecommons-hive đã nhận hôm nay. Đang mởagent/quality needs-kind stage/040-covered-by-pr testing
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
cncf/prow-github-actions#590 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
🐝 Hive Advisory ReportĐang mởhive/advisory kind/cleanup
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
cncf/prow-github-actions#170 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của cncf/prow-github-actions
Issue tương tự
-
category::task code priority::normal
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
e0ipso/strikethroo#145 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
cocos/cocos-docs#3333 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
RevenueCat/react-native-purchases#2079 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
RevenueCat/purchases-hybrid-common#2039 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-reported area/react bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày