Skip to content

feat: find repo from latest artifact when provided artifact has none#931

Merged
benmss merged 5 commits intostagingfrom
benmss/latest-repo-finder
Dec 19, 2024
Merged

feat: find repo from latest artifact when provided artifact has none#931
benmss merged 5 commits intostagingfrom
benmss/latest-repo-finder

Conversation

@benmss
Copy link
Copy Markdown
Member

@benmss benmss commented Nov 28, 2024

This PR improves the Repo Finder by making it check for repositories using the latest version of an artifact if the provided version does not contain that information. This latest version finding behaviour is also added for the case where a Java PURL was provided without a version, and is added for the find-source command.

@benmss benmss self-assigned this Nov 28, 2024
@oracle-contributor-agreement oracle-contributor-agreement Bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Nov 28, 2024
@benmss benmss force-pushed the benmss/latest-repo-finder branch from 70daa62 to a2b6ba9 Compare November 28, 2024 01:02
@benmss benmss marked this pull request as ready for review November 28, 2024 05:29
Comment thread src/macaron/repo_finder/repo_finder.py
Comment thread src/macaron/repo_finder/repo_finder.py
@benmss benmss force-pushed the benmss/latest-repo-finder branch from 92f4d51 to 9ea935b Compare December 10, 2024 23:14
@behnazh-w
Copy link
Copy Markdown
Member

Can you please add an integration test for one of the artifacts that required this feature to find the correct repository?

@benmss
Copy link
Copy Markdown
Member Author

benmss commented Dec 11, 2024

One is included here.

@behnazh-w
Copy link
Copy Markdown
Member

One is included here.

I meant to add an integration test with two steps for the analyze and find-source commands to make sure they both have a similar behavior.

Signed-off-by: Ben Selwyn-Smith <benselwynsmith@googlemail.com>
Signed-off-by: Ben Selwyn-Smith <benselwynsmith@googlemail.com>
Signed-off-by: Ben Selwyn-Smith <benselwynsmith@googlemail.com>
Signed-off-by: Ben Selwyn-Smith <benselwynsmith@googlemail.com>
Signed-off-by: Ben Selwyn-Smith <benselwynsmith@googlemail.com>
@benmss benmss force-pushed the benmss/latest-repo-finder branch from 9ea935b to 608cfe1 Compare December 19, 2024 00:24
Comment thread tests/integration/cases/latest_repo_comparison/test.yaml
@benmss benmss merged commit 1ea1bd5 into staging Dec 19, 2024
@benmss benmss deleted the benmss/latest-repo-finder branch April 8, 2025 00:47
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.

3 participants