Skip to content

Cache and stream scan results - #354

Merged
pombredanne merged 11 commits into
developfrom
cache-and-stream-scan-results
Nov 7, 2016
Merged

Cache and stream scan results#354
pombredanne merged 11 commits into
developfrom
cache-and-stream-scan-results

Conversation

@pombredanne

@pombredanne pombredanne commented Nov 6, 2016

Copy link
Copy Markdown
Member

This adds support to cache scan results on disk on a file-by-file basis and stream from disk to file the final scan output.

This should fix #267 #279 and #341

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne
pombredanne force-pushed the cache-and-stream-scan-results branch from 0b50ab1 to c3a8509 Compare November 7, 2016 05:48
 * cache scan results on disk
 * stream json at the end
 * use diskcache
 * partially tested and unstable, some tests failing

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne
pombredanne force-pushed the cache-and-stream-scan-results branch from c3a8509 to f1fcc9d Compare November 7, 2016 06:27
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
@pombredanne
pombredanne force-pushed the cache-and-stream-scan-results branch from f1fcc9d to 07d7f62 Compare November 7, 2016 15:58
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
 * somehow, some data structures cannot be pickled with HIGHEST_PROTOCOL
 * But they pickle alright with no proptocol set

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
 * this is a Python pickle bug
 * somehow, some data structures cannot be pickled with HIGHEST_PROTOCOL
 * But they pickle alright with no proptocol set

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
 * this is a workaround for a Python pickle bug that shows up
   indirectly in:
   grantjenks/python-diskcache#32
 * the workaround is use a subclass of diskcache.Disk that does not use
   pickle.HIGHEST_PROTOCOL

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
 * this was temporarily activated as a debug helper

Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
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.

segmentation fault error while running scans in an ubuntu instance in AWS

1 participant