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

Convert setup to plugins #95

Merged
merged 4 commits into from
Feb 27, 2025
Merged

Convert setup to plugins #95

merged 4 commits into from
Feb 27, 2025

Conversation

vmezzela
Copy link
Collaborator

Hi, another command converted to the plugin system.

There's no functional change, just moving code around.

I also converted all related tests and carefully verified their correctness, as the process was error-prone. Let me know if you spot anything I might have missed!

@vmezzela vmezzela requested review from marcosps and fgyanz February 27, 2025 11:32
@vmezzela vmezzela changed the title Convert scan to plugins Convert setup to plugins Feb 27, 2025

def setup(lp_name, lp_filter, no_check, archs, cve, conf, module, file_funcs,
mod_file_funcs, conf_mod_file_funcs):
# TODO: make sure archs is an array
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe add a newline before the TODO?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sure I can, but this is changed right in the next commit. Do you want me to change it anyway?

@marcosps
Copy link
Collaborator

@vmezzela this works as expected. Would you like to remove the draft status?

@vmezzela
Copy link
Collaborator Author

Sure!

@vmezzela vmezzela marked this pull request as ready for review February 27, 2025 14:14
Signed-off-by: Vincenzo MEZZELA <[email protected]>
Drop the Setup class and convert this command to a plugin. Convert also
all the affected tests.

Signed-off-by: Vincenzo MEZZELA <[email protected]>
Copy link
Collaborator

@marcosps marcosps left a comment

Choose a reason for hiding this comment

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

LGTM! Thanks!

Copy link
Collaborator

@fgyanz fgyanz left a comment

Choose a reason for hiding this comment

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

LGTM! The changes make sense :)

@fgyanz fgyanz merged commit 62016cb into SUSE:devel Feb 27, 2025
1 check passed
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.

3 participants