Skip to content

test(bundle): drive the prefixed label refusal's 'allowed: none' arm (prefixed.ts:251) through dist/index.js - #420

Merged
mrbobbytables merged 1 commit into
mainfrom
quality/test-prefixed-empty-allowlist
Oct 9, 2026
Merged

mrbobbytables merged 1 commit into
mainfrom
quality/test-prefixed-empty-allowlist

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Test Improvement

Adds __tests__/bundle/prefixedEmptyAllowlist.test.ts (2 tests) driving /kind through dist/index.js against the fake GitHub with a .prowlabels.yaml whose kind section is present but empty — kind: [] and kind: { values: [], exclusive: true }, both accepted by normalizeSection. Each refuses with kind: no allowed value in "…"; allowed: none, exercising the allowed.join(', ') || 'none' fallback of requestedLabels (src/labels/prefixed.ts:251) after the config reads, with no label read or write.

Files/functions claimed: src/labels/prefixed.ts requestedLabels empty-allowlist arm only. Disjoint from prefixedRemoveArms.test.ts (#341), which serves a populated kind section.

Measured with npm run test:coverage:e2e on main @ 0328961: prefixed.ts branch 251 covered. Test-only change: no src/ or dist/ edits.

Related Issue

Closes #419


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

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

…(prefixed.ts:251) through dist/index.js

normalizeSection accepts kind: [] and kind: { values: [] }, so a stubbed
section refuses every argument with 'allowed: none'; the only bundle fixture
of this refusal lists two allowed values, so the fallback never fired.

Closes #419

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 15:33
@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.

@mrbobbytables

Copy link
Copy Markdown
Member

/kind cleanup

@github-actions github-actions Bot added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. and removed needs-kind labels Oct 9, 2026
@mrbobbytables
mrbobbytables merged commit e64f9f2 into main Oct 9, 2026
8 checks passed
@mrbobbytables
mrbobbytables deleted the quality/test-prefixed-empty-allowlist branch October 9, 2026 17:58
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. kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[quality] the prefixed label refusal's allowed: none arm (prefixed.ts:251, empty section) is never driven through dist/index.js

1 participant