-
Notifications
You must be signed in to change notification settings - Fork 146
feat: add option to validate k8s spec (#1152) #1153
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
base: main
Are you sure you want to change the base?
Conversation
|
Please take a look @kiukchung @d4l3k @andywag @tonykao8080 |
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.
LGTM overall, thanks for adding this! If there is no downside (e.g. validation takes too long) to enabling this by default, then we should.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1153 +/- ##
=======================================
Coverage 91.57% 91.58%
=======================================
Files 83 83
Lines 6599 6617 +18
=======================================
+ Hits 6043 6060 +17
- Misses 556 557 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@azzhipa can you fix this type error: |
e7ecaec to
1d663e8
Compare
|
Done, @kiukchung! Once we remove runopts this check can stay - it should be tested extensively by the time we remove these runopts. |
sounds good, more pyre fixes: I think the macos unittest failure suggests that the validation code tries to hit a public URL? If this is the case then we'd have to make sure we turn off validation for unittests and add a mock validator for the test-case that asserts the validation codepath. |
1d663e8 to
40b89f2
Compare
|
Yes, weird locally do I get these false-positives (probably not installing the package in editable more and picking old version): Rebased and removed these for the remote check to pass, @kiukchung Let me know if you're interested in migrating to ty. Although experimental it worked quite solid for me. |
unfortuately we need to keep the type checker in sync with the one we use internally (which pyre) :( |
|
@clumsy I'm going to figure out a way to give you access to kick off the CI workflow so that you're not blocked on me to validate that CI passes. |
|
As I was verifying a new version - I had an idea, @kiukchung. |
|
Not sure if this violates the contract: https://meta-pytorch.org/torchx/main/runner.html#torchx.runner.Runner.dryrun in true sense. For now I'll just fix tests, let me know your preference please, @kiukchung |
40b89f2 to
c1a6a40
Compare
|
Done, this should pass the linter, pyre and tests now, @kiukchung |
|
Thanks, @kiukchung - I can see all the controls now, will use next time to finalize the change! |
Added a new
validate_specoption (defaults toFalsefor now, but perhaps can be turned on by default later) forkubernetesschedulerTest plan:
[x] added unit tests