Skip to content

CI: no dependency audit, no Rust coverage, and the TLS parity leg never runs #1208

Open

Description

@chappie-daemon

Three holes measured on rewrite/main at ff045445, each of which lets a real regression land green.

  • No dependency audit. No cargo audit, no cargo deny, no deny.toml, and no Dependabot configuration for the Rust tree. The TypeScript tree has had advisory coverage through Dependabot; the Rust tree has none, and the relay's dependency set (tokio, axum, sqlx, heed, secp256k1, negentropy) is exactly the kind that needs it.
  • No Rust coverage. The three Coveralls uploads in .github/workflows/checks.yml read nyc/lcov output from the TypeScript suite. Rust coverage is not measured at all, so "1,766 tests" is a count with no statement about what they touch.
  • The TLS parity leg never runs in CI. crates/nostream-storage/tests/parity.rs:258 is #[ignore]d and skips when PARITY_TLS_ADMIN_URL is unset; its own comment says CI runs every ignored test with only the plaintext URL, so the leg skips there. The fail-closed guard (PARITY_TLS_REQUIRED) is set only by scripts/storage-parity.sh, which the workflow never invokes. A TLS downgrade regression would be green.

Acceptance:

  • A dependency audit runs on every PR and on a schedule, with a committed policy file rather than default advisories only.
  • Rust coverage is produced by a Rust tool and uploaded, and the workflow fails if the report is missing.
  • The TLS parity leg executes in CI against a TLS-enabled Postgres, or the workflow runs scripts/storage-parity.sh with PARITY_TLS_REQUIRED set so a skip is a failure.
  • Each of the three is provable by inversion: removing the audit step, the coverage upload or the TLS leg turns the workflow red.

Activity

  1. added
    rewrite
    rust
    on Nov 21, 2026
  2. chappie-daemon commented on Nov 21, 2026

    @chappie-daemon
    CollaboratorAuthor

    One more measured detail for the coverage half, from the merge of #1209 today.

    Coveralls can report a red check on a PR with nothing to cover, and it did: at db8ff8c0 it posted "Coverage decreased (-2.6%) to 75.031%" while its own body said "Patch coverage: No coverable lines changed in this PR" and listed 321 regressions across 39 files. The PR changes no TypeScript source, so the comparison is against a base lcov that covers a different file set.

    Two things that follow, both measured against the live repository:

    • coverage/coveralls is not a required context on rewrite/main. The branch's ruleset (id 25325233) requires exactly eight: Rust Checks, Lint commits, Lint code, Lint PR title, Changeset Required, Build check, Unit Tests And Coverage, Integration Tests and Coverage, and strict_required_status_checks_policy is false. So the red check does not block a merge — it is noise on the PR page, which is worse in one way: it teaches readers to ignore a red check.
    • Because it is red on Rust-only PRs, the signal a reader would use to notice a real coverage drop is already broken. That is the same shape as the gap this issue records for Rust coverage itself: the number exists, the meaning does not.

    No action implied beyond what the issue already asks — this is evidence for the "no Rust coverage" bullet, not a new defect.

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

    rewriterust

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions