Skip to content

ci: show pull requests the nvx-rs lines that they add and no test reaches #1324

Closed

Description

Goal

Show each pull request that changes nvx-rs/ the lines of production code that it adds or changes and that no test reaches, on Linux or Windows, as information that blocks nothing.

Tasks

  • Run the measurement of ci: report the coverage of the nvx crate's tests on Linux and Windows #1323 for ready pull requests that change nvx-rs/, in jobs that no required check depends on. Draft pull requests skip them, as they skip CI's other jobs.
  • Compute, from the LCOV reports and the pull request's diff against its merge base, the added or changed lines of production code that no test reaches on each OS, and, when the compiler measures branches, the branches on those lines that no test takes.
  • Write them to the run's summary, grouped by file, with the share of the pull request's instrumented lines that tests reach.
  • Test the computation in a scripts/test_*.py module, including renamed files, deleted lines, and lines that no report instruments, such as comments.
  • Document it in doc/ci.md.

Acceptance criteria

  • A pull request that adds a production line of nvx-rs that no test reaches finds it in its run's summary, and one that adds none finds none.
  • No required check changes.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions