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

Scan queue update #50

Merged
merged 12 commits into from
Mar 15, 2023
Merged

Scan queue update #50

merged 12 commits into from
Mar 15, 2023

Conversation

JonoYang
Copy link
Contributor

This PR updates the scan queue implemented by request_scans and process_scans has been updated to work with the latest version of scancode.io. Scancode.io pipelines related to matching have been created and added to matchcode-toolkit. New test function has been created to regenerate scancode.io API responses for the scan queue API tests.

Signed-off-by: Jono Yang <jyang@nexb.com>
    * Update ScannableURI-related code such that it works on the latest version of scancode.io

Signed-off-by: Jono Yang <jyang@nexb.com>
Signed-off-by: Jono Yang <jyang@nexb.com>
    * Create new test to generate scancode.io API responses for tests

Signed-off-by: Jono Yang <jyang@nexb.com>
    * Properly associate package to ScannableURI

Signed-off-by: Jono Yang <jyang@nexb.com>
    * Hash URI with SHA1 and use the value as the name of the project on scancode.io because of scancode.io project name length limit
    * Update create_structure_fingerprint to account when child.size is None
    * Update ScannableURIManager.get_scannables() to get scannables with wip_dates
    * Limit scan requests to 3 by default to avoid overwhelming scancode.io server

Signed-off-by: Jono Yang <jyang@nexb.com>
    * Update Makefile for running scan queue

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>
    * Update index_package_files to not use VirtualCodebase

Signed-off-by: Jono Yang <jyang@nexb.com>
    * Remove the word "test" from the method names of ScanCodeIOAPIHelperFunctionTest
    * Revert default seeder to npm

Signed-off-by: Jono Yang <jyang@nexb.com>
@JonoYang JonoYang merged commit b26838f into main Mar 15, 2023
@JonoYang JonoYang deleted the scan-queue-update branch March 15, 2023 23:53
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.

1 participant