Skip to content

Report coverage for all discovered shader programs - #310

Merged
pablogonz12 merged 2 commits into
mainfrom
port/pr30-coverage
Nov 27, 2026
Merged

pablogonz12 merged 2 commits into
mainfrom
port/pr30-coverage

Conversation

@pablogonz12

@pablogonz12 pablogonz12 commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

Summary

discovered program → stage denominator → emission → optional validation and pipeline counts

Ports GrapeJuice429’s contribution from #30 and preserves its authorship.

Evidence

  • Before: programs failing before emission were omitted from stage denominators.
  • After: regression test covers worker aggregation and all four flag combinations; app tests pass. One offline run: 751/751 programs translated and 751/751 pipelines created on RADV.

Merge Danger

Door: two-way

Blast Radius: reporting

Summary by CodeRabbit

  • Improvements
    • Translation reports now show program counts by hardware stage, including how many were found, attempted, emitted, and validated. Pipeline totals are included when pipeline checks are requested.
  • Credits
    • Added GrapeJuice429 to the authors list.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Changes: Translation tally and reporting

Layer / File(s) Summary
Stage tally model
apps/victory/src/translate.rs
Per-stage emission tallies replace the prior flat counters. Tally merging aggregates stage counts and the separate lifted-program count.
Stage count updates
apps/victory/src/translate.rs
Program discovery, emission, pipeline creation, and validation update the matching stage tally.
Combined reports and tests
apps/victory/src/translate.rs
Reports derive DXIL totals from stage tallies and show other stages only when present. Tests cover tally merging and optional summary fields.

Credits

Layer / File(s) Summary
Author list
CREDITS.md
The authors list adds GrapeJuice429.

Suggested reviewers: fxceless

Change: Bug fix

Merge Risk: Minimal · up to e06d6

This change affects only how shader translation coverage is reported, plus a contributor credit. No concrete problem was found, so it looks safe to merge.

Security architecture risk: Minimal · up to e06d6

The change counts shaders that fail before emission, making coverage reports more complete. It changes what the command prints, not which shaders it processes or when validation and pipeline creation run. Scripts that parse the old output may need updating.

Retained concerns
No architecture-level concerns identified.

Security review details

Trust Boundaries and Controls

  • observed — The same CLI paths supply files through the existing file-type and size checks. The change to validation and pipeline handling is limited to which counters are incremented after success, not when those operations are invoked.
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

Usage-based review receipt

  • Mode: Continue automatically
  • Reviewed files: 2
  • Waived: $0.50 (charged $0.00)
  • View usage details

Note

This review exceeded your plan’s limits and used usage-based reviews—free during trial, billed after paid activation unless disabled. Manage usage-based reviews.

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: 654649f2-4ee6-4a92-9a18-9f2fe2a5a040
Commits

Reviewing files that changed from the base of the PR and between 50b06f4 and e06d661.

Files selected for processing: 2

  • CREDITS.md
  • apps/victory/src/translate.rs

Limit details: You’ve used all 10 included reviews currently available.

@pablogonz12
pablogonz12 merged commit bdcff66 into main Nov 27, 2026
4 checks passed
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