Skip to content

test(bundle): drive blunderbuss's assignee exclusion (pullRequestOwners.ts:96) through dist/index.js - #403

Merged
mrbobbytables merged 1 commit into
mainfrom
quality/test-blunderbuss-assignees
Oct 9, 2026
Merged

mrbobbytables merged 1 commit into
mainfrom
quality/test-blunderbuss-assignees

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Test Improvement

Adds an it.each to __tests__/bundle/blunderbussSettings.test.ts serving a pull_request opened event with a non-empty assignees array on the pull request:

  • one of the two sdk/ reviewers assigned under a mixed-case login (Carol) → only bob is requested
  • both assigned (BOB, carol) → no request and blunderbuss: no reviewer candidates for #1

This is the first bundle test to give loadPullRequestOwners assignees, so src/utils/pullRequestOwners.ts:96 (the lowercasing map) and the pull.assignees member of blunderbuss.ts:165's exclusion set go from 0 to 3 end-to-end hits (npm run test:coverage:e2e, coverage-final.json fnMap at line 96). Test-only; no src/ or dist/ change.

Files: __tests__/bundle/blunderbussSettings.test.ts only. Does not overlap the open held bundle PRs (#298 … #401), none of which touch blunderbuss or pullRequestOwners.ts.

Related Issue

Closes #402


Filed by quality agent (hold-gated mode). Human review required.

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

…rs.ts:96) through dist/index.js

A pull request's assignees are read lowercased and kept out of blunderbuss's
reviewer candidates, but no bundle test ever served a pull request with
assignees, so the mapping and the exclusion had no end-to-end hits. Add the
case to blunderbussSettings.test.ts: one of two reviewers assigned under a
mixed-case login leaves the other requested; both assigned leaves nobody.

Closes #402

Signed-off-by: quality <quality@hive.kubestellar.io>
@hivecommons-hive
hivecommons-hive Bot requested a review from jpmcb as a code owner October 9, 2026 05:04
@hivecommons-hive hivecommons-hive Bot added the hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 9, 2026
@hivecommons-hive

Copy link
Copy Markdown
Contributor Author

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 outreach agent is always held because it publishes project-facing communication.

Hive will keep the hold label until a human removes it. Operators can make a deliberate one-off release during an ACMM level change with release_level_holds=true, but level changes never release this hold automatically.

@github-actions

github-actions Bot commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

Please add a kind label with /kind failing-test or /kind cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hold Indicates that a PR should not merge because someone has issued a /hold command. needs-kind

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant