fix(tools): keep explicit sanitizer failures from being skipped #12483
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/12483"
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 StoneDC on 2026-10-28T15:51:52Z.
What
A JUnit testcase containing both an explicit failure/error and a skip marker can currently be summarized as skipped, allowing a failing run to succeed. Give failure/error precedence while retaining legitimate CTest skip and known-failure handling. The basis is the existing XML outcome and CLI exit-code contract, reproduced with contradictory real JUnit input.
Known limits: This validates report classification; it is not a sanitizer run of the full product.
Independent change based on main
f3eb573e6fc3. Actual three-way merge of this exact head into the pre-publication mainf8f5b24b77adis clean. Related #12096 (write errors), #12226 (duplicate testcases), #12349 and #12437 (input/output aliases/write errors) implement different behavior. Selected production/test compositions passed on both hosts; no merge ordering dependency is required. Shared-file comparisons are scoped compatibility checks, not whole external-PR builds.Tested
Windows 11 (MinGW GCC 15.2, Python 3.14.3, Node 24) and Ubuntu 26.04/WSL (GCC 15.2, Python 3.14.4, Node 22): windows: 1 focused CTest groups, 0 failures, 0 skipped; linux: 1 focused CTest groups, 0 failures, 0 skipped.
The complete affected focused suites and CMake/script registration checks passed on both hosts. The new regression fails against the unchanged production implementation from main
f3eb573e6fc3on both hosts.Commands (configure a Release Ninja build with
-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON; native targets are built where affected):Additional integration check: all 19 independent changes combined with main
17f8dfad513batbbba7fc479a7passed the affected Windows/WSL suites, native relinker build, registration and environment audit. The later observed main changes only an unrelated guest test; each exact PR head also merges cleanly into it. This combined check establishes composition, not a dependency between these PRs.No GPU, PS5 hardware, actual game, macOS runtime or full system-library build is claimed. Hosted CI has not run for this new PR yet. AI assistance was used; the evidence and limitations above were checked locally.
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-28T16:04:12Z.
Review: COMMENTED
I reviewed head
53afb7481500and ran the focused sanitizer report test from a clean detached worktree on Linux/Python 3.11: relinker-only CMake configure succeeded andctest -R ^sanitizer_report$passed (1/1).tools/check_conventions.py --base upstream/mainandtools/check_test_registration.py --scriptsalso passed. Explicit<failure>and<error>elements now take precedence over skip/status metadata, while known-failure accounting remains downstream; the regression checks both CLI exit behavior and the documented known-failure result across contradictory status combinations. Hosted Ubuntu/Windows relinker, ASan, conventions, eligibility, intake and labels passed; macOS relinker jobs are pending and full Linux/Windows product tests were skipped by policy. I found no blocking issue in the report-classification change.Imported from boykopovar/AnyPS5. Originally posted by rooklz on 2026-10-28T17:59:12Z.
Review: APPROVED
Reviewed head
53afb74815on macOS 26 (arm64). This is the first macOS run.Tests.
tools/tests/test_sanitizer_report.pypasses on Python 3.9.6 and 3.13.13. On 3.14 it fails the same way on main, because the Homebrew pyexpat in this environment is broken. With main'stools/sanitizer_report.pyswapped in, the new test fails 16 of its 24 subtests. The 8 that still pass have no skip marker and a non-disabledstatus, and main already reports those as failed. So the red set is exactly the contradiction cases.Real CTest oracle (CMake/CTest 4.3.1,
--output-junit). I ran 12 tests: pass, fail, SKIP_RETURN_CODE, SKIP_REGULAR_EXPRESSION, DISABLED, missing executable, WILL_FAIL, TIMEOUT, FAIL_REGULAR_EXPRESSION, an ASan line, and FIXTURES_REQUIRED with a failed setup. CTest never wrote<failure>and<skipped>in the same testcase. Theresults()dicts from main and head are identical on this report, and both exit 1. So real CTest output is unaffected, and the change only decides the contradictory or hand-made input it targets.Mutants. 7 of 8 are killed:
<failure>only, or<error>only: 10 failures each<skipped>: 14disabledbeats an explicit failure: 6status in FAILED_STATUSESbranch: 2notrunno longer counts as failed: 2The survivor uses
.//failureand.//errordescendant search. It is equivalent for JUnit's flat testcase children.Gates.
check_conventions --base upstream/mainis clean.check_test_registration --scriptsreports 212.merge-treeagainst maine4da19aff0is clean. Pairwise merges with #12226, #12349 and #12437 are clean.Merge order. There is a textual conflict with #12493 in
tools/tests/test_sanitizer_report.py. Both PRs add a test method at the same spot aftertest_failed_tests_without_reports_keep_the_single_column_table. The fix is to keep both methods. With that resolution the combined file passes on 3.9.6 and 3.13.Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-29T06:30:28Z.
Review: APPROVED
Reviewed
53afb7481500f00bc9918fdb45bb2577708e4f06againstf3eb573e6fc3bd38261690d850c21b45b88f705b. Explicit JUnit failure/error elements now take precedence over skip status and skip markers. Ordinary CTest skip handling is preserved when no failure is present. No actionable finding in this scoped review.Windows/Python 3.11 validation: head 22 passed, 0 skipped; baseline 21 passed, 0 skipped. New contradictory-status fixtures fail with old production and pass on the head. Coverage includes failure/error elements with skipped or not-run metadata; no sanitizer workload itself was executed.