Skip to content

ci: report discarded PGO profile counts by platform - #2527

Merged
capy-ai[bot] merged 1 commit into
nx2from
capy/report-discarded-pgo-profile
Nov 24, 2026
Merged

capy-ai[bot] merged 1 commit into
nx2from
capy/report-discarded-pgo-profile

Conversation

@zortos293

@zortos293 zortos293 commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Linux x86-64, Linux ARM64, and Windows x86-64 PGO jobs now summarize the number of LLVM control-flow hash-mismatch warnings, including how many discard nonzero counts. The summary counts diagnostics emitted by the build, not unique functions or the share of execution lost. Linux enables the backend warnings without making them fatal; Windows keeps its existing flags. Profiles, optimization settings, release triggers, and packaging are unchanged.

Reported in #2526. Tested the exact build step against the Windows build 393 and 399 logs (655/334 and 664/336), plus zero-warning, non-PGO, failure, and diagnostic I/O cases. actionlint and git diff --check passed. No existing summary implementation in Eglantine’s nx2/nx2-experimental or the Lichii Linux profile refresh PRs (#1909, #1205).

Open in Capy

Summary by CodeRabbit

  • Chores
    • Release build summaries now include counts of profile-mismatch warnings and discarded profile data.
    • Build failures are reported with their original status, while output-capture issues are warned about separately.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The release workflow changes Linux PGO warning flags and reports profile-mismatch diagnostics in job summaries. PGO build failures retain their build status, while non-PGO builds continue to run directly.

Changes: PGO warning reporting

Layer / File(s) Summary
Capture and report PGO diagnostics
.github/workflows/release-binaries.yml
Linux PGO builds enable backend-plugin warnings without making them errors. PGO builds capture output and report profile-mismatch counts, including nonzero discarded counts. Build failures exit with the build status; non-PGO builds continue to run directly with unrestricted parallelism.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Possibly related issues

  • zortos293/Lichii#2526: This change exposes and counts hash-mismatch diagnostics, but does not retrain or change the committed PGO profiles.

Suggested reviewers: djihads80, camillelavey

Merge Risk: Minimal · up to 8ee6f

This change adds summaries of PGO profile-mismatch warnings to release build jobs and enables Linux backend-plugin warnings without making them fatal. It does not alter profiles, optimization settings, or packaging. No material merge risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "ci: report discarded PGO profile counts by platform" matches the main change. The PR adds job-summary reporting of profile-mismatch warnings and nonzero discarded counts for the PGO builds …
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "ci: report discarded PGO profile counts by platform" matches the main change. The PR adds job-summary reporting of profile-mismatch warnings and nonzero discarded counts for the PGO builds on Linux x86-64, Linux ARM64, and Windows x86-64. The title does not mention the backend-plugin flag change, but that change is secondary. The title is specific, concise, and uses a conventional commit prefix.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 527c1673-9e34-4c77-9d82-f9806459802f
Commits

Reviewing files that changed from the base of the PR and between 34bc395 and 8ee6f13.

Files selected for processing: 1

  • .github/workflows/release-binaries.yml

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

@capy-ai capy-ai Bot 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.

Capy found no issues.

View 1 other finding in Capy.

Open in Capy

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.

1 participant