Skip to content

Coverage: publish a per-branch coverage index next to the badge JSON #540

Done

Description

@Shinrai

The coverage-badge job pushes coverage.json (master) and coverage-next.json (next) to the orphan badges branch. Please publish one more file the same way: the run's coverage index, which maps each source file's functions to the test files that executed them.

Branch Badge (today) Index
master coverage.json coverage-index.json
next coverage-next.json coverage-index-next.json
hotfixes coverage-hotfixes.json coverage-index-hotfixes.json

The repo's coverage run writes it to coverage/coverage-index.json (present only when the repo's tooling produces it; skip silently when absent). The job copies it to the branch-named file on badges in the same bot-signed commit as the badge, on the same push events (master / next / hotfixes), and never on PRs.

Why: on a public repo the file is then readable without auth at https://raw.githubusercontent.com/<owner>/<repo>/badges/coverage-index-next.json. A repo's coverage:file script can fetch it to run only the tests that reach one source file, instead of the full coverage run, locally or in a test pod with no gh and no token. First consumer: CLDMV/slothlet (its full coverage run takes about 3.5 hours).

Suggested shape: an input such as coverage_index_path (default coverage/coverage-index.json) on the reusable coverage-badge workflow. Nothing changes for repos that don't produce the file.

Activity

  1. added
    type: enhancement
    priority: medium
    status: not started
    type: ci
    status: in progress
    and removed
    status: not started
    on Nov 25, 2026
  2. added 2 commits that reference this issue on Nov 25, 2026
    c526b63
    1fd4db1
  3. removed
    status: in progress
    on Nov 25, 2026
  4. cldmv-bot commented on Nov 25, 2026

    @cldmv-bot
    Contributor

    Marked status: implemented — resolved by #541, merged into next. This issue closes automatically when that work ships to the default branch.

  5. added
    status: implemented
    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

    priority: mediumstatus: implementedtype: citype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions