feat(run-report): add the run report schema, fixtures and schema tests #14165
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14165"
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?
Imported from boykopovar/AnyPS5. Originally posted by oneandonlydean on 2026-10-31T21:48:29Z.
What
Adds the run report format: a JSON schema (
docs/run-report.schema.json, version 1), example reports (one per stop reason: none, assert, crash, missing function, unsupported shader, unsupported format, other; plus a run with no presented frame, one without GPU metadata and one recovered after the process was killed), and a test that checks every example against the schema and that malformed or contradictory reports are rejected. A small workflow runs that test when the schema, the examples or the test change.This is the first of four PRs. It holds only the format, so the format can be reviewed on its own before any code writes it. The follow-ups are:
--aps5-report/APS5_REPORTswitch, with tests that validate their output against this schema.The largest example (a report cut at its size limit) is generated by the test instead of being committed. It is about 3,000 lines of repeated entries, and the test also checks that the generated report validates and stays under 64 KiB.
*.jsonis ignored onmain, so.gitignoreun-ignores only the schema and the example folder.Tested
Linux, in a venv with
tools/requirements-run-report.txt(jsonschema 4.23.0):python tools/tests/test_run_report_schema.py-> 27 tests OK. As a negative check, changing a limit or the version constant in the schema makes the test fail. Restored, it passes again.python3 tools/check_conventions.pypasses. No C++ is changed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-31T22:23:51Z.
Review: APPROVED
Reviewed — looks good
The exact head passes its pinned schema suite and hosted schema check; I found no blocking defect, with one non-blocking timestamp-validation limitation noted below.
What I ran
Reviewed head
63299d50788b927b5b18988251f35b9f220f8d9fagainst PR base3c8e5d9d428df7306f760df8e165410b68fe68f2. A local merge preview against currentmain1bc97b9527eaf6b56681cd3465bca67b75329161was clean. Environment: Debian Linux x86_64, Python 3.11.2; no C/C++ compiler was needed for this schema-only change.The test command ran from an isolated checkout of the exact head, with dependencies installed from
tools/requirements-run-report.txt(includingjsonschema==4.23.0). I also tested the cap assertion by changing onlymissing.functions.maxItemsfrom 200 to 201 in a disposable copy and rerunning the suite.Results
git diff --checkfor the PR base and head).jsonschemawas 4.10.3 while the PR pins 4.23.0. The pinned-environment rerun above passes. The precheck's negative-control harness could not run this new-schema test against base because the schema/fixtures do not exist on base; its test-quality helper was also unavailable in the extracted PR checkout. The separate head-copy negative control above did run.Unedited output — pinned suite
Unedited output — negative control
Unedited output — precheck environment mismatch
Negative control
test_lists_over_the_caps_are_rejectedmissing.functions.maxItemsfrom 200 to 201, allowing the over-cap fixture through the mutated schema.Findings
Blocking
None.
Non-blocking
generatedchecks the timestamp's digit layout but not whether its date/time components are valid; for example,2026-99-99T88:88:88Zpasses schema validation. If the schema is intended to guarantee a real UTC timestamp, consider tightening validation and adding an invalid-calendar-value test. This does not block the report schema's current fixture and bounds coverage.Sources
Not verified