-
Notifications
You must be signed in to change notification settings - Fork 106
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
RunnerInput/Output feedback/issues #962
Labels
type:bug
A general bug
Comments
Also see #961 |
On the Hera dev side, the new RunnerIO code in |
4 tasks
elliotgunton
added a commit
that referenced
this issue
Mar 4, 2024
**Pull Request Checklist** - [x] Fixes #962 - [x] Tests added - [ ] Documentation/examples added - [x] [Good commit messages](https://cbea.ms/git-commit/) and/or PR title **Description of PR** Primarily, this PR refactors the runner code. It also fixes the mapping and loading of kwargs to a RunnerInput object. Currently, the runner code is hard to follow. This PR refactors the functionality in the `runner.py` file into a `_runner` module with util submodules. The PR also makes the complex input mapping logic more testable. --------- Signed-off-by: Elliot Gunton <[email protected]>
elliotgunton
added a commit
that referenced
this issue
Mar 4, 2024
**Pull Request Checklist** - [x] Fixes #962 - [x] Tests added - [ ] Documentation/examples added - [x] [Good commit messages](https://cbea.ms/git-commit/) and/or PR title **Description of PR** Primarily, this PR refactors the runner code. It also fixes the mapping and loading of kwargs to a RunnerInput object. Currently, the runner code is hard to follow. This PR refactors the functionality in the `runner.py` file into a `_runner` module with util submodules. The PR also makes the complex input mapping logic more testable. --------- Signed-off-by: Elliot Gunton <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Issue to collect feedback and bug reports for new experimental Runner IO
Bug reports
Bug 1: RunnerInput attributes require defaults
A RunnerInput like
when building a yaml for a Workflow will give an error like:
due to trying to create the
default
asdefault=cls.model_fields[field].default
, when this is non-existent (PydanticUndefinedType
).Bug 2: Passing parameters for RunnerInput values errors out with
JSONDecodeError
We should be calling parse, not
json.loads
here, which results in an error log like:for the following Python code (same as #972):
Environment
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: