Repository navigation
Conversation
MarcZX10
left a comment
There was a problem hiding this comment.
Reviewed — changes requested
The Windows test setup still assigns properties to guest_libressl3_key_reference after the PR removes that CTest, so CMake configuration fails on Windows; the existing key-reference regression test is also no longer registered.
What I ran
Reviewed head ff6098bfcb916dfb16a2a7b15a963f5878896649 against PR base 5a75b4a119e2c92f8e0881944bd006c0b2bf9751. The stack check previewed this head cleanly against current main c0fb4a6aad1012b7e2abecaf2949e3d26c0e525d; declared dependency #12754's current head is not included, so its combined integration remains unverified. Environment: Linux x86-64, GCC 12.2.0, Python 3.11.2, CMake installed.
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13625
python3 tools/pr_abi_audit.py --base 5a75b4a119e2c92f8e0881944bd006c0b2bf9751 --head ff6098bfcb916dfb16a2a7b15a963f5878896649
python3 tools/pr_test_quality.py --root <isolated-head-checkout> --json core/libs/tests/GuestLibreSsl3X509Accessors.cpp
git diff --check 5a75b4a119e2c92f8e0881944bd006c0b2bf9751...ff6098bfcb916dfb16a2a7b15a963f5878896649
cmake --help-command set_tests_propertiesResults
| Check | Result |
|---|---|
| Diff check | Passed; no whitespace errors. |
| Repository conventions and PR template | Passed. |
| Export declaration/definition audit | Passed; no findings. This lexical check does not prove ABI or compilation. |
| Test quality heuristic | One possible-unregistered-test warning; the new C++ executable is registered in CMake, so this is a heuristic false positive. |
| Dependency/merge preview | This PR head merges cleanly with current main; the current head of declared dependency #12754 is not included. |
| Windows CMake test properties | Blocking defect confirmed by source inspection: the WIN32 set_tests_properties list contains guest_libressl3_key_reference, but the PR removes its add_test. CMake documents that this command errors when a named test is not found. |
| Build and CTest | Not run locally. The PR body reports Ubuntu CTest 1/1 and a Windows syntax check, but does not identify the tested SHA. |
Relevant unedited output
python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 13625:
Head unchanged at completion: True
Base unchanged at completion: True
conventions_and_pr_template: passed
cmake --help-command set_tests_properties:
If the test is not found, CMake
will report an error.
python3 tools/pr_test_quality.py --root <isolated-head-checkout> --json core/libs/tests/GuestLibreSsl3X509Accessors.cpp:
{
"findings": [
{
"path": "core/libs/tests/GuestLibreSsl3X509Accessors.cpp",
"line": 1,
"kind": "possible-unregistered-cpp-test",
"message": "Changed C++ test source path was not found literally in CMake files; inspect registration, generated source lists, and workflow coverage."
}
],
"negative_control_candidates": []
}
Findings
Blocking
- The PR replaces the
guest_libressl3_key_referencetest registration withguest_libressl3_x509_accessors, but the Windows-onlyset_tests_propertiescall still namesguest_libressl3_key_reference. CMake errors when a named test does not exist, so Windows configuration fails. The replacement also stops running the existing key-reference regression coverage. Keep both test executables and CTest registrations, and include both registered test names in the Windows environment-property list. See the CMake changes at this head and the existing key-reference test source.
Non-blocking
None identified.
Sources
- PR CMake registrations and Windows test properties at reviewed head
- Existing key-reference regression test at reviewed head
- CMake
set_tests_propertiescommand documentation
Not verified
No project configure, build, or CTest was run. The author-reported CTest and Windows syntax-check results are not tied to a stated SHA. Integration with the current head of dependency #12754 is also unverified.
To get this to a good state
Register and retain both the key-reference and X509-accessor tests, update the Windows environment-property list to name registered tests only, and provide exact-head test results. I’ll re-run the same no-build checks on the corrected head.
|
Windows run of head The diff replaces the existing Keeping the six Windows 11 Enterprise 10.0.22621, WinLibs GCC 15.2.0 UCRT r7, CMake 4.3.1, Ninja, Release, AI-assisted: yes (Claude Code). |
|
@olegon85 Thanks. The accessors read the same fields as LibreSSL 4.0.0 (
|
Progress report (7d9a2fc → bfaed17)📈 System libraries: 26.74% (+0.03%, +8 implemented functions) ✅ 8 implemented
Changed libraries (implemented exports)
|
Re-checked — duplicate implementation foundThe current head |
|
Verified ff6098b on Linux x86-64 (GCC 16.2.1, CachyOS kernel 6.2.10, Release, BUILD_TESTING=ON, isolated worktree)
Still open (blocking, as oneandonlydean noted — none of these are addressed at the current head):
Not run: Windows (no Windows environment here — configure failure there is reported by JJenkx, not reproduced by me), and console verification of the struct layouts, which the debt entry already flags. |
|
Other open pull requests touch the same code. Merging one will break the other, or both implement the same thing. If this one builds on them, list them in Depends on.
Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.
|
ff6098b to
bfaed17
Compare
|
Closing as a duplicate of open work.
Feel free to reopen if #10491/#10493 are abandoned, with those points addressed. |
What
Implements eight X509 field accessors in
libSceLibreSsl3that are currently stubs throwingNotImplemented_nid_no_patch:X509_get0_notBefore,X509_get0_notAfter,X509_getm_notBefore,X509_getm_notAfter,X509_get0_signature,X509_get_ext,X509_get_ext_countandX509_get0_extensions.The 32-byte
LibreSsl3X509mirrors the v2LibreSslX509(certificate info at 0, signature algorithm at 8, signature at 16, valid at 24, references at 28). ItscertInfois an 80-byteLibreSsl3X509CertInfoholding version, serial number, signature, issuer, validity, subject, key, issuer UID, subject UID and extensions;notBeforeandnotAftercome fromvalidity(twoAsn1String*at offsets 0 and 8).X509_get0_signatureexposes the stored signature and signature algorithm. Extension access uses theLibreSslStacknumanddatafields directly, since libSceLibreSsl3 does not implementsk_numorsk_value. Null certificates throw; missing validity or extension stack returns null or zero.X509_up_refandX509_get_versionare already implemented by #12754 and are not touched here.Tested
Ubuntu 24.04 x86-64:
ctest -R guest_libressl3_x509_accessors— 1/1 pass.check_conventions.py --base origin/mainclean. Windows syntax check viax86_64-w64-mingw32-g++ -fsyntax-onlyonKey.hpp,Api.hpp,X509Accessors.cppand the test file: clean.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)