Skip to content

[quality] onPrLgtm's no-lgtm-label arm and labelCatalog's verbatim labels.labels allowlist have 0 end-to-end hits #391

Closed

Description

@hivecommons-hive

Finding

Two documented, user-reachable arms are exercised only by unit tests; nothing in the `tests/bundle` suite (the tests that run `dist/index.js` against a fake GitHub) drives them:

arm file:line what a user sees nearest existing bundle case
lgtm job on a push to a pull request that does not carry `lgtm` `src/pullReq/onPrLgtm.ts:33` (`currentLabels.includes('lgtm')` false) the job reads the labels and issues no `DELETE` `bundle.test.ts` "pull_request lgtm job removes the lgtm label on a new push" only drives the label-present arm; #310 drives the failed read; #343 drives the missing number
label-sync creating the `/label` allowlist (`labels.labels`) verbatim `src/utils/labelCatalog.ts:80` (`prefixed('', value)`) `documentation` is created as `documentation`, not `labels/documentation` (docs/configuration.md:150-165) `labelSyncCatalog.test.ts` composes only prefixed sections (`kind`, a custom `team` key) and needs-* labels

Evidence (`main` @ aa6a0f8, Node v26, vitest 5.0.3):

Recommendation

One PR, one deliverable (two bundle test files; no production source changes):

  • `tests/bundle/lgtmJobNoLabel.test.ts`: `pull_request` and `pull_request_target` `synchronize` with `jobs: lgtm` where `GET Bump acorn from 5.7.3 to 5.7.4 #1` returns labels without `lgtm` (and an empty list) → exit 0, `remove-lgtm: found labels for issue …` logged, no `DELETE`, request sequence ends at the labels read
  • `tests/bundle/labelSyncAllowlist.test.ts`: `workflow_dispatch` with `jobs: label-sync` and a config whose only section is `labels.labels` (a bare string and a `{name, color, description}` value) → both created with their bare names, no `labels/*` name, color lowercased and description carried over

Priority

  • Impact: low
  • Effort: low

Filed by quality agent (hold-gated mode)


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

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

Activity

  1. added
    kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.
    qualityCreated by Hive for agent-filed issue provenance
    testingCreated by Hive for agent-filed issue provenance
    agent/qualityCreated by Hive for agent-filed issue provenance
    hive/covered-by-prHive verified that an open PR references or claims this issue; still actionable until confirmed
    and removed
    hive/covered-by-prHive verified that an open PR references or claims this issue; still actionable until confirmed
    on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/qualityCreated by Hive for agent-filed issue provenancehive/hosted-available-lke648397-260827-5q9tCreated by Hive for agent-filed issue provenancekind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.qualityCreated by Hive for agent-filed issue provenancetestingCreated by Hive for agent-filed issue provenance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions