-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Run stubtest on stubs on different platforms #8923
Run stubtest on stubs on different platforms #8923
Conversation
I have no idea how to fix this Windows problem:
It is valid |
The Windows shell is a whole different beast. Can we use WSL in GitHub Actions? That might be an easy workaround. |
This comment has been minimized.
This comment has been minimized.
Looks like it works! https://github.com/python/typeshed/actions/runs/3273273447/jobs/5385277526 |
This comment has been minimized.
This comment has been minimized.
But not valid powershell ! Although you already figured out that you can specify the shell in github actions. Which is what I would've recommended over:
Chocolatey is what I see most often on windows (at least when developing with Node and Python).
Whatever's needed as you develop/test this I guess? |
You can use |
I already do that, thanks! |
Could you make this change to the [tool.stubtest]
- # The library only works on Windows; we currently only run stubtest on Ubuntu for third-party stubs in CI.
- # See #8660
- skip = true
+ platform = ["win32"] |
Nit: I would prefer if the metadata key was named |
You might have to add a |
Output from windows daily run: https://github.com/sobolevn/typeshed/actions/runs/3280905801/jobs/5402262235 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…/sobolevn/typeshed into run-stubs-on-different-platforms
Since we now have platform-specific I will introduce platform-specific allowlists. Something similar to what we have in |
This comment has been minimized.
This comment has been minimized.
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.
Looks great to me! Thanks for all the work you've done on this!
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
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.
Slight wording suggestion because many stubs may be "supported" on other platforms, we just don't need to run stubtest multiple times.
Co-authored-by: Jelle Zijlstra <[email protected]>
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
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.
A few more tiny nits I spotted while looking over again
stubs/D3DShot/METADATA.toml
Outdated
@@ -2,6 +2,6 @@ version = "0.1.*" | |||
requires = ["types-Pillow"] | |||
|
|||
[tool.stubtest] | |||
# The library only works on Windows; we currently only run stubtest on Ubuntu for third-party stubs in CI. | |||
# See #8660 | |||
# TODO: re-enable |
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.
# TODO: re-enable |
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.
Wait, this TODO comment I did like -- it would be good if we could figure out how to enable stubtest for this package!
Co-authored-by: Alex Waygood <[email protected]>
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
Time for this to go in. |
@sobolevn & @AlexWaygood There's an unforseen issue: Now I can't run stubtest locally on any stub that doesn't explicitely specify my non-linux OS! If no platform is specified in |
I think we can add |
Proposed solution: #9173 |
Open problems:
brew
works well onmacos
, but no idea how to use windows (I've never touched it since 2008)daily.yml
to do the same thing for all stubsRefs #8660