[Testing/release assurance] Add instrumented checks, explicit coverage, and release evidence #1669

Closed
opened 2026-10-08 16:03:10 +00:00 by Sanjaysrinivas · 0 comments
Sanjaysrinivas commented 2026-10-08 16:03:10 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by Sanjaysrinivas on 2026-10-08T16:03:10Z.


Split from #1659. Category: testing and release assurance.

Problem and desired outcome

A green build must show what actually ran, what was skipped, and which configurations were checked. Today the project has useful automated tests and real-device reports, but the remaining gaps make it difficult to assess the strength of a particular candidate build from its headline result.

The outcome is a compact, reproducible evidence bundle for each maintained CI configuration and release candidate: exact build identity, meaningful test execution, memory/undefined-behavior checks where supported, shader validation status, and explicit GPU coverage.

Current baseline: retain existing improvements

Checked upstream commit: 4b005b229e24be9ec3f185def9e59cbc03aa9e4a.

  • build.yml has a relinker-only host matrix and Windows/Linux full-build jobs with Release tests.
  • Linux CI enables ANYPS5_ENABLE_SPIRV_TOOLS=ON and uses lavapipe for GPU execution tests. A software device's capability-limited skips are valid when reported correctly.
  • #1028 addresses unexpected skips, #1257 addresses unregistered test executables, and #1129 keeps exception runtime assertions active in Release. Preserve these safeguards.
  • #1012 contains successful hardware runs on NVIDIA/Linux and AMD/Windows and explains the remaining visibility gap. Do not characterize this as an absence of hardware testing, or freeze the expected skip list to the original issue title's count.
  • No ASan/UBSan lane is configured in the checked build workflow. The root CMake configuration appends static executable flags, which must be handled when adding a working instrumented build.
  • release.yml runs Release tests but does not pass the Linux CI job's SPIRV-Tools option. Record that distinction; do not assume every produced artifact had identical validation.

Workstream A: meaningful instrumented checks

  • Add a practical Linux ASan/UBSan configuration, beginning with the relinker/parser and suitable allocator/save-data tests. Instrument the code under test and use compatible runtime linkage.
  • Include the concrete boundary/failure regressions from the memory/input and save-integrity categories. Prefer those behaviors over tests that merely mirror implementation details.
  • Make a sanitizer finding fail its CI job and upload enough diagnostics to reproduce it. Verify the lane detects a known failing case while developing it; remove deliberate faults from the final change.
  • Document unsupported components or justified exclusions narrowly. Do not silently disable all instrumentation to get a green build, and do not require unsupported Windows sanitizer configurations for the first increment.

Workstream B: execution and skip accounting

Follow #1012 for the existing GPU coverage discussion.

  • Produce machine-readable and human-readable totals for discovered/selected, executed, passed, failed, skipped, and not-run tests. State how repeated executions are counted.
  • Retain test names, duration, status, skip reason, and failure output. Distinguish expected capability skips from unexpected skips and tests that never started.
  • Record OS, compiler/build options, Vulkan device/vendor/device ID, driver, relevant extensions/features, subgroup size, and capability selections that explain skipped families.
  • Keep the expected coverage policy explicit and reviewed as tests/devices change. A reduced execution set must be visible; unknown skips must not be normalized automatically.
  • Make missing Python-dependent registration and missing required Vulkan devices visible. A job that discovers zero expected tests must not count as a complete pass.
  • Preserve blocked/not-run CI states in the summary. Existing #1631 reports PR checks waiting at action_required; an approval-blocked job supplies no test evidence.

Workstream C: real-device execution

  • Define a repeatable command/environment for the GPU families lavapipe cannot execute. Use existing #1012 reports as initial evidence and identify their commit/device scope.
  • Maintain a coverage table by OS and relevant GPU vendor/capability family. Mark unavailable combinations explicitly rather than infer them from another host or driver.
  • Choose a maintainable collection route: existing hardware contributors, a manual release check, or suitable runners. New always-on infrastructure is not a prerequisite if a reproducible manual report covers the need.
  • Attach comparable machine-readable summaries and failing-case output to each reported run; investigate cross-driver differences using the runtime issue responsible for the behavior.

Workstream D: Release checks and shader validation

  • Audit critical regression checks for NDEBUG behavior. Retain #1129 and ensure each affected test still fails on a broken observable result in Release.
  • Keep Linux generated SPIR-V validation enabled and report whether validation was compiled/enabled for each configuration. Add other configurations only where they provide meaningful supported coverage.
  • Define how release artifacts relate to the tested build. Changing validation options or library builds between testing and packaging must be recorded.
  • Keep test registration, test execution, and packaging failures as visible release blockers under the agreed policy.

Minimum report contents

Field group Required content
Build identity Commit/tag, submodule/library identity, OS/toolchain, CMake options, artifact fingerprint
Test execution Discovery/selection counts, execution/repeat policy, pass/fail/skip/not-run counts, named results
Coverage limits Skip reasons, expected capability limits, absent configurations, blocked jobs
Instrumentation Sanitizer/validation settings, actual run status, diagnostic artifact references
GPU Device/driver/capabilities and executed GPU families
Disposition Unresolved failures, linked issues, documented waivers and the evidence supporting them

Store logs/results with the Actions run or release evidence, consistent with the repository's rule against committing investigation logs and reports into the source tree.

Acceptance criteria

  • A reviewer can determine actual execution coverage without parsing an entire CTest log or interpreting 100% passed as “every test ran.”
  • A regression in a covered parser/allocator/save case fails the instrumented lane with useful diagnostics.
  • An unexpected skip, missing required test/device, and a not-run job remain distinguishable from a pass.
  • Real-GPU runs include enough build/device information to repeat them, and missing coverage remains explicit.
  • Critical checks remain active in Release, and SPIR-V validation status is truthful per configuration.
  • A candidate release has a linked evidence bundle and a stated acceptance decision; unresolved failures are not hidden by aggregate totals.

Boundaries and delivery order

Start with one usable instrumented lane and the summary/skip reporting, then broaden real-device and release reporting as hardware is available. Reuse CMake, CTest and existing Python tooling; a new dashboard or reporting service is unnecessary for the initial deliverable.

The category owners supply meaningful behavioral regressions. This issue supplies repeatable execution and reporting. Even complete synthetic test evidence remains distinct from a real game's gameplay/completion report.

  • Parser/allocator behavioral regressions: #1666.
  • Save failure/recovery regressions: #1667.
  • Shader/kernel behavioral regressions: #1668.
  • Build provenance for title reports: #1671.
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5765003261 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/1669). Originally posted by [Sanjaysrinivas](https://github.com/Sanjaysrinivas) on 2026-10-08T16:03:10Z. --- Split from #1659. Category: **testing and release assurance**. ## Problem and desired outcome A green build must show what actually ran, what was skipped, and which configurations were checked. Today the project has useful automated tests and real-device reports, but the remaining gaps make it difficult to assess the strength of a particular candidate build from its headline result. The outcome is a compact, reproducible evidence bundle for each maintained CI configuration and release candidate: exact build identity, meaningful test execution, memory/undefined-behavior checks where supported, shader validation status, and explicit GPU coverage. ## Current baseline: retain existing improvements Checked upstream commit: `4b005b229e24be9ec3f185def9e59cbc03aa9e4a`. - [`build.yml`](https://github.com/boykopovar/AnyPS5/blob/4b005b229e24be9ec3f185def9e59cbc03aa9e4a/.github/workflows/build.yml) has a relinker-only host matrix and Windows/Linux full-build jobs with Release tests. - Linux CI enables `ANYPS5_ENABLE_SPIRV_TOOLS=ON` and uses lavapipe for GPU execution tests. A software device's capability-limited skips are valid when reported correctly. - #1028 addresses unexpected skips, #1257 addresses unregistered test executables, and #1129 keeps exception runtime assertions active in Release. Preserve these safeguards. - #1012 contains successful hardware runs on NVIDIA/Linux and AMD/Windows and explains the remaining visibility gap. Do not characterize this as an absence of hardware testing, or freeze the expected skip list to the original issue title's count. - No ASan/UBSan lane is configured in the checked build workflow. The root CMake configuration appends static executable flags, which must be handled when adding a working instrumented build. - [`release.yml`](https://github.com/boykopovar/AnyPS5/blob/4b005b229e24be9ec3f185def9e59cbc03aa9e4a/.github/workflows/release.yml) runs Release tests but does not pass the Linux CI job's SPIRV-Tools option. Record that distinction; do not assume every produced artifact had identical validation. ## Workstream A: meaningful instrumented checks - [ ] Add a practical Linux ASan/UBSan configuration, beginning with the relinker/parser and suitable allocator/save-data tests. Instrument the code under test and use compatible runtime linkage. - [ ] Include the concrete boundary/failure regressions from the memory/input and save-integrity categories. Prefer those behaviors over tests that merely mirror implementation details. - [ ] Make a sanitizer finding fail its CI job and upload enough diagnostics to reproduce it. Verify the lane detects a known failing case while developing it; remove deliberate faults from the final change. - [ ] Document unsupported components or justified exclusions narrowly. Do not silently disable all instrumentation to get a green build, and do not require unsupported Windows sanitizer configurations for the first increment. ## Workstream B: execution and skip accounting Follow #1012 for the existing GPU coverage discussion. - [ ] Produce machine-readable and human-readable totals for discovered/selected, executed, passed, failed, skipped, and not-run tests. State how repeated executions are counted. - [ ] Retain test names, duration, status, skip reason, and failure output. Distinguish expected capability skips from unexpected skips and tests that never started. - [ ] Record OS, compiler/build options, Vulkan device/vendor/device ID, driver, relevant extensions/features, subgroup size, and capability selections that explain skipped families. - [ ] Keep the expected coverage policy explicit and reviewed as tests/devices change. A reduced execution set must be visible; unknown skips must not be normalized automatically. - [ ] Make missing Python-dependent registration and missing required Vulkan devices visible. A job that discovers zero expected tests must not count as a complete pass. - [ ] Preserve blocked/not-run CI states in the summary. Existing #1631 reports PR checks waiting at `action_required`; an approval-blocked job supplies no test evidence. ## Workstream C: real-device execution - [ ] Define a repeatable command/environment for the GPU families lavapipe cannot execute. Use existing #1012 reports as initial evidence and identify their commit/device scope. - [ ] Maintain a coverage table by OS and relevant GPU vendor/capability family. Mark unavailable combinations explicitly rather than infer them from another host or driver. - [ ] Choose a maintainable collection route: existing hardware contributors, a manual release check, or suitable runners. New always-on infrastructure is not a prerequisite if a reproducible manual report covers the need. - [ ] Attach comparable machine-readable summaries and failing-case output to each reported run; investigate cross-driver differences using the runtime issue responsible for the behavior. ## Workstream D: Release checks and shader validation - [ ] Audit critical regression checks for `NDEBUG` behavior. Retain #1129 and ensure each affected test still fails on a broken observable result in Release. - [ ] Keep Linux generated SPIR-V validation enabled and report whether validation was compiled/enabled for each configuration. Add other configurations only where they provide meaningful supported coverage. - [ ] Define how release artifacts relate to the tested build. Changing validation options or library builds between testing and packaging must be recorded. - [ ] Keep test registration, test execution, and packaging failures as visible release blockers under the agreed policy. ## Minimum report contents | Field group | Required content | | --- | --- | | Build identity | Commit/tag, submodule/library identity, OS/toolchain, CMake options, artifact fingerprint | | Test execution | Discovery/selection counts, execution/repeat policy, pass/fail/skip/not-run counts, named results | | Coverage limits | Skip reasons, expected capability limits, absent configurations, blocked jobs | | Instrumentation | Sanitizer/validation settings, actual run status, diagnostic artifact references | | GPU | Device/driver/capabilities and executed GPU families | | Disposition | Unresolved failures, linked issues, documented waivers and the evidence supporting them | Store logs/results with the Actions run or release evidence, consistent with the repository's rule against committing investigation logs and reports into the source tree. ## Acceptance criteria - [ ] A reviewer can determine actual execution coverage without parsing an entire CTest log or interpreting `100% passed` as “every test ran.” - [ ] A regression in a covered parser/allocator/save case fails the instrumented lane with useful diagnostics. - [ ] An unexpected skip, missing required test/device, and a not-run job remain distinguishable from a pass. - [ ] Real-GPU runs include enough build/device information to repeat them, and missing coverage remains explicit. - [ ] Critical checks remain active in Release, and SPIR-V validation status is truthful per configuration. - [ ] A candidate release has a linked evidence bundle and a stated acceptance decision; unresolved failures are not hidden by aggregate totals. ## Boundaries and delivery order Start with one usable instrumented lane and the summary/skip reporting, then broaden real-device and release reporting as hardware is available. Reuse CMake, CTest and existing Python tooling; a new dashboard or reporting service is unnecessary for the initial deliverable. The category owners supply meaningful behavioral regressions. This issue supplies repeatable execution and reporting. Even complete synthetic test evidence remains distinct from a real game's gameplay/completion report. ## Related category issues - Parser/allocator behavioral regressions: #1666. - Save failure/recovery regressions: #1667. - Shader/kernel behavioral regressions: #1668. - Build provenance for title reports: #1671.
Sign in to join this conversation.
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#1669
No description provided.