Skip to content

refactor: replace unreachable project links heuristic with source code repo heuristic #983

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

Merged
merged 2 commits into from
Feb 14, 2025

Conversation

art1f1c3R
Copy link
Member

@art1f1c3R art1f1c3R commented Feb 10, 2025

This pull request replaces the UnreachableProjectLinks heuristic analyzer with a new heuristic analyzer, SourceCodeRepo. This replacement heuristic, instead of checking if all project links are reachable, checks if a source code repository is available. To do this, it relies on the previous processing to find and verify the package repository link, checking if the pypi_package_json.component.repository field is present.

TODO
Currently, the SourceCodeRepo heuristic still has a dependency on the EmptyProjectLinks heuristic. This is done currently to make the merging process easier, and to avoid a heavy rework of the SUSPICIOUS_COMBOS dictionary. This dictionary is expected to soon be replaced with a more usable alternative, at which time the combinations including this heuristic may be updated.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Feb 10, 2025
@art1f1c3R art1f1c3R changed the base branch from main to staging February 10, 2025 06:52
@art1f1c3R art1f1c3R force-pushed the art1f1c3R/pypi-proj-links-refactor branch from ed2a934 to 57aba12 Compare February 12, 2025 06:46
@art1f1c3R art1f1c3R force-pushed the art1f1c3R/pypi-proj-links-refactor branch from 57aba12 to 2c5d787 Compare February 12, 2025 23:22
@art1f1c3R art1f1c3R merged commit 2510d7d into staging Feb 14, 2025
9 checks passed
@art1f1c3R art1f1c3R deleted the art1f1c3R/pypi-proj-links-refactor branch February 14, 2025 00:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants