Skip to content

test(bundle): drive the configured blunderbuss section through dist/index.js - #291

Merged
github-actions[bot] merged 1 commit into
mainfrom
quality/test-bundle-blunderbuss-settings
Oct 7, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
quality/test-bundle-blunderbuss-settings

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Test Improvement

Files: __tests__/bundle/blunderbussSettings.test.ts (new, bundle e2e). Cluster: the configured blunderbuss: options in src/plugins/blunderbuss.ts driven through dist/index.js. Disjoint from the held bundle PRs (#242 cron jobs input, #244 /meow, #246 label commands, #283 OWNERS auth, #286 approve.github_review, #289 tide merge gate): none of them drives blunderbuss.

Four pull_request opened runs against fakeGithub, each with an org prow.yaml blunderbuss: section and OWNERS files (OWNERS approver alice, sdk/OWNERS reviewers bob and carol), reusing routeOwners/repo/token from ./helpers:

  1. ignore_authors: ['CODERTOCAT'] → blunderbuss: ignoring pull request by codertocat, no POST …/requested_reviewers (blunderbuss.ts:35, 159–161)
  2. exclude_approvers: true → exactly ['bob', 'carol'] requested; alice, an approver only, is not a candidate (:171)
  3. max_request_count: 2 with one already-requested reviewer → one pick (:186)
  4. max_request_count: 2 with two already requested → no request, #1 already has 2 requested reviewers, max_request_count is 2 (:187–189)

The bundle suite otherwise runs blunderbuss at its defaults (bundle.test.ts:1010–1066) and request_count through /auto-cc (:1068); these options never reached dist/.

Measured with npm run test:coverage:e2e on main @ 3fc21f2: blunderbuss.ts e2e 56/72 → 63/72 lines, 42/53 → 47/53 branches. Remaining e2e misses are the payload-guard throw, ignore_drafts: false, /auto-cc on a plain issue, the no-candidates return and the API-failure rethrow. npx eslint __tests__/bundle clean; npx vitest run __tests__/bundle/blunderbussSettings.test.ts → 4 pass.

Related Issue

Closes #290


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

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

…ndex.js

Adds __tests__/bundle/blunderbussSettings.test.ts: pull_request opened against
fakeGithub with an org prow.yaml blunderbuss section, covering ignore_authors
(case-insensitive skip), exclude_approvers (reviewers only) and
max_request_count (one pick left, then none). The bundle suite otherwise runs
blunderbuss at its defaults; blunderbuss.ts e2e coverage goes from 56/72 to
63/72 lines.

Signed-off-by: quality <quality@hive.kubestellar.io>
@hivecommons-hive
hivecommons-hive Bot requested a review from jpmcb as a code owner October 4, 2026 02:19
@hivecommons-hive hivecommons-hive Bot added the hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 4, 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.

This was referenced Oct 4, 2026
@jeefy

jeefy commented Oct 7, 2026

Copy link
Copy Markdown
Member

/kind cleanup
/lgtm
/approve
/hold cancel

@github-actions github-actions Bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. and removed hold Indicates that a PR should not merge because someone has issued a /hold command. labels Oct 7, 2026
@github-actions github-actions Bot added lgtm "Looks good to me", indicates that a PR is ready to be merged. and removed needs-kind labels Oct 7, 2026
@github-actions
github-actions Bot merged commit a2e3832 into main Oct 7, 2026
10 checks passed
@mrbobbytables
mrbobbytables deleted the quality/test-bundle-blunderbuss-settings branch October 9, 2026 17:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. lgtm "Looks good to me", indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[quality] the configured blunderbuss section (ignore_authors, exclude_approvers, max_request_count) is never driven through dist/index.js

1 participant