Repository navigation
Conversation
cary-ilm
force-pushed
the
coverage-gcovr
branch
from
November 17, 2026 20:15
ba5c09b to
4348110
Compare
…Pages Provide one shared way to browse gcov line coverage, locally and in CI, without depending on an external service (SonarCloud). Local: add OPENEXR_ENABLE_COVERAGE, which instruments the build with gcov and adds 'coverage', 'coverage-report' and 'coverage-clean' targets that run the tests and generate an HTML report (plus Cobertura XML and a JSON summary) with gcovr. The measured files are configured in gcovr.cfg. CI: add coverage.yml, which builds with coverage enabled, runs the full test suite, and produces the same gcovr report. The instrumented build and full test run are slow, so the workflow does not run on every pull request. It runs weekly (Sunday, after the full build), on demand via workflow_dispatch on any branch, and on a pull request when a maintainer applies the 'coverage' label. Each run: - uploads the HTML report as an artifact and writes overall line/function/branch percentages to the job summary; - for a pull request or a manual run on a branch, adds a coverage table for the changed lines against the base branch, via diff-cover (informational, never fails the run); only artifacts and the job summary are used, so PRs from forks work; - on main, publishes the HTML report to GitHub Pages. gcovr and diff-cover are installed from a hash-pinned requirements file, share/ci/requirements/coverage.txt, generated from coverage.in. Assisted-by: Copilot / Claude Sonnet 5.5 Signed-off-by: Cary Phillips <seabeepea@gmail.com>
cary-ilm
force-pushed
the
coverage-gcovr
branch
from
November 19, 2026 18:52
4348110 to
7358a38
Compare
Member
Author
|
Closing in favor of #2897 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Provide one shared way to browse gcov line coverage, locally and in CI, without depending on an external service.
Local: add OPENEXR_ENABLE_COVERAGE, which instruments the build with gcov and adds 'coverage', 'coverage-report' and 'coverage-clean' targets that run the tests and generate an HTML report (plus Cobertura XML and a JSON summary) with gcovr. The measured files are configured in gcovr.cfg.
CI: add coverage.yml, which builds with coverage enabled, runs the full test suite, and produces the same gcovr report:
gcovr and diff-cover are installed from a hash-pinned requirements file, share/ci/requirements/coverage.txt, generated from coverage.in.
Assisted-by: Copilot / Claude Opus 4.8