Repository navigation
fix(osv): restore MAX_OSV_VULNS_PER_PACKAGE to 64 - #1187
Conversation
Signed-off-by: Fangwenky <2629920196@qq.com>
rng1995
left a comment
There was a problem hiding this comment.
[SkillSpector Review]
Value and readiness
Restoring the v2.13.4 advisory limit prevents an affected locked version from losing advisories solely because more than 16 IDs are returned. The change is ready for maintainer review.
Material findings
No required changes found. The 25-advisory regression checks the full returned list and an empty limitation list, so it detects both truncation and incorrectly reported partial coverage.
PIC tradeoffs
The higher per-package limit can use a larger share of the existing scan-wide detail budget on a heavily affected version. The 64-request, response-byte and total-result bounds still govern the scan.
Verification and gaps
Reviewed the complete diff, #1178 and the v2.13.5 release description, plus the pinned detail, cache and budget paths. All six reported hosted checks succeeded. Local review was static. Hosted CI
Reviewed head f7572411922f04dbc8500296a025a2e4b924dd30.
Summary
MAX_OSV_VULNS_PER_PACKAGEinsrc/skillspector/nodes/analyzers/osv_client.pyfrom16back to64(reverting the accidental regression introduced in v2.13.5 /#1098).tests/unit/test_osv_client.pyverifying that packages with more than 16 advisories (25) retain all advisories within the 64-advisory per-package limit without truncation.Testing
pytest tests/unit/test_osv_client.py -v(48 passed)ruff checkandruff format --checkpassedFixes #1178