-
Notifications
You must be signed in to change notification settings - Fork 506
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Integration with NVD API 2.0 (#2542) #2562
Conversation
# Conflicts: # cve_bin_tool/cli.py # cve_bin_tool/cvedb.py # cve_bin_tool/data_sources/redhat_source.py # doc/MANUAL.md
# Conflicts: # README.md
Interesting failures. Wonder if there is a differences in the data produced using the different APIs becuase when I run test_langauge.py on my API2 download, I get 4 failures (Go, Ruby, Python and R). |
I'm pretty sure all the test fails will be fixed by #2574 (looks like commonmark got dropped by rich) but given how finicky the NVD API can be I think I'll re-run the tests here before I merge. |
Updating branch for tests now. |
Codecov Report
@@ Coverage Diff @@
## main #2562 +/- ##
==========================================
- Coverage 76.91% 76.65% -0.26%
==========================================
Files 594 594
Lines 9793 9831 +38
Branches 1336 1345 +9
==========================================
+ Hits 7532 7536 +4
- Misses 1958 1992 +34
Partials 303 303
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we're good to merge this. We should talk soon about whether we need a 3.2.1 release for this -- I think probably yes, but I was hoping to also fix the LegacyVersion stuff and that hasn't been completed yet. I'll file an issue about the timeout so we don't forget to look it later.
connector = aiohttp.TCPConnector(limit_per_host=19) | ||
connector = aiohttp.TCPConnector(limit_per_host=self.max_hosts) | ||
connection_timeout = aiohttp.ClientTimeout( | ||
total=None, # default value is 5 minutes, set to `None` for unlimited timeout |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I strongly suspect we're going to want a total timeout to keep it from hanging indefinitely (specifically because this seems to happen in github actions windows instances), but I'm not sure what the value should be here. Maybe we could open a bug to look at it in future?
No description provided.