-
Notifications
You must be signed in to change notification settings - Fork 17
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
[2/n][pipeline-gen] Convert default values into constant vars #38
Conversation
khluu
commented
Sep 28, 2024
•
edited
Loading
edited
- Convert all default values used in plugin config into constant vars so it's easier to test
Signed-off-by: kevin <[email protected]>
scripts/pipeline_generator/plugin.py
Outdated
@@ -88,6 +95,7 @@ class KubernetesPluginConfig(BaseModel): | |||
|
|||
|
|||
def get_kubernetes_plugin_config(container_image: str, test_bash_command: List[str], num_gpus: int) -> Dict: | |||
test_bash_command[-1] = f'"{test_bash_command[-1]}"' |
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.
what is this line doing?
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.
is this for the quoting? why is this required? this is going to be prone to env var injection?
@@ -20,7 +20,7 @@ def test_get_kubernetes_plugin_config(): | |||
"containers": [ | |||
{ | |||
"image": docker_image_path, | |||
"command": [" ".join(test_bash_command)], | |||
"command": ['bash -c "echo A"'], |
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.
I do not quite understand the change in this 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.
can you separate the double quote thing into another PR?
Signed-off-by: kevin <[email protected]>
I just removed the quote thing from this PR |
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.
could you also update the PR description?