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

Added to check if the driver is invalid #1933

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

workdone0
Copy link

Description
Warn the user if the provided driver is not recognized, before op template resolution
Issue : #1006

@msmygit
Copy link
Contributor

msmygit commented Apr 26, 2024

Thank you @workdone0 for the contribution. Will you also be able to merge in this unit test on this pr?

@workdone0
Copy link
Author

@msmygit I've incorporated the Unit Test into this pull request. Additionally, I've made some modifications to the test as the previous version was incorrect.

msmygit
msmygit previously approved these changes Apr 29, 2024
Copy link
Contributor

@msmygit msmygit left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -218,6 +220,19 @@ public Integer applyDirect(final String[] args) {
}

final NBCLIOptions options = new NBCLIOptions(args, Mode.ParseAllOptions);

Copy link
Contributor

Choose a reason for hiding this comment

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

Can we move this to an adjacent class, or put it into an Optional friendly call on DriverAdapterLoader or similar? We need to keep NBCLI high-level as much as possible.

Copy link
Author

@workdone0 workdone0 May 7, 2024

Choose a reason for hiding this comment

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

@jshook I moved the logic to an adjacent class but it seems like some test are failing. I reviewed the code it looks fine, do you have any suggestion or should I revert the changes.

Copy link
Contributor

@jshook jshook left a comment

Choose a reason for hiding this comment

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

Just a minor structural change requested, otherwise looks good.

@workdone0 workdone0 requested a review from jshook May 7, 2024 12:13
@jshook
Copy link
Contributor

jshook commented May 10, 2024

closes #1006

Copy link
Contributor

@jshook jshook left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@jshook jshook left a comment

Choose a reason for hiding this comment

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

Let me take a closer look before merging this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Warn the user if the provided driver is not recognized, before op template resolution
3 participants