-
Notifications
You must be signed in to change notification settings - Fork 1
Fix #23: Divide the launch modes into default vs internal #25
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
Merged
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
994f4de
Fix: Launching Tiers was missing the interval argument
EdNutting 50bc906
Fix #23: Divide the launch modes into default vs internal
EdNutting f20fcc4
Fix regression for nested JobArray and JobGroup specs.
EdNutting 38c6761
Tidy up the launch logic
EdNutting ab54dd5
Add tests for handling of a single Job with/without `internal` mode
EdNutting fcd941b
Test that JobArray and JobGroup are still launched via scheduler even…
EdNutting 24db988
Remove redundant logic; Fix typecheck
EdNutting 28ba2bf
Merge branch 'main' into ednutting/issue-23
EdNutting 47816ee
Apply suggestion from @Intuity
EdNutting File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 don't understand the need for this - introduction of this
parsed_specvariable seems unnecessary, and the cast only exists to assist type checking (which is then replicated by line 101-104)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.
Introduction of this variable is necessary to stop mypy complaining like crazy about the types. The cast is necessary because of the inferred type of Spec not matching the specified type of parsed_spec.
Uh oh!
There was an error while loading. Please reload this page.
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.
The check is repeated again later because the other
ifcases also cause MyPy to relax the inferred type, which causes the typecheck ofparsed_specto go awry later in the 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.
My suggestion is
mypyis basically worthless if we're not going to actually fix the errors/warnings it generates. The current codebase has mypy configured and generates a very large number of issues. Happy to address them, or we could remove MyPy if it's just generating noise.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'm not sure where mypy is configured - I can't see any evidence of it existing in the codebase.
Having a type checker and fixing issues is probably a sensible thing to do - but it's worth considering using something like Astral ty for speed, and adding it into the precommit/CI flow.
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.
Huh, I wonder where my VSCode environment is running it from. I get a lot of stuff show up in my Problems view, and I assumed it'd come from the poetry install. Maybe one of the VSCode Python extensions has it enabled by default. Sorry about that. Either way, I think it's worth keeping the code type-correct (it's a personal dislike that so much Python code reuses variables mutating the type halfway through a function. I get that "it's Pythonic" but it just seems wrong to me.)