Skip to content

Fix gcovr directory structure with 2-pass workflow and path remapping#15

Open
julioest wants to merge 1 commit intocppalliance:masterfrom
julioest:fix-directory-structure-paths
Open

Fix gcovr directory structure with 2-pass workflow and path remapping#15
julioest wants to merge 1 commit intocppalliance:masterfrom
julioest:fix-directory-structure-paths

Conversation

@julioest
Copy link
Contributor

Summary

  • Add fix_paths.py to remap boost-root-relative paths (e.g. libs/json/include/...) to repo-relative paths (include/...) in gcovr JSON output
  • Switch build.sh from a single-pass gcovr call to a 2-pass workflow: collect raw JSON, fix paths, create source symlinks, then generate HTML + JSON summary
  • Update build_tree.py to strip ../ prefixes from directory entry names and support replacing existing tree data on re-runs

fixes #13

Preview for capy built from ci-automation: https://dazzling-crumble-0987eb.netlify.app/

- Add fix_paths.py to remap boost-root-relative paths to repo-relative paths in gcovr JSON output.
- Switch lcov-jenkins-gcc-13.sh from a single-pass gcovr call to a 2-pass workflow: collect raw JSON, fix paths, create source symlinks, then generate HTML.
- Update build_tree to strip ../ prefixes from directory entry names.
@julioest julioest requested a review from sdarwin February 12, 2026 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gcovr - adjust directory structure

1 participant