Skip to content

perf: optimize combine-to-osv bucket listing and avoid partial files.txt upload#5632

Open
another-rex wants to merge 1 commit into
google:masterfrom
another-rex:optimize-osv-bucket-listing
Open

perf: optimize combine-to-osv bucket listing and avoid partial files.txt upload#5632
another-rex wants to merge 1 commit into
google:masterfrom
another-rex:optimize-osv-bucket-listing

Conversation

@another-rex

Copy link
Copy Markdown
Contributor

This PR optimizes the bucket listing operation in combine-to-osv by using a pre-uploaded files.txt list file generated by the cve5 and nvd-cve-osv converters.

  • Added upload of files.txt list file to cve5 and nvd-cve-osv converters.
  • Optimized combine-to-osv to read files.txt instead of listing the GCS bucket.
  • Added fallback to bucket listing if files.txt is too old or fails to read.
  • Made list file max age configurable via flag.
  • Skipped files.txt upload on partial runs (start-year > default).
  • Refactored converters to use channels instead of global mutexes for tracking output files.

agy

…txt upload

- Added upload of files.txt list file to cve5 and nvd-cve-osv converters.
- Optimized combine-to-osv to read files.txt instead of listing the GCS bucket.
- Added fallback to bucket listing if files.txt is too old or fails to read.
- Made list file max age configurable via flag.
- Skipped files.txt upload on partial runs (start-year > default).
- Refactored converters to use channels instead of global mutexes for tracking output files.
@another-rex another-rex force-pushed the optimize-osv-bucket-listing branch from ff4bc52 to 8ea47ce Compare July 13, 2026 06:13
@another-rex another-rex requested a review from jess-lowe July 13, 2026 06:15
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.

1 participant