Uh oh!
There was an error while loading. Please reload this page.
Run stubtest on stubs on different platforms - #8923
Conversation
sobolevn
commented
Oct 18, 2022
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.
sobolevn
commented
Oct 18, 2022
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? |
Uh oh!
There was an error while loading. Please reload this page.
Akuli
commented
Oct 19, 2022
You can use |
sobolevn
commented
Oct 19, 2022
I already do that, thanks! |
AlexWaygood
commented
Oct 19, 2022
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"] |
Akuli
commented
Oct 19, 2022
Nit: I would prefer if the metadata key was named |
Uh oh!
There was an error while loading. Please reload this page.
AlexWaygood
commented
Oct 19, 2022
You might have to add a |
sobolevn
commented
Oct 19, 2022
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
sobolevn
commented
Oct 19, 2022
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. 🤖🎉 |
Uh oh!
There was an error while loading. Please reload this page.
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| [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. 🤖🎉 |
Uh oh!
There was an error while loading. Please reload this page.
According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉 |
AlexWaygood
commented
Nov 11, 2022
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 |
sobolevn
commented
Nov 12, 2022
I think we can add |
Avasam
commented
Nov 12, 2022
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