Skip to content

coverage: adoption fixes from first consumers - #436

Merged
lurtz merged 1 commit into
mainfrom
coverage_2.1.1_followups
Aug 20, 2026
Merged

coverage: adoption fixes from first consumers#436
lurtz merged 1 commit into
mainfrom
coverage_2.1.1_followups

Conversation

@dcalavrezo-qorix

Copy link
Copy Markdown
Contributor

Three issues surfaced by early adopters of the coverage module (persistency #380, inc_someip_gateway #256):

  • generate_coverage_html: --yaml is now OPTIONAL. Without it, justification processing is skipped and the COVERAGE_THRESHOLD gate applies to the raw line coverage computed from the LCOV data (NOT llvm-cov's text TOTAL, which omits baseline-only files and would let untested files escape the gate). Previously the script hard-errored before extracting any HTML, which read as 'no report is generated' for repos without a justification YAML.
  • generate_coverage_html: new --archive-dir assembles the artifacts tree without zipping it. Preferred for CI uploads: actions/upload-artifact zips its input itself, so uploading the --archive zip nested it in a second zip.
  • README: document both changes, plus the requirement that the coverage bazelrc import must precede a user.bazelrc try-import (bazelrc is last-wins; the local-override file must stay last).

Integration test extended: no-yaml mode (HTML produced, raw gate enforced at high/low thresholds) and --archive-dir content checks.

Three issues surfaced by early adopters of the coverage module
(persistency #380, inc_someip_gateway #256):

- generate_coverage_html: --yaml is now OPTIONAL. Without it,
  justification processing is skipped and the COVERAGE_THRESHOLD gate
  applies to the raw line coverage computed from the LCOV data (NOT
  llvm-cov's text TOTAL, which omits baseline-only files and would let
  untested files escape the gate). Previously the script hard-errored
  before extracting any HTML, which read as 'no report is generated'
  for repos without a justification YAML.
- generate_coverage_html: new --archive-dir <dir> assembles the
  artifacts tree without zipping it. Preferred for CI uploads:
  actions/upload-artifact zips its input itself, so uploading the
  --archive zip nested it in a second zip.
- README: document both changes, plus the requirement that the coverage
  bazelrc import must precede a user.bazelrc try-import (bazelrc is
  last-wins; the local-override file must stay last).

Integration test extended: no-yaml mode (HTML produced, raw gate
enforced at high/low thresholds) and --archive-dir content checks.
@github-actions

Copy link
Copy Markdown

Coverage Report

Coverage report was generated.

Full report can be downloaded from the CI artifacts (expand Artifacts at the bottom of the run).

Overall coverage rate:

lines......: 86.5%
functions......: 54.3%

@lurtz lurtz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works as advertised

@lurtz
lurtz merged commit 18ddebd into main Aug 20, 2026
17 checks passed
@lurtz
lurtz deleted the coverage_2.1.1_followups branch August 20, 2026 21: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.

2 participants