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 RunnerIO #974

Merged
merged 3 commits into from
Mar 4, 2024
Merged

Fix RunnerIO #974

merged 3 commits into from
Mar 4, 2024

Conversation

elliotgunton
Copy link
Collaborator

@elliotgunton elliotgunton commented Feb 22, 2024

Pull Request Checklist

Description of PR
Currently, defaults are required when using Parameters in the RunnerInput. This PR allows defaults to be omitted.

@elliotgunton elliotgunton added semver:patch A change requiring a patch version bump type:bug A general bug labels Feb 22, 2024
@elliotgunton
Copy link
Collaborator Author

I wanted to fix some funky serialisation issues (i.e. Bug 2 from #962) with RunnerIO at the same time but that's proving tricky. Marking this PR as ready to review.

elliotgunton added a commit that referenced this pull request Mar 4, 2024
* Script user guide was too long, split into main features. Fix internal
links
* Make pydantic io example into a runnable workflow - made it more
obvious the scripts would need a custom image

**Pull Request Checklist**
- [x] Fixes #961 (fixes example)
- [ ] Tests added
- [x] Documentation/examples added
- [x] [Good commit messages](https://cbea.ms/git-commit/) and/or PR
title

**Description of PR**
Currently, the pydantic IO example does not work. Combined with fixes in
PRs #974 and #977, this doc change shows how to use the Runner IO
features.

---------

Signed-off-by: Elliot Gunton <[email protected]>
**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 elliotgunton enabled auto-merge (squash) March 4, 2024 16:55
@elliotgunton elliotgunton enabled auto-merge (squash) March 4, 2024 16:58
@elliotgunton elliotgunton merged commit c04d7e7 into main Mar 4, 2024
19 of 20 checks passed
@elliotgunton elliotgunton deleted the fix-runner-io-defaults branch March 4, 2024 17:00
@elliotgunton elliotgunton changed the title Fix RunnerInput defaults Fix RunnerIO Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver:patch A change requiring a patch version bump type:bug A general bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants