upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/progress_dashboard.md
diff options
context:
space:
mode:
authorVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 22:01:03 +0100
committerVonsek <45567075+Vonsek@users.noreply.github.com>2026-11-22 22:01:03 +0100
commit3a1ed28bebf374321149bc4bbffc005ea6f691c4 (patch)
tree8884d5f8c45eef1e8f4d3a806790418de278ae55 /docs/progress_dashboard.md
parent0d58747e0da27dcb44b0127831260b763913fc2f (diff)
parentf847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff)
Merge main into hw4-ps-formats (#3499)
docs/shader_validation.md AI-assisted.
Diffstat (limited to 'docs/progress_dashboard.md')
-rw-r--r--docs/progress_dashboard.md62
1 files changed, 62 insertions, 0 deletions
diff --git a/docs/progress_dashboard.md b/docs/progress_dashboard.md
new file mode 100644
index 000000000..ad5b7b1f6
--- /dev/null
+++ b/docs/progress_dashboard.md
@@ -0,0 +1,62 @@
1# Progress dashboard
2
3`tools/progress_dashboard.py` turns outcomes the project already produces into one page that answers three questions:
4what works, what changed since it last passed, and what blocks next. It runs locally, reads only, and writes nothing
5into the repository.
6
7```powershell
8python -I tools/progress_dashboard.py --out ..\leonida_progress --run-tests --github
9start ..\leonida_progress\progress.html
10```
11
12`--out` must be outside the repository; the tool refuses a folder inside it, so its output can't be committed by accident.
13The page is one self-contained HTML file: no network, no packages, it opens from disk. The project logo
14(`assets/logo.png`) is embedded in it, and the page follows the system theme until you pick one with its theme button.
15
16## Sources
17
18Each source is optional. A missing one is listed under "Sources" on the page; it is never counted as zero or as a failure.
19
20| Panel | Source | Unit |
21|---|---|---|
22| Unit tests | `--run-tests` runs `tests/test_*.py` with the selection `ci.yml` uses (standard-library files with a `__main__` block), one process each; the outcome and the commit it ran on are kept in `<out>/unit_results.json` | test file |
23| Runtime tests | `runtime/build/Testing/Temporary/LastTest.log` and any `--junit` file (CTest `--output-junit` or pytest `--junitxml`) | test |
24| GPU tests | `--gpu-log <file>[=<GPU, driver, OS>]`: the saved output of `runtime/test/shaders/check.py`, one group per GPU; a log older than the last commit touching `runtime/test/shaders` or `tools/rdna2spirv.py` counts as needing a re-run | test program |
25| Translator contract | the contract table in [design.md](design.md#translator-status-and-runtime-contract), each row classified by how it says it was confirmed | contract row |
26| Runtime imports | the measured tables in [runtime_imports.md](runtime_imports.md) | import |
27| Shader corpus | `--work <work>`: counts per stage from `<work>/shaders/dxbc/index.json` and `<work>/shaders/spirv/index.json` | shaders, aggregated per stage |
28| Pull requests into main | `--github`: every pull request into `main` of the main repository (`--repo`, default `ItsNotRexed/Leonida`), grouped by the item ID its title names (`D3D-86: …`, `… (SHADER-339)`) | pull request |
29| D3D12 layer | `--github`: the `D3D-` table of [#313](https://github.com/ItsNotRexed/Leonida/issues/313), read through `gh` and checked against the merged and open pull requests | item |
30| CI on main | `--github`: the latest completed run of each workflow on `main` | workflow |
31
32Every run with `--github` reads the pull requests again, so a merge into `main` shows up on the next run as
33IMPLEMENTED, even before a tracking table (such as #313's PR column) is edited. A pull request closed without merging is
34left out. The page also lists the 30 latest merges, and the trend chart follows the share of pull requests merged and
35of item IDs with a merged pull request. `gh pr list` reads at most 5000 per state; the Sources table says when that
36limit is reached.
37
38With `--github --login <account>` the page also lists that account's claims in the coordination issue (and the issue
39it continues) and its pull requests. Nothing is posted: every `gh` call is a read.
40
41## How a status is decided
42
43| Status | Unit tests and CTest | Contract row | Import | Pull request | D3D- item |
44|---|---|---|---|---|---|
45| VERIFIED | passed, and nothing it depends on changed since | names a GPU check and leaves nothing open | image with 0 unimplemented imports | — | — |
46| IMPLEMENTED | — | confirmed by an LLVM/Mesa reference, a corpus count or a CPU test, not a GPU | bound to a shim, the host or a module | merged into `main` | a PR merged into `main` and none open |
47| PARTIAL | passed before a change to the test, `tools/`, `scripts/` or `make_game.py` (CTest: before the last commit touching `runtime/`) | waits for a GPU measurement, or names a GPU check with an item still open | — | open | pull request open |
48| FAILED | failed on its last run | — | — | — | — |
49| MISSING | — | — | unimplemented | — | unclaimed |
50| UNKNOWN | skipped, or git can't tell what changed | states no confirmation method | — | — | claimed, no code yet |
51
52The contract classification reads the row's own words; the matched words are shown in each cell's details, so a
53wrong class is visible and the rule list in the tool (`CONFIRMATION`) can be corrected.
54
55Each metric is a ratio with its numerator, denominator and formula on the page. There is no overall percentage: the
56panels count different things. The trend chart breaks a line where a metric's formula changed between snapshots.
57
58## No game data
59
60The page and the JSON carry counts, pass/fail, error classes and the project's own document text. The corpus panel
61stores per-stage numbers only: no shader name, carved file name or path into the game copy. One-line failure details
62are kept with the home folder and drive paths reduced to their last component.