Skip to content

coverage: survive a truncated raw profile - #1249

Merged
padelsbach merged 1 commit into
wolfSSL:masterfrom
ejohnstown:coverage-profraw-failmode
Sep 14, 2026
Merged

padelsbach merged 1 commit into
wolfSSL:masterfrom
ejohnstown:coverage-profraw-failmode

Conversation

@ejohnstown

@ejohnstown ejohnstown commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

The Code Coverage job has been failing intermittently on master and on PR branches. Every test passes; the merge of the raw profiles is what exits 1.

  • Tests SIGKILL their servers in cleanup traps, and a process killed while writing its profile leaves a file with a corrupt header.
  • llvm-profdata defaults to --failure-mode=any, so that one file aborts a merge of hundreds of good ones; --failure-mode=all skips it and still fails when no profile can be read.

The merge step takes --failure-mode=all, so a raw profile left short by
a killed process is warned about and skipped instead of aborting the
report. Tests SIGKILL their servers in cleanup traps, and a process
killed while writing its profile leaves a corrupt header behind. The
step still fails when no profile can be read at all.
Copilot AI lite review requested due to automatic review settings September 14, 2026 18:29

Copilot AI 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.

🟢 Approval recommended

No unresolved issues remain, and failure is preserved when no usable profiles are available.

Pull request overview

This pull request makes coverage profile merging resilient to isolated truncated raw profiles while preserving failure when no valid profiles exist.

Changes:

  • Uses llvm-profdata-18 merge --failure-mode=all.
  • Documents truncated profile handling.
File summaries
File Summary
.github/workflows/code-coverage.yml Adjusts raw profile merging to tolerate isolated corrupt files.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@padelsbach
padelsbach merged commit 399c83b into wolfSSL:master Sep 14, 2026
185 checks passed
@ejohnstown
ejohnstown deleted the coverage-profraw-failmode branch September 14, 2026 22:55
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.

4 participants