test(libSceLibreSsl3): drop unmeasured policy-flag throw assertions #14208
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/14208"
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 rooklz on 2026-10-31T23:33:07Z.
What
tests/X509VerifyParam.cpppinned twelve policy-flag cases ofX509_VERIFY_PARAM_set_flags_nid_postfixto astd::runtime_errorwith the parameter struct untouched. Those cases are the documented LibreSSL 2.5.4/4.0.0 divergence whose console behaviour is unmeasured, so they stand in for a result that is not modelled; per the project test rule, tests cover real behaviour and argument validation but do not assert unmodelled paths. This drops theCheckVersionDependentloop and its guard-check helper.CheckSetFlags(including every input where both LibreSSL versions agree) and the null-parameterstd::invalid_argumentcase stay.The branch keeps throwing through
NotImplemented_nid_no_patchon that path, as onmain: the call stays counted byNotImplementedCalls_nid_no_patch(the performance overlay metric), the export stays in the unimplemented list until the console's choice is measured, anddocs/dev/debt/libSceLibreSsl3.mdkeeps recording the divergence. The earlier source and debt edits from review are reverted, sotools/progress.pyis unchanged frommain.Tested
Host only; no console use.
cmake --buildof a relinker-only Release configure (-DANYPS5_RELINKER_ONLY=ON -DBUILD_TESTING=ON): rc=0.core/libs/prx/libSceLibreSsl3/tests/X509VerifyParam.cpptogether withsrc/X509VerifyParam.cppon the host and ran it:LibreSSL3 X509_VERIFY_PARAM tests passed.EXPLICIT_POLICYwith noPOLICY_CHECKconfirms it throwsstd::runtime_error, leaves the parameter struct untouched, and increments the unimplemented-call counter by 1.python3 tools/check_conventions.py --base origin/main: passed.python3 tools/pr_overlap.py --branch fix/libressl3-set-flags-version-divergence: no shared files or exports with any open PR.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-31T23:43:35Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
The direct
std::runtime_errorbypasses the repository's unimplemented-call counter, so this still-unsupported policy path is omitted from the runtime performance overlay's usage metric.What I ran
Reviewed head
0dc9ea6a30d9fb22e026fce5b2d2c80c6b758fd5against baseb08c539c505c48341146c705bc72d9b603cdb3a7; the merge preview was clean. Environment: Debian GNU/Linux 12, x86_64, Python 3.11.2, GCC 12.2.0. No build or C++ tests were run.Results
NotImplemented_nid_no_patchincrements the counter; the overlay reads it and an existing test checks that behaviorUnedited output
Findings
Blocking
The changed branch handles an unmeasured policy case by throwing directly, bypassing
NotImplemented_nid_no_patch. That helper incrementsNotImplementedCalls_nid_no_patch; the performance overlay displays this count, and the existingPerformanceOverlayStatisticstest asserts that unsupported calls increment it. As written, this path continues to reject the operation but is no longer counted, producing incomplete runtime diagnostics.Minimal fix: preserve the counter update for this unsupported path. Calling the existing helper is sufficient if its standard message is acceptable; otherwise route the custom rejection through a helper that increments the same counter before throwing.
Non-blocking: None.
Sources
Not verified
To get this to a good state
Preserve the counter behavior while keeping the policy rejection. I will rerun the same relevant checks on the updated head.