feat(tools): validate versioned compatibility reports #2391

Closed
WallfacerX wants to merge 1 commit from upstream-pr/2391 into main
WallfacerX commented 2026-10-09 17:31:04 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by WallfacerX on 2026-10-09T17:31:04Z.


What

Related to #1671. Add a minimal versioned JSON compatibility-report contract and a standard-library Python validator for discussion in a draft PR.

The validator accepts partial reports with explicit reasons for unavailable data, preserves unknown/untested and failed results, and rejects unsupported statuses, missing required fields, contradictory pre-launch progress, and completion claims without an objective and milestone evidence references. It rejects duplicate JSON keys rather than silently replacing an earlier result.

The CLI validates one report without modifying it, returns 0 for valid structure and 2 for invalid input, and explicitly states that gameplay is not verified. Register its tests with CTest and document the contract, one valid synthetic launch-failure example, and invalid examples in docs/dev/COMPATIBILITY_REPORT.md.

This is the validator slice proposed in the issue discussion. The contract is provisional: it does not implement collection, performance sampling, artifact verification, scenario-specific required-check policy, complete reproducibility metadata, or actual title reports. Evidence references are checked structurally, not opened or evaluated. Completion can coexist with failed or untested quality checks. Issue #1671 remains open.

Tested

  • macOS, Python 3.12.14: python3 -m unittest discover -s tools/tests -p 'test_*.py' — 56 tests passed, including 33 validator tests.
  • macOS, system Python 3.9.6: the 33 validator tests passed. Full tools discovery encounters 8 errors in upstream test_pr_overlap_encoding.py, which patches subprocess._text_encoding, unavailable in Python 3.9; the full suite passes on Python 3.12.
  • CMake configured in relinker-only mode; CTest ran pr_overlap_encoding, progress_report, import_audit, and compatibility_report — all four suites passed (1.71 seconds total). No C++ targets were built.
  • tools/check_conventions.py passed against the upstream base, including the proposed PR title and description; git diff --check passed.
  • The documented JSON example validates. CLI success/error exit codes and preservation of the input file are tested.
  • No game/homebrew runs, Windows/Linux execution, GPU tests or performance measurements. All new fixtures are synthetic.

Checklist

  • Based on upstream main at f8c2f072463465f875dedb0d20b66c339160c1a1; checked open PRs and the #1671 discussion for overlap, with no report-validator implementation identified
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt — no code comments added
  • Unimplemented paths throw; silent stubs are listed in TechnicalDebt — no runtime exports or stubs changed
  • No notes, investigation files or images added; the new Markdown file documents the report contract and CLI
  • New third-party code is a submodule built from source — no third-party code or runtime dependencies added
  • Generic behavior, not specific to one title
  • Depends on: none
  • AI-assisted: yes — developed with OpenAI Codex
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:4803756152 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2391). Originally posted by [WallfacerX](https://github.com/WallfacerX) on 2026-10-09T17:31:04Z. --- ### What Related to #1671. Add a minimal versioned JSON compatibility-report contract and a standard-library Python validator for discussion in a draft PR. The validator accepts partial reports with explicit reasons for unavailable data, preserves unknown/untested and failed results, and rejects unsupported statuses, missing required fields, contradictory pre-launch progress, and completion claims without an objective and milestone evidence references. It rejects duplicate JSON keys rather than silently replacing an earlier result. The CLI validates one report without modifying it, returns 0 for valid structure and 2 for invalid input, and explicitly states that gameplay is not verified. Register its tests with CTest and document the contract, one valid synthetic launch-failure example, and invalid examples in `docs/dev/COMPATIBILITY_REPORT.md`. This is the validator slice proposed in the issue discussion. The contract is provisional: it does not implement collection, performance sampling, artifact verification, scenario-specific required-check policy, complete reproducibility metadata, or actual title reports. Evidence references are checked structurally, not opened or evaluated. Completion can coexist with failed or untested quality checks. Issue #1671 remains open. ### Tested - macOS, Python 3.12.14: `python3 -m unittest discover -s tools/tests -p 'test_*.py'` — 56 tests passed, including 33 validator tests. - macOS, system Python 3.9.6: the 33 validator tests passed. Full tools discovery encounters 8 errors in upstream `test_pr_overlap_encoding.py`, which patches `subprocess._text_encoding`, unavailable in Python 3.9; the full suite passes on Python 3.12. - CMake configured in relinker-only mode; CTest ran `pr_overlap_encoding`, `progress_report`, `import_audit`, and `compatibility_report` — all four suites passed (1.71 seconds total). No C++ targets were built. - `tools/check_conventions.py` passed against the upstream base, including the proposed PR title and description; `git diff --check` passed. - The documented JSON example validates. CLI success/error exit codes and preservation of the input file are tested. - No game/homebrew runs, Windows/Linux execution, GPU tests or performance measurements. All new fixtures are synthetic. ### Checklist - [x] Based on upstream `main` at `f8c2f072463465f875dedb0d20b66c339160c1a1`; checked open PRs and the #1671 discussion for overlap, with no report-validator implementation identified - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except technical debt — no code comments added - [x] Unimplemented paths throw; silent stubs are listed in TechnicalDebt — no runtime exports or stubs changed - [x] No notes, investigation files or images added; the new Markdown file documents the report contract and CLI - [x] New third-party code is a submodule built from source — no third-party code or runtime dependencies added - [x] Generic behavior, not specific to one title - [x] Depends on: none - [x] AI-assisted: yes — developed with OpenAI Codex
github-actions[bot] commented 2026-10-09 17:31:21 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by github-actions[bot] on 2026-10-09T17:31:21Z.


Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6085955054 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/2391#issuecomment-6085955054). Originally posted by [github-actions[bot]](https://github.com/apps/github-actions) on 2026-10-09T17:31:21Z. --- Thank you for your interest in the project! We are sorry, but we cannot accept more PRs while we work through the existing backlog. This PR has been automatically closed and labeled "intake paused". This is not a judgment of the quality of your changes.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!2391
No description provided.