List uncovered instruction forms and distinguish missing evidence from skipped fixtures #498

Merged
descent81 merged 1 commit from upstream-pr/504 into main 2026-11-22 08:28:33 +00:00
descent81 commented 2026-11-22 08:22:37 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by descent81 on 2026-11-22T08:22:37Z.


Motivation

The dashboard shows how many instruction forms a group covers. A contributor choosing the next fixture still needs to identify the individual encoding and determine whether an existing test already exercises it. A skipped fixture and a form with no evidence in the run suggest different next steps.

Usage

python tools/form_coverage.py results.xml --records out/dev/form_coverage --gaps gfx1013

The command prints a sortable TSV with one row per uncovered reference form. It also supports gfx1030 and x64_zen2.

Evidence Interpretation for the supplied run
skipped A skipped fixture contains the form and no passing fixture covers it.
observed_without_pass The form appears in fixture evidence, with no passing or skipped fixture.
unobserved No fixture evidence in this measurement matches the form.

The report uses the same reference sets, encoding normalization and accepted records as the dashboard. A partial run can list forms covered elsewhere. The contributor guide includes this limitation and a reproducible invocation.

Verification

  • Ran tests/form_coverage_check.py successfully. The new regression exercises shared forms across passing, skipped and failed fixtures, plus an uncovered e64 encoding whose e32 counterpart passed.
  • Ran the CLI on a local partial CTest JUnit file for all three architectures. Each output contained exactly total - covered distinct rows. The accompanying JSON was byte-identical with and without the gap report.
  • This change adds a way to inspect existing measurements. It claims no increase in translated instruction coverage.
<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6540222223 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/504). Originally posted by [descent81](https://github.com/descent81) on 2026-11-22T08:22:37Z. --- ## Motivation The dashboard shows how many instruction forms a group covers. A contributor choosing the next fixture still needs to identify the individual encoding and determine whether an existing test already exercises it. A skipped fixture and a form with no evidence in the run suggest different next steps. ## Usage ```powershell python tools/form_coverage.py results.xml --records out/dev/form_coverage --gaps gfx1013 ``` The command prints a sortable TSV with one row per uncovered reference form. It also supports `gfx1030` and `x64_zen2`. | Evidence | Interpretation for the supplied run | | --- | --- | | `skipped` | A skipped fixture contains the form and no passing fixture covers it. | | `observed_without_pass` | The form appears in fixture evidence, with no passing or skipped fixture. | | `unobserved` | No fixture evidence in this measurement matches the form. | The report uses the same reference sets, encoding normalization and accepted records as the dashboard. A partial run can list forms covered elsewhere. The contributor guide includes this limitation and a reproducible invocation. ## Verification - Ran `tests/form_coverage_check.py` successfully. The new regression exercises shared forms across passing, skipped and failed fixtures, plus an uncovered e64 encoding whose e32 counterpart passed. - Ran the CLI on a local partial CTest JUnit file for all three architectures. Each output contained exactly `total - covered` distinct rows. The accompanying JSON was byte-identical with and without the gap report. - This change adds a way to inspect existing measurements. It claims no increase in translated instruction coverage.
upstream-sync closed this pull request 2026-11-24 06:43:24 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!498
No description provided.