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

fix(launch): fix the type of the override args passed through to a LaunchProject from a Job #4416

Merged
merged 9 commits into from Nov 7, 2022
3 changes: 2 additions & 1 deletion tests/functional_tests/t0_main/jobs/job_repo_end_to_end.py
Expand Up @@ -59,4 +59,5 @@
)
assert "requirements.frozen.txt" in os.listdir(lp.project_dir)
print(command)
assert lp.override_args == ["--log-test"]
print(lp.override_args)
assert lp.override_args["--log-test"] is True
6 changes: 3 additions & 3 deletions wandb/apis/public.py
Expand Up @@ -5198,7 +5198,7 @@ def _configure_launch_project_repo(self, launch_project):
launch_project.add_entry_point(self._entrypoint)
launch_project.python_version = self._source_info.get("runtime")
if self._args:
launch_project.override_args = self._args
launch_project.override_args = util._user_args_to_dict(self._args)

def _configure_launch_project_artifact(self, launch_project):
artifact_string = self._source_info.get("source", {}).get("artifact")
Expand All @@ -5216,7 +5216,7 @@ def _configure_launch_project_artifact(self, launch_project):
launch_project.add_entry_point(self._entrypoint)
launch_project.python_version = self._source_info.get("runtime")
if self._args:
launch_project.override_args = self._args
launch_project.override_args = util._user_args_to_dict(self._args)

def _configure_launch_project_container(self, launch_project):
launch_project.docker_image = self._source_info.get("source", {}).get("image")
Expand All @@ -5227,7 +5227,7 @@ def _configure_launch_project_container(self, launch_project):
if self._entrypoint:
launch_project.add_entry_point(self._entrypoint)
if self._args:
launch_project.override_args = self._args
launch_project.override_args = util._user_args_to_dict(self._args)

def set_entrypoint(self, entrypoint: List[str]):
self._entrypoint = entrypoint
Expand Down