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.
AlexWaygood
left a comment
There was a problem hiding this comment.
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. 🤖🎉 |
JelleZijlstra
left a comment
There was a problem hiding this comment.
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 <jelle.zijlstra@gmail.com>
|
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
AlexWaygood
left a comment
There was a problem hiding this comment.
A few more tiny nits I spotted while looking over again
stubs/D3DShot/METADATA.toml
Outdated
| [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.
| # TODO: re-enable |
There was a problem hiding this comment.
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 <Alex.Waygood@Gmail.com>
|
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:
brewworks well onmacos, but no idea how to use windows (I've never touched it since 2008)daily.ymlto do the same thing for all stubsRefs #8660