Skip to content

fix(local): log and preserve package count before continuing on db error#2126

Merged
hogo6002 merged 1 commit intogoogle:mainfrom
ackama:fix/preserve-count
Aug 1, 2025
Merged

fix(local): log and preserve package count before continuing on db error#2126
hogo6002 merged 1 commit intogoogle:mainfrom
ackama:fix/preserve-count

Conversation

@G-Rath
Copy link
Copy Markdown
Collaborator

@G-Rath G-Rath commented Jul 30, 2025

The results from MatchVulnerabilities is expected to have the same items as packages that were provided but currently if the database cannot be loaded (such as because we're using an ecosystem that does not have a database available) we just "continue" resulting in off-by-n errors further down the line

@G-Rath G-Rath marked this pull request as ready for review July 30, 2025 03:01
@G-Rath G-Rath force-pushed the fix/preserve-count branch 2 times, most recently from 7e38cb3 to 7e07971 Compare July 31, 2025 19:52
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 31, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 67.58%. Comparing base (0bccdcd) to head (03e10f3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2126   +/-   ##
=======================================
  Coverage   67.58%   67.58%           
=======================================
  Files         170      170           
  Lines       16148    16151    +3     
=======================================
+ Hits        10913    10916    +3     
  Misses       4569     4569           
  Partials      666      666           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@G-Rath G-Rath force-pushed the fix/preserve-count branch from 7e07971 to 03e10f3 Compare July 31, 2025 20:23
@hogo6002 hogo6002 merged commit 90dcfea into google:main Aug 1, 2025
15 checks passed
@hogo6002 hogo6002 deleted the fix/preserve-count branch August 1, 2025 00:29
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.

3 participants