Commit Graph

9 Commits

Author SHA1 Message Date
de16453976 BUILD-1129: recognize the checkout directory before trailing log text 2026-11-23 07:13:01 +08:00
9b04ba4c10 BUILD-1129: redact paths in similarly named sibling folders 2026-11-23 06:58:00 +08:00
5754abc1f6 BUILD-1129: scrub dashboard checkout paths containing spaces 2026-11-23 06:52:34 +08:00
dac28e6b19 Fix what the round-42 merges broke (tests and docs)
- shader_disasm: prune stale listings against every input, not the --skip-existing remainder (a resumed run
  deleted every listing it had just reused).
- progress_dashboard: a drive-letter path is never inside the repository off Windows (it printed user names);
  its own read_text helper is read_utf8, so the encoding check does not take it for pathlib's.
- Translator tests follow this round's rules: desc_lookup's BroadcastFirst in the typed-load condition walker;
  resinfo sizes are 0 past the last level and a 2D depth word is 0 (SHADER-388); SHADER-315 constant folding in
  the perm and i16 tests; #2089's structured wave64 emulation.
- test_semantic_translator_use: 57 oracle-only files merged before it are DEBT; test_spirv_tools_required is
  allowed (CI meta-test).
- Test fixes: image_fuzz fake writes the programs, preflight follows c506d00c's loader hint rule, feature_scan
  reads the first line of a pytest-decorated message, w64_graphics wording.
- docs: rows merged again in design.md, README.md, d3d12_vulkan.md; GameInput table rebuilt from #3172's rows;
  orphan rows in models.md and embedded_shaders.md; repeated bullets; anchors; a flag not on main.
- Repo rules: stdout guard on 14 programs; LF writes; csv lineterminator in bink_play.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 16:14:54 -05:00
b4a2e05585 progress_dashboard: no file name from outside the repository on the page
scrub() kept the last component of every absolute path, so a failing test line
naming a carved shader in the work folder showed the shader's name. A path
inside the repository now becomes its relative path and any other path becomes
<path>, file name included; URLs and relative paths are left alone.

The corpus test checked components, sources and metrics only, so a name added
to notes (which the page prints) passed. It now checks everything the
collector holds. Both cases were found by JRamos1993 in review; each new check
fails when the old behaviour is put back.
2026-11-22 16:52:03 -03:00
56c0bc848e progress_dashboard: project logo in the header, sticky filters, theme switch
The page embeds assets/logo.png as a data: URI, so it stays one file that
opens from disk; without the asset it shows no image. The filters, search
and section links stay at the top while scrolling, each status filter shows
its count, and a button clears the filters. Panel metrics are bars with
their ratio, panels without evidence move after the ones with it, and the
latest merges are a table with item tags and authors. A theme button
overrides the system theme (kept in localStorage when it is available);
the treemaps and the trend chart redraw on a theme change. Neutrals carry
a faint tint from the logo; status colours are unchanged.
2026-11-22 14:48:31 -03:00
4958cb1e72 progress_dashboard: count every pull request merged into main as implemented
With --github the dashboard now reads every pull request into main of the
main repository (--repo, default ItsNotRexed/Leonida) on each run: merged
ones are IMPLEMENTED, open ones PARTIAL, closed-unmerged ones are left out.
They are grouped by the item ID the title names (D3D-, SHADER-, BUILD-, ...).
Two new metrics follow the share of merged pull requests and of item IDs
with a merged pull request, and the page lists the 30 latest merges.

The D3D- items of #313 are checked against the same lists, so a pull
request the table still shows as open but already merged counts as merged,
and one closed without merging no longer keeps the item partial.
2026-11-22 14:42:08 -03:00
2de7683f43 progress_dashboard: read make_game.py's shaders folder; add a GPU-test panel
- corpus: make_game.py writes <work>/shaders/dxbc and <work>/shaders/spirv; the tool
  looked for <work>/dxbc and <work>/spirv and found nothing on a real work folder. The
  shaders folder itself is accepted too. The test now builds that layout.
- GPU tests: --gpu-log <file>[=<GPU, driver, OS>] reads the saved output of
  runtime/test/shaders/check.py, one group per GPU. ok is a pass, SKIP is not counted,
  anything else is a failure with its one-line detail; a log older than the last commit
  touching runtime/test/shaders or tools/rdna2spirv.py counts as needing a re-run.
  Result lines are told from the other lines check.py prints by its {name:20} column.

Checked on a real work folder: 26,501 of 26,503 carved shaders pass spirv-val, and none
of the 26,503 shader names appears in the page or the JSON.
2026-11-22 14:23:53 -03:00
9a82abceb3 tools/progress_dashboard: local page of what works, what changed and what blocks next
progress_dashboard.py (standard library, python -I) collects outcomes the project already
produces and writes a self-contained progress.html, JSON snapshots and a history into a
folder outside the repository (a folder inside it is refused):

- unit tests: --run-tests runs tests/test_*.py with ci.yml's selection, one process each;
  a test counts as current only if neither it nor tools/, scripts/, make_game.py changed
  since it passed (content digests, so uncommitted edits are handled too)
- runtime tests: runtime/build LastTest.log and --junit files (CTest or pytest)
- the translator contract table in docs/design.md, each row classified by how it says it
  was confirmed, with the matched words shown
- the measured tables in docs/runtime_imports.md
- --work: per-stage counts from the user's own carve and translation (numbers only)
- --github (read-only gh): latest completed CI run per workflow on main, the D3D- table
  of #313, the coordination issue's section sizes and, with --login, claims and PRs

No game data: counts, pass/fail and error classes only; no shader names or paths into the
game copy. The page has no packages and no network access. tests/test_progress_dashboard.py
covers the parsers, the classification, freshness, the no-names rule and the output folder.
2026-11-22 14:07:29 -03:00