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

Improve ondemand data collection for npm and maven #487

Merged
merged 15 commits into from
Jul 16, 2024

Conversation

pombredanne
Copy link
Member

@pombredanne pombredanne commented Jun 29, 2024

This PR provides various improvements wrt. on-demand data collection, and in particular:

Copy link
Contributor

@JonoYang JonoYang left a comment

Choose a reason for hiding this comment

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

@pombredanne I have some questions about expected behavior

matchcode/api.py Outdated Show resolved Hide resolved
@@ -44,7 +44,7 @@
)


def add_package_to_scan_queue(package, pipelines=DEFAULT_PIPELINES, reindex_uri=False, priority=0):
def add_package_to_scan_queue(package, pipelines=DEFAULT_PIPELINES, reindex_uri=False, priority=100):
Copy link
Contributor

Choose a reason for hiding this comment

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

@pombredanne When we add something to the scan queue, do we want it to be placed on top of the stack of packages to be scanned, or should that behavior only be done on requests from the collect or similar endpoints?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, top of the stack when asking for an exact version IMHO

Copy link
Contributor

Choose a reason for hiding this comment

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

ack, tracking this in #502

@pombredanne pombredanne changed the title Increase scannableuri priority Improve ondemand data collection for npm and maven Jul 16, 2024
JonoYang and others added 15 commits July 16, 2024 15:56
Reference: #486
Signed-off-by: Philippe Ombredanne <[email protected]>
Reference: #488
Signed-off-by: Philippe Ombredanne <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
Reference: #490
Signed-off-by: Philippe Ombredanne <[email protected]>
* Always a package_content type, defaulting to BINARY if not provided
* Ensure we always return a package even if there was no enhancement

Reference: #490
Signed-off-by: Philippe Ombredanne <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
* Optionally override package data with new, non-empty manifest data
* Expose new experimental API endpoint extra to recollect manifest data
  with a rescan at collect/reindex_metadata with this override
  capability
* Enable this for Maven only for now

Reference: #496
Reference: #494
Signed-off-by: Philippe Ombredanne <[email protected]>
@JonoYang JonoYang force-pushed the increase-scannableuri-priority branch from 12bba60 to fc4a1cc Compare July 16, 2024 22:57
@JonoYang JonoYang merged commit 275d6da into main Jul 16, 2024
8 checks passed
@JonoYang JonoYang deleted the increase-scannableuri-priority branch July 16, 2024 23:32
This was referenced Jul 16, 2024
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.

Failure to process API request
3 participants