Skip to content

ci(coverage): raise storage/WAL coverage gates and add branch coverage gates #396

Closed

Description

@adityamukho

Problem

.github/workflows/coverage-gates.yml sets line-coverage gates of:

Module Gate
btree_v6 65%
persistent_facts 70%
db.rs 70%
wal.rs 75%

These are the modules where the recent data bugs were. For a storage engine they are low. The workflow comment points to coverage-thresholds.toml, but that file does not exist, so the values are hard-coded in the YAML.

Branch coverage runs nightly, but it has no gate.

Ask

  • Raise the line gates for persistent_facts, btree_v6, wal.rs, packed_pages and index.rs in steps, aiming at 90%.
  • Add branch-coverage gates for the same modules.
  • Create coverage-thresholds.toml (or fix the comment) so there is one source of truth.
  • For each uncovered error path in these modules, either add a test or mark it unreachable with a reason.

Activity

  1. added this to the v3.0.0 milestone on Sep 26, 2026
  2. adityamukho commented on Oct 14, 2026

    @adityamukho
    CollaboratorAuthor

    Done on v3: #522 made the gates real, and #584 brought the storage files to 90%+ branch coverage (btree.rs 95.7%, persistent_facts.rs 91.7%, index.rs 100%), with floors in coverage-thresholds.toml.

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

    durabilityData durability concernstabilityStability/panic issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions