Skip to content

test: cover idea transition helpers and CNCF match progress/persist paths - #174

Merged
hivecommons-hive[bot] merged 1 commit into
mainfrom
quality/test-cncf-transition-gaps
Sep 29, 2026
Merged

hivecommons-hive[bot] merged 1 commit into
mainfrom
quality/test-cncf-transition-gaps

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Test Improvement

Test-only; no production code changes.

pkg/store — TransitionTo/TryTransition (added in #160) showed 0% in-package coverage: they are only exercised cross-package from pkg/api, and CI runs go test ./... without -coverpkg, so the store suite never pinned them. Adds table tests for the no-op success, allowed-edge mutation, disallowed-edge ValidationError (action + status named, status untouched), and TryTransition's silent-refusal semantics.

pkg/match — cncfMatchesForIdea was at 60%: nil-engine/nil-catalog guards, the empty-candidate return, the full progress event stream (cncf_bm25_start/cncf_bm25/cncf_score), the persist branch (success writes CNCFMatches + MatchesUpdatedAt; store miss surfaces as the call's error), and the LLM-failure→BM25 fallback were unexercised. llmScoreCNCF (70.6%) gains its transport-error, unparseable-JSON, and 0/100 clamp arms.

Coverage (statements): pkg/store 86.5% → 90.2%, pkg/match 85.8% → 90.2%. Full go test ./... and go vet pass.

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

…aths

pkg/store: TransitionTo/TryTransition (new in #160) were exercised only
cross-package via pkg/api, so the store suite never pinned their no-op,
mutation, and rejection semantics (0% in-package coverage).

pkg/match: cncfMatchesForIdea was at 60% — the nil-engine/catalog guards,
empty-candidate return, progress event stream, persist branch (success and
store-miss error), and LLM-failure BM25 fallback were all unexercised, as
were llmScoreCNCF's transport/parse errors and 0/100 clamps.

pkg/store 86.5% -> 90.2%, pkg/match 85.8% -> 90.2% statements.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: sec-check <sec-check@hive.kubestellar.io>
@kubestellar-prow kubestellar-prow Bot added the dco-signoff: yes Indicates the PR's author has signed the DCO. label Sep 29, 2026
@kubestellar-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign clubanderson for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubestellar-prow kubestellar-prow Bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Sep 29, 2026
@hivecommons-hive
hivecommons-hive Bot merged commit 9373e2f into main Sep 29, 2026
5 of 6 checks passed
@kubestellar-prow
kubestellar-prow Bot deleted the quality/test-cncf-transition-gaps branch September 29, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dco-signoff: yes Indicates the PR's author has signed the DCO. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants