diff options
Diffstat (limited to 'docs/progress_dashboard.md')
| -rw-r--r-- | docs/progress_dashboard.md | 57 |
1 files changed, 55 insertions, 2 deletions
diff --git a/docs/progress_dashboard.md b/docs/progress_dashboard.md index 88647e1f0..408926829 100644 --- a/docs/progress_dashboard.md +++ b/docs/progress_dashboard.md | |||
| @@ -13,6 +13,21 @@ start ..\leonida_progress\progress.html | |||
| 13 | The page is one self-contained HTML file: no network, no packages, it opens from disk. The project logo | 13 | The 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. | 14 | (`assets/logo.png`) is embedded in it, and the page follows the system theme until you pick one with its theme button. |
| 15 | 15 | ||
| 16 | Use a CTest JUnit report when the run includes tests configured with `SKIP_RETURN_CODE`. CTest can log those | ||
| 17 | skips as `Test Passed.` in `LastTest.log`. `--ctest-junit` replaces the local log with the report, which preserves | ||
| 18 | the skipped status. Use `--junit` to add independent runs. A new file name for each run keeps an aborted CTest run | ||
| 19 | from reusing an older report. | ||
| 20 | |||
| 21 | ```powershell | ||
| 22 | $report = Join-Path $env:TEMP ("leonida-ctest-{0}.xml" -f [guid]::NewGuid()) | ||
| 23 | ctest --test-dir runtime/build -C RelWithDebInfo --output-on-failure --output-junit $report | ||
| 24 | if (Test-Path -LiteralPath $report -PathType Leaf) { | ||
| 25 | python -I tools/progress_dashboard.py --out ..\leonida_progress --ctest-junit $report | ||
| 26 | } else { | ||
| 27 | throw "CTest did not produce a JUnit report (exit $LASTEXITCODE)." | ||
| 28 | } | ||
| 29 | ``` | ||
| 30 | |||
| 16 | ## Sources | 31 | ## Sources |
| 17 | 32 | ||
| 18 | Each source is optional. A missing one is listed under "Sources" on the page; it is never counted as zero or as a failure. | 33 | Each source is optional. A missing one is listed under "Sources" on the page; it is never counted as zero or as a failure. |
| @@ -27,9 +42,9 @@ are read directly; there is no need to re-save them as UTF-8. | |||
| 27 | | 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 | | 42 | | 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 | |
| 28 | | Runtime imports | the measured tables in [runtime_imports.md](runtime_imports.md) | import | | 43 | | Runtime imports | the measured tables in [runtime_imports.md](runtime_imports.md) | import | |
| 29 | | Shader corpus | `--work <work>`: counts per stage from `<work>/shaders/dxbc/index.json` and `<work>/shaders/spirv/index.json` | shaders, aggregated per stage | | 44 | | Shader corpus | `--work <work>`: counts per stage from `<work>/shaders/dxbc/index.json` and `<work>/shaders/spirv/index.json` | shaders, aggregated per stage | |
| 30 | | Pull requests into main | `--github`: every pull request into `main` of the main repository (`--repo`, default `ubiquitarianism/leonida`), grouped by the item ID its title names (`D3D-86: …`, `… (SHADER-339)`) | pull request | | 45 | | Pull requests into main | `--github`: every pull request into `main` of the main repository (`--repo`, default `ProjectLeonida/mandy`), grouped by the item ID its title names (`D3D-86: …`, `… (SHADER-339)`) | pull request | |
| 31 | | D3D12 layer | `--github`: the `D3D-` table of the D3D12 tracking issue, read through `gh` and checked against the merged and open pull requests. The issue is the open one whose title starts with "D3D12 → Vulkan layer", or the one `--d3d-issue N` names; when the repository has neither, the sources list says so and the panel stays empty (the number is not fixed: it was #313 in the original repository) | item | | 46 | | D3D12 layer | `--github`: the `D3D-` table of the D3D12 tracking issue, read through `gh` and checked against the merged and open pull requests. The issue is the open one whose title starts with "D3D12 → Vulkan layer", or the one `--d3d-issue N` names; when the repository has neither, the sources list says so and the panel stays empty (the number is not fixed: it was #313 in the original repository) | item | |
| 32 | | CI on main | `--github`: the latest completed run of each workflow on `main` | workflow | | 47 | | CI | `--github`: the latest observed run per workflow on `--ci-branch` (default `main`) plus repository-wide workflow configuration | workflow | |
| 33 | 48 | ||
| 34 | Every run with `--github` reads the pull requests again, so a merge into `main` shows up on the next run as | 49 | Every run with `--github` reads the pull requests again, so a merge into `main` shows up on the next run as |
| 35 | IMPLEMENTED, even before a tracking table (such as the D3D12 tracking issue's PR column) is edited. A pull request closed without merging is | 50 | IMPLEMENTED, even before a tracking table (such as the D3D12 tracking issue's PR column) is edited. A pull request closed without merging is |
| @@ -44,6 +59,44 @@ grabs", "Ready for review or a GPU test", "Needs a rebase on `main`") in the pag | |||
| 44 | <account>` the page also lists that account's claims in the coordination issue (and the issue it continues) and its 50 | 59 | <account>` the page also lists that account's claims in the coordination issue (and the issue it continues) and its 50 |
| 45 | latest pull requests. Nothing is posted: every `gh` call is a read. | 60 | latest pull requests. Nothing is posted: every `gh` call is a read. |
| 46 | 61 | ||
| 62 | ## CI results | ||
| 63 | |||
| 64 | Pass `--ci-branch` to inspect another branch while keeping the pull-request panels on `main`. | ||
| 65 | |||
| 66 | ```powershell | ||
| 67 | python -I tools/progress_dashboard.py --out ..\leonida_progress --github --ci-branch my-branch | ||
| 68 | ``` | ||
| 69 | |||
| 70 | The CI panel selects the newest observed run of each workflow, including incomplete runs. An older pass cannot | ||
| 71 | hide a newer cancellation or authorization request. Workflows are matched by ID, so a rename does not split a | ||
| 72 | workflow, and two workflows with the same name stay separate. Run details include the raw status and conclusion, | ||
| 73 | GitHub's associated `headSha`, event, run ID, attempt, link, and suggested action. A pull request runner can check out | ||
| 74 | a different merge commit. Rows without a run link to the workflow or repository Actions page. | ||
| 75 | |||
| 76 | | CI state in JSON/details | Dashboard status | What to do | | ||
| 77 | |---|---|---| | ||
| 78 | | `passed` | VERIFIED | Inspect the linked successful run for its actual scope | | ||
| 79 | | `failed` (`failure`, `timed_out`, `startup_failure`) | FAILED | Inspect failed jobs and steps; keep the failing gate | | ||
| 80 | | `skipped` | UNKNOWN | Check conditions and prerequisites; no execution is established | | ||
| 81 | | `cancelled` | UNKNOWN | Check cancellation or a superseding run before requesting a rerun | | ||
| 82 | | `authorization_pending` (`action_required`) | BLOCKED | A maintainer reviews the external workflow before authorizing it | | ||
| 83 | | `pending` (`queued`, `requested`, `waiting`, `pending`, `in_progress`) | UNKNOWN | Wait; inspect queue, concurrency and approval blockers | | ||
| 84 | | `not_configured` | MISSING | The repository inventory explicitly reports a disabled/deleted workflow, or returns no workflows; a maintainer checks whether it should be enabled/restored | | ||
| 85 | | `not_observed` | UNKNOWN | An active workflow has no run in the queried history; check branch/path/event triggers and a wider history | | ||
| 86 | | `source_unavailable` | UNKNOWN | Check GitHub CLI authentication, read access and network, then refresh | | ||
| 87 | | `neutral` or `unknown` | UNKNOWN | Inspect the metadata; neither establishes a passing check | | ||
| 88 | |||
| 89 | Configuration and execution are separate evidence. A disabled workflow with an observed failure keeps that failure | ||
| 90 | visible and records its disabled configuration too. A failed query never establishes a disabled workflow. No run | ||
| 91 | in the history does **not** prove a path-filter skip, pending authorization, or missing configuration. | ||
| 92 | |||
| 93 | The run query covers at most 40 runs on the selected branch across all events, and selects one latest run per | ||
| 94 | workflow. Older events and runs may be absent. The separate repository-wide inventory includes disabled workflows, | ||
| 95 | at most 1000 entries, and is not a branch-specific workflow or CTest inventory. Both limits and query errors appear | ||
| 96 | under Sources. The panel reports workflow metadata. To check individual jobs, steps, test cases, or the commit that | ||
| 97 | ran, follow the run link. GitHub queries are read-only, and reported CI failures do not change the dashboard | ||
| 98 | generator's exit code. | ||
| 99 | |||
| 47 | ## How a status is decided | 100 | ## How a status is decided |
| 48 | 101 | ||
| 49 | | Status | Unit tests and CTest | Contract row | Import | Pull request | D3D- item | | 102 | | Status | Unit tests and CTest | Contract row | Import | Pull request | D3D- item | |