Skip to content

fix(osv): restore MAX_OSV_VULNS_PER_PACKAGE to 64 - #1187

Merged
rng1995 merged 1 commit into
NVIDIA:mainfrom
Fangwenky:fix/restore-osv-per-package-limit
Nov 25, 2026
Merged

rng1995 merged 1 commit into
NVIDIA:mainfrom
Fangwenky:fix/restore-osv-per-package-limit

Conversation

@Fangwenky

Copy link
Copy Markdown
Contributor

Summary

  • Restores MAX_OSV_VULNS_PER_PACKAGE in src/skillspector/nodes/analyzers/osv_client.py from 16 back to 64 (reverting the accidental regression introduced in v2.13.5 / #1098).
  • Adds a unit test in tests/unit/test_osv_client.py verifying 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 check and ruff format --check passed

Fixes #1178

Signed-off-by: Fangwenky <2629920196@qq.com>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[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.

@rng1995
rng1995 merged commit 761bf9f into NVIDIA:main Nov 25, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SC4: per-package OSV advisory limit went back from 64 to 16 in v2.13.5

2 participants