Skip to content

System resource cache - #5289

Open
JonoYang wants to merge 16 commits into
developfrom
system-resource-cache
Open

System resource cache#5289
JonoYang wants to merge 16 commits into
developfrom
system-resource-cache

Conversation

@JonoYang

@JonoYang JonoYang commented Aug 25, 2026

Copy link
Copy Markdown
Member

This PR introduces a cache for the results of scanners run by scancode. The scancode, scan_codebase, and scan_resource functions have been updated to look for cached scan results to reuse before scanning. The cache is updated after scanning, if it was required.

This is related to #3941 #4556

Comment thread src/scancode/results_cache.py Dismissed
Comment thread src/scancode/results_cache.py Dismissed
Comment thread src/scancode/results_cache.py Dismissed
Comment thread src/scancode/results_cache.py Dismissed
Comment thread tests/scancode/test_results_cache.py Dismissed
Signed-off-by: Jono Yang <jyang@nexb.com>
    * Use sha256 instead of md5

Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
    * Create envvar for controlling whether or not the scan results cache is used

Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
@JonoYang
JonoYang force-pushed the system-resource-cache branch from a1aa058 to 60ee685 Compare August 28, 2026 23:43
Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
@JonoYang
JonoYang force-pushed the system-resource-cache branch from e965307 to 1247f39 Compare September 3, 2026 23:25
    * The runner cannot instantiate a cryptography library of some kind

Signed-off-by: Jono Yang <jyang@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.

2 participants