Skip to content

[quality] Gate proposal: unit-covered branches invisible to e2e build coverage #450

Not planned

Description

@hivecommons-hive

Finding

This lane has now filed four instances of the same root-cause coverage
gap in e2e/linkRewrite.test.mjs/lib/: a branch is 100% unit-covered
in isolation but never exercised by a real docusaurus build under the
e2e suite, so a regression confined to that branch would pass every
existing unit and e2e assertion.

Each was found and fixed one branch at a time by manually diffing a
npx c8 --all --include <file> node --test e2e/linkRewrite.test.mjs
run against the unit-only npm run test:coverage report. That is a
real but unenforced gap-finding process, not a gate: nothing in CI (or
locally, short of running this manual c8 comparison) flags a newly
added unit-covered-but-e2e-blind branch, so the same class of gap will
keep recurring one site at a time as the codebase grows.

Recommendation

Decide whether to adopt one of these additive options, or decline and
let individual findings keep covering sites as found:

  1. Combined coverage reporting: once techdocs#415's test:coverage
    CI job lands, add an e2e coverage job (npx c8 --all node --test 'e2e/**/*.test.mjs') and merge its coverage-data directory with the
    unit run's via c8's supported merge mechanism, publishing one
    combined lcov/text report (ties into techdocs#417's
    coverage-reporting gap) so a reviewer can see e2e-only coverage drop
    without running the manual comparison by hand.
  2. A documented policy (an ADR or GOVERNANCE.md entry) stating
    that lib//scripts/ branches only need unit coverage, and e2e
    coverage of a specific branch is opportunistic, not required - which
    would make future findings of this exact class out of scope per this
    lane's own gate-check rule.
  3. Decline both: keep accepting individual PRs for each newly
    found branch, accepting that this is unbounded as the codebase grows.

This proposal does not block on techdocs#415-#417 (the CI-wiring
issues); it only sequences after them if option 1 is chosen, since
there is no CI run to attach a combined report to yet.

Priority

  • Impact: medium (not a reliability gap on its own - each site is still
    found and fixed - but an unenforced process will not scale and risks
    silent regressions between findings)
  • Effort: low to decide; effort of the chosen option varies (low for
    option 2, medium for option 1 once [quality] Unit tests and coverage gate never run in CI #415 lands)

Risk: governance


Filed by quality agent (hold-gated mode)


🐝 Hive Agent: quality | Instance: hosted-available-lke648397-260827-boq9 | SHA: unknown

Activity

  1. added
    stage/045-needs-decision
    testing
    agent/quality
    on Nov 24, 2026
  2. hivecommons-hive commented on Nov 24, 2026

    @hivecommons-hive
    ContributorAuthor

    What to reply

    • /hive approve: go with the recommendation
    • /hive decision <your instructions>: go ahead, following your instructions
    • /hive help: show these again

    If what this issue waited on has been done (a merged fix, or an action taken outside this repository), a maintainer can reply /fixed to close it as completed; Hive clears its park labels.

    Only a maintainer with write access can un-park; everything else is ignored. Full command reference: https://github.com/hivecommons/hive/blob/v5/src/docs/maintainer-commands.md.

  3. hivecommons-hive commented on Nov 24, 2026

    @hivecommons-hive
    ContributorAuthor

    Hive status — updated in place; edits do not notify. Full history is in the Activity Monitor.

    • quality (2026-11-24 17:18 UTC): Noticed while triaging: this duplicates [quality] Gate proposal: unit-covered-but-not-e2e-covered branch findings recur across the repo #448, filed ~4.5h earlier with the same root-cause finding (recurring unit-covered-but-not-e2e-covered branches) and the same two remediation options (combined e2e+unit coverage reporting, or a documented coverage policy). Flagging so a maintainer can close one as duplicate rather than deciding both separately; no further individual findings of this class will be filed while either is open, per the gate-proposal rule.


      Filed by quality agent (hold-gated mode)

  4. added
    author/hive
    and removed
    stage/045-needs-decision
    on Nov 25, 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/qualityauthor/hivetesting

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions