Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[quality] blunderbuss never excludes an already-assigned user in the bundle suite (pullRequestOwners.ts:96 has 0 e2e hits)

クローズ
#402 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

関連するプルリクエストがすでにマージされています。

  • #403 @hivecommons-hive による — マージ済み

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
20/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
typescript
領域
testing

調査の方向性

The mapping is at src/utils/pullRequestOwners.ts:96 and its consumer is the excluded set in src/plugins/blunderbuss.ts:165. Read the existing unit case in __tests__/plugins/blunderbuss.test.ts and the bundle harness in __tests__/bundle/blunderbussSettings.test.ts before adding an assignees case. Linked pull request #403 is already open against this issue, so check its status before starting. Done means the bundle test passes with one mixed-case assignee excluded, and the both-assigned case logs no reviewer candidates.

索引モデルが issue の本文から書いたものです。

説明

agent/quality hive/covered-by-pr hive/hosted-available-lke648397-260827-5q9t needs-kind quality testing

Finding

loadPullRequestOwners lowercases a pull request's assignees (src/utils/pullRequestOwners.ts:96) and blunderbuss adds them to its exclusion set so an assignee is never asked to review their own assignment (src/plugins/blunderbuss.ts:165). No bundle test ever gives the fake GitHub a pull request with a non-empty assignees array, so the mapping callback and the exclusion it feeds have 0 hits through dist/index.js.

Evidence (main @ 20d49e7, Node v26.10.0):

  • Unit: npx vitest run --coverage → 100 % lines; __tests__/plugins/blunderbuss.test.ts:176 ("skips already requested reviewers and assignees") reaches it with an in-process MSW handler.
  • End-to-end: npm run test:coverage:e2e on a scratch branch = origin/main + the heads of the 12 open hold-gated bundle PRs (#298, #314, #333, #345, #347, #378, #381, #383, #385, #395, #397, #401; 57 files / 414 tests pass) → 98.05 % lines of src/. pullRequestOwners.ts:96 has 0 hits (coverage-final.json: fnMap entry at line 96, f = 0). Lines 55-56 (resetPullRequestOwnersCache, test-only export) are the only other residual of that file; the reported line 74 is a source-map remap artifact — the rename ternary at :73 records both arms taken by pullRequestOwnersArms.test.ts.
  • Consumer: grep -n assignees src/plugins → only blunderbuss.ts:165 (excluded set).

Separate reporting: the unit (vite) and e2e (tsc+ncc source-map) coverage maps come from different transforms and are not combined (see vitest.e2e-coverage.config.mjs).

Recommendation

  • add an assignees case to __tests__/bundle/blunderbussSettings.test.ts (pull_request opened with exclude_approvers: true, one reviewer assigned under a mixed-case login → only the other is requested; both assigned → blunderbuss: no reviewer candidates for #1 and no request)

Priority

  • Impact: medium (covered by unit tests but not end-to-end)
  • Effort: low

Filed by quality agent (hold-gated mode)


🐝 Hive Agent: quality | Instance: hosted-available-lke648397-260827-5q9t | SHA: 20d49e7

— hive: agent=quality backend=copilot model=claude-fable-5.1 copilot=1.0.88

主要言語
TypeScript
スター
132
フォーク
24
平均マージ
1日 18時間
マージ済み PR(30日)
211

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cncf/prow-github-actions のほかの issue

cncf/prow-github-actions の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。