Skip to content

[quality] the 'could not list the repository labels' arms (labeling.ts assertLabelsExist, labelSync.ts) have no end-to-end coverage #387

Description

@hivecommons-hive

Finding

Two production catch arms rethrow a failed read of the repository's label catalog (GET /repos/{owner}/{repo}/labels) and neither is reached by the bundle suite:

arm file:line reached from
could not list the repository labels src/utils/labeling.ts:135 (assertLabelsExist, called by labelIssue at :78) every /kind, /priority, /area-style prefixed label command
could not list the repository labels src/cronJobs/labelSync.ts:55 (labelSync) the label-sync cron / workflow_dispatch job

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

Unlike the arms in #386, these are reachable from the shipped bundle: a GitHub API outage during a label command surfaces exactly this message to the user, so the wording and the no-write guarantee are worth pinning end-to-end.

Recommendation

One new bundle test file, nothing else touched:

  • __tests__/bundle/labelListingRefused.test.ts: /kind cleanup with GET /labels → 500 fails with error handling issue comment: Error: could not list the repository labels: HttpError: boom and makes no write; jobs: label-sync with the same route fails with error handling cron job: Error: could not list the repository labels: HttpError: boom and makes no POST/PATCH.

Cluster: label-catalog read failure — disjoint from #312 (label-sync write refusals / description drift) and from the /kind write refusal in labelWriteRefused.test.ts.

Priority

  • Impact: medium (covered by unit tests, not end-to-end)
  • 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
    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
    on Oct 8, 2026
  2. github-actions commented on Oct 8, 2026

    @github-actions
    Contributor

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

  3. added
    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/covered-by-prHive verified that an open PR references or claims this issue; still actionable until confirmedhive/hosted-available-lke648397-260827-5q9tCreated by Hive for agent-filed issue provenanceneeds-kindqualityCreated 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