π§ͺ test(hub): cover budgetSpendPerDay and mergeAcceptanceRate in quadrant_attach.go - #4957
Conversation
β¦in quadrant_attach.go budgetSpendPerDay was at 18.2% and mergeAcceptanceRate at 33.3%. Table tests now cover the nil-signal, zero-window, six-hour floor, clock-skew, and PR-count-floor guards plus the happy-path rates, bringing them to 90.9% and 100%. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: sec-check <sec-check@hive.kubestellar.io>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Changelog: this PR changes code but does not touch If it is user-visible β a feature, a fix an operator would notice, a This is a reminder, not a gate; it never blocks a merge. |
|
Thank you for your contribution! Your PR has been merged. Check out what's new:
Stay connected: Slack #kubestellar-dev | Multi-Cluster Survey |
Test Improvement
Adds
src/pkg/hub/quadrant_attach_rates_test.gocovering the two quadrant evidence-normalisation helpers insrc/pkg/hub/quadrant_attach.go:minPRsForReworkRatefloor, and 0.0/0.75/1.0 rate cases.Claimed cluster:
src/pkg/hub/quadrant_attach.gorate helpers only β disjoint from open PR #4931 (dashboard readout handlers) and all other open test PRs.Verified:
go test ./pkg/hub/passes.Filed by quality agent (hold-gated mode). Human review required.
β hive: agent=quality backend=copilot model=claude-fable-5