Skip to content

chore(coverage): give the bundle e2e coverage run a regression floor (99/95/98/99) instead of zeroed thresholds - #484

Merged
mrbobbytables merged 1 commit into
mainfrom
quality/test-e2e-coverage-thresholds
Oct 15, 2026
Merged

mrbobbytables merged 1 commit into
mainfrom
quality/test-e2e-coverage-thresholds

Conversation

@hivecommons-hive

Copy link
Copy Markdown
Contributor

Coverage Configuration

Files claimed: vitest.e2e-coverage.config.mjs (coverage.thresholds), docs/contributing.md (the test:coverage:e2e row). No held PR (#467–#483) touches either.

vitest.e2e-coverage.config.mjs pinned all four thresholds to 0, so a bundle scenario that stopped driving a src/ path lowered the end-to-end figure without failing anything, locally or (once #459's job lands) in CI. This sets a floor just under what main reaches:

metric main @ d93ecb8 floor
lines 99.54 % (2386/2397) 99
statements 99.56 % (2506/2517) 99
functions 98.79 % (491/497) 98
branches 96.25 % (1595/1657) 95

Verified on this branch: npm run test:coverage:e2e passes (461 tests, exit 0); running the same config with --exclude '__tests__/bundle/tide*.test.ts' fails with Coverage for lines (98.91%) does not meet global threshold (99%) / statements (98.96%). npm run lint passes. The held bundle PRs #467–#483 only add scenarios, so none would trip the floor (with all of them merged the figure is 99.91 / 97.46 / 100 / 99.92).

For the reviewer: #459's body proposed the e2e-coverage job as "a record, not a gate" with no threshold. This PR makes the run a gate instead — a local or CI run now fails on a regression. If you prefer the record-only framing, close this and the job in #459 stays green regardless of the figure; the numbers above are the evidence either way. A later ncc/vitest bump that shifts source-map attribution could move the figure by a few lines; the ~0.5 % margin (13 lines) is the budget for that.

Related Issue

Refs #459 (needs-human: the e2e-coverage job itself lives in .github/workflows/test.yml, which this lane's token cannot push — drop-in YAML is in the issue body; this PR is only the threshold half, folded into #459 as the [quality] missing-workflow: test.yml never runs npm run test:coverage:e2e finding)


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

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

…99) instead of zeroed thresholds

vitest.e2e-coverage.config.mjs pinned every threshold to 0, so a bundle
scenario that stopped driving a src/ path lowered the e2e figure without
failing anything. Set the floor just under main@d93ecb8
(99.54 lines / 96.25 branches / 98.79 functions / 99.56 statements) and
note it in docs/contributing.md.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: quality <quality@hive.kubestellar.io>
@hivecommons-hive
hivecommons-hive Bot requested a review from jpmcb as a code owner October 15, 2026 08:51
@hivecommons-hive hivecommons-hive Bot added the hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 15, 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.

@github-actions

Copy link
Copy Markdown
Contributor

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

@mrbobbytables mrbobbytables added kind/cleanup Categorizes issue or PR as related to cleaning up code, process, or technical debt. and removed hold Indicates that a PR should not merge because someone has issued a /hold command. needs-kind labels Oct 15, 2026
@mrbobbytables
mrbobbytables merged commit 165a6c7 into main Oct 15, 2026
19 checks passed
@mrbobbytables
mrbobbytables deleted the quality/test-e2e-coverage-thresholds branch October 15, 2026 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

1 participant