perf(debian-cve-convert): reduce memory usage and streamline Debian CVE converter - #5713
Merged
jess-lowe merged 3 commits intoJul 28, 2026
Merged
Conversation
another-rex
reviewed
Jul 28, 2026
another-rex
previously approved these changes
Jul 28, 2026
another-rex
approved these changes
Jul 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
tl;dr: add a lightweight nvd struct for creating debian records and do gcs download in go
Changes
vulns.LoadTargetCVEMetadatato decode only essential fields (ID,Published,LastModified,Metrics) from NVD JSONs, bypassing memory-heavy CPE configuration trees, descriptions, and reference lists.buildDebianVulnerabilities()and addedruntime.GC()prior to uploading to allow immediate reclamation of intermediate package maps.-download-from-gcsflag to download NVD data directly in Go viagcs.DownloadBucket, removing reliance ongcloud storage cpinrun_debian_convert.sh.v.Modifiedtimestamps on generated OSV records using NVDlastModifiedmetadata (with fallback topublished).basically, the debian-cve-convert cron job is going to continue to need more and more memory as it loads all of the nvd cve records into memory, and there's been massive dumps of vulns recently (and they will continue to grow) it makes more sense to try and be more conservative about how we handle the memory problems.