Skip to content
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

cvedb will scrap data now #908

Merged
merged 3 commits into from
Oct 1, 2020
Merged

cvedb will scrap data now #908

merged 3 commits into from
Oct 1, 2020

Conversation

imsahil007
Copy link
Contributor

Closes #906

@codecov-commenter
Copy link

codecov-commenter commented Sep 25, 2020

Codecov Report

Merging #908 into master will increase coverage by 2.62%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #908      +/-   ##
==========================================
+ Coverage   84.73%   87.35%   +2.62%     
==========================================
  Files         169      169              
  Lines        2790     2791       +1     
  Branches      302      302              
==========================================
+ Hits         2364     2438      +74     
+ Misses        347      282      -65     
+ Partials       79       71       -8     
Flag Coverage Δ
#longtests 87.35% <66.66%> (+2.62%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cve_bin_tool/async_utils.py 89.65% <ø> (ø)
cve_bin_tool/cli.py 86.46% <ø> (+3.00%) ⬆️
cve_bin_tool/cve_scanner.py 81.08% <ø> (ø)
cve_bin_tool/egg_updater.py 100.00% <ø> (ø)
cve_bin_tool/output_engine/html.py 19.44% <0.00%> (ø)
test/test_cli.py 96.00% <ø> (+16.00%) ⬆️
test/test_data/icecast.py 100.00% <ø> (ø)
test/test_json.py 89.65% <ø> (+20.68%) ⬆️
cve_bin_tool/cvedb.py 88.58% <100.00%> (+4.39%) ⬆️
cve_bin_tool/version_scanner.py 86.32% <0.00%> (+1.70%) ⬆️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4def96c...5eb1d6a. Read the comment docs.

Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

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

This looks like you might need to rebase or something? It's got a rather large number of unrelated formatting changes, possibly due to a different version of black? They're not wrong it just makes it a pain to review.

@@ -91,7 +92,10 @@ async def nist_scrape(self, session):
json_meta_links = self.META_REGEX.findall(page)
return dict(
await asyncio.gather(
*[self.getmeta(session, meta_url) for meta_url in json_meta_links]
*[
self.getmeta(session, self.META_LINK + meta_url)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we switch this to an f-string? We've stopped using + for string manipulation. More details here: https://github.com/intel/cve-bin-tool/blob/master/doc/CONTRIBUTORS.md#string-formatting

Copy link
Contributor

@terriko terriko Sep 30, 2020

Choose a reason for hiding this comment

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

But other than that, this looks like what we need. Let's just get the PR cleaned up a little bit so we can merge it without needing fixes. Thanks! 👍

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I revert back the changes after switching to f-string. I think this will work now

@terriko
Copy link
Contributor

terriko commented Sep 30, 2020

Also, totally late notice, but we're doing a meeting for pre-release and hacktoberfest preparation tomorrow at 9:30am US pacific (which would be 10pm in India assuming your github location is up to date). If you're interested and get this before we're done, we'll be on google meet: meet.google.com/dom-unde-bfk

@imsahil007
Copy link
Contributor Author

This looks like you might need to rebase or something? It's got a rather large number of unrelated formatting changes, possibly due to a different version of black? They're not wrong it just makes it a pain to review.

It turns out I am using the same version of black we are using in tests. The tests tend to fail if I use an older version of black. @terriko Should I create another PR just for the formatting changes?

@imsahil007
Copy link
Contributor Author

This looks like you might need to rebase or something? It's got a rather large number of unrelated formatting changes, possibly due to a different version of black? They're not wrong it just makes it a pain to review.

It turns out I am using the same version of black we are using in tests. The tests tend to fail if I use an older version of black. @terriko Should I create another PR just for the formatting changes?

I think we should either do this or stick to a single version of black instead of using the GitHub version

Copy link
Contributor

@terriko terriko left a comment

Choose a reason for hiding this comment

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

Thank you! Not sure what's up with black, but thank you very much for persevering!

@terriko terriko merged commit 0998f29 into intel:master Oct 1, 2020
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.

NVD is not working.
3 participants