mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 21:30:53 +01:00
[PR #2379] tools: gpu_results.py reads the GPU test records into one overview (GPU-RESULTS-OVERVIEW) #2382
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#2382
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/2379
Author: @syfyra
Created: 11/26/2026
Status: 🔄 Open
Base:
main← Head:feat/gpu-results-overview📝 Commits (1)
346117ctools: gpu_results.py reads the GPU test records into one overview (GPU-RESULTS-OVERVIEW)📊 Changes
3 files changed (+746 additions, -0 deletions)
View changed files
➕
gpu-test-results/README.md(+37 -0)➕
tests/test_gpu_results.py(+354 -0)➕
tools/gpu_results.py(+355 -0)📄 Description
Claimed in the coordination issue as: GPU-RESULTS-OVERVIEW (https://github.com/ubiquitarianism/leonida/issues/1608#issuecomment-7197591142)
Depends on: none. No open pull request changes these three files (checked with the
scripts/pr_overlap.pyof #2349); it does not touchdocs/gpu_test_results.md, which 33 open pull requests edit, or any record.What and why
gpu-test-results/holds 46 records and 35 open pull requests add 38 more, but nothing reads them. Which fixtures fail on which GPUs and drivers is only in their prose, and the hand-written table indocs/gpu_test_results.mdlists 11 runs.tools/gpu_results.pyparses theKey: valuefields the records share and prints one overview:main, the native and the wave64-emulated run ofrun_gpu_tests.pyas passed/total with skips and failures, and the fixtures it lists as failed;--markdownprints the record table for a document,--jsoneverything as one object, and--checknames each record that lacksGPU,Driver,OSorCommit, or whoseCommithas no hash, and exits 1 when there is one.gpu-test-results/README.mdstates the format, which until now was "the format of the files there".What is read from prose is a convention, not a grammar: a run is a line with
N/M passed, labelled by what stands before it or after it in parentheses; a failed fixture is one theFailed:field opens with, or one that starts a line of its own asps_c: .... A wrapped sentence that starts with a fixture that passes ("cs_d and cs_e pass with #N applied") is not counted.On the 46 records of
main(30 NVIDIA, 12 AMD, 2 Apple, 1 Intel, 1 llvmpipe), withmainat56bdd7e88:cs_imgload_tfeandcs_imgload_d16_tfeare listed by 17 records on four vendors; the newest of them is 1,202 commits behindmain, and 24 records taken at newer commits do not list them.cs_imgatomic_extis listed by 10 records (9 NVIDIA, 1 Apple), among them the newest record there is, so no newer record says it is gone.--check. Of the 38 record files in open pull requests, 36 pass; the one in #2204 has noGPUand noDriverfield and the one in #2238 noOSfield.One thing for the reviewer to decide:
tests/test_gpu_results.pyalso reads the repository's own records and fails for one that lacks a required field, so a pull request that adds such a record fails that test. That is the point of--check, but it would turn the two pull requests above red once this is merged; the test classRepositoryRecordsTestcan be dropped without touching the rest.Tested
Windows 11, Python 3.14.7, git 2.55.0:
python -I tests/test_gpu_results.py: 19 tests on synthetic records in the layouts the real files use (invented devices and numbers): fields and continuation lines, the short names, the run labels in the spellings the records use, the failed fixtures with wrapped prose, problems and notes, the fixture table and its ordering, commit distances on a throwaway git repository, the text, Markdown and JSON output,--check, and the repository's own 46 records.main, where the tool does not exist.<=for<in the newer-record count, and so on): 61 fail a test in a copy outside a git checkout, and the last one, which makes--no-gitask git anyway, fails two tests in the checkout.python -I tools/gpu_results.pyon this repository: 1.1 s for the 46 records including the commit distances;--check,--markdownand--jsonrun on them too.python -Ion the 13tests/test_docs_*.py,tests/test_i18n_index.py,tests/test_tool_stdout_encoding.py,tests/test_text_write_line_endings.pyandtests/test_ci_registration.py;python -I scripts/check_no_game_data.pyon the three files.GPUs tested: n/a
AI-assisted: yes
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (No translator rule in this change.)🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.