-
Notifications
You must be signed in to change notification settings - Fork 6
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
Aamohd/file based config #662
base: main
Are you sure you want to change the base?
Conversation
3c7b075
to
866ea2b
Compare
hipcheck/src/cli.rs
Outdated
long = "exec", | ||
global = true, | ||
help_heading = "Path Flags", | ||
long_help = "Path to the exec file." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
--> "Path to the execution config file"
hipcheck/src/cli.rs
Outdated
@@ -296,6 +315,9 @@ impl CliConfig { | |||
policy: std::env::current_dir() | |||
.ok() | |||
.map(|dir| pathbuf![&dir, "Hipcheck.kdl"]), | |||
exec: env::current_dir() | |||
.ok() | |||
.map(|dir| pathbuf![&dir, "config/Config.kdl"]), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove config/
hipcheck/src/executor.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rename to exec.rs
hipcheck/src/main.rs
Outdated
)) | ||
}; | ||
|
||
let plugin_data = exec_config.unwrap().plugin_data; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of unwrapping, change the function to return an ExitCode
and use Shell::print_error()
like cmd_setup()
and cmd_check()
hipcheck/src/plugin/types.rs
Outdated
@@ -160,6 +160,9 @@ pub struct PluginContext { | |||
|
|||
/// The child process in which the plugin is running. | |||
pub proc: Child, | |||
|
|||
/// The size of the gRPC buffer | |||
pub grpc_buffer: usize, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rename to grpc_query_buffer_size
As I mentioned in one of the requested changes, we shouldn't take I think the solution is that everyone developing on Hipcheck copies @alilleybrinker thoughts? or should the "config" folder be un-deprecated as a concept and use the resolution of the config dir to determine the expected location of the Exec.kdl file? |
@aamohd, you'll also have to rebase off of main and address the |
7d0179a
to
41690cf
Compare
Signed-off-by: Aisha M <[email protected]> feat: allow file-based executor Signed-off-by: Aisha M <[email protected]> ExecConfig and PluginConfig added fix: fix broken test Signed-off-by: Andrew Lilley Brinker <[email protected]> Config parsing enabled Code cleanup Exec Config added to CLI Signed-off-by: Aisha M <[email protected]> feat: allow file-based executor config Signed-off-by: Aisha M <[email protected]> Code cleanup Signed-off-by: Aisha M <[email protected]> feat: allow file-based executor Signed-off-by: Aisha M <[email protected]> feat: allow file-based executor Signed-off-by: Aisha M <[email protected]>
Signed-off-by: Aisha M <[email protected]>
41690cf
to
7b3f032
Compare
Signed-off-by: Aisha M <[email protected]>
Signed-off-by: Aisha M <[email protected]>
Signed-off-by: Aisha M <[email protected]>
No description provided.