-
Notifications
You must be signed in to change notification settings - Fork 53
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
Windows Latest on Python 3.8 Constantly Fails #94
Comments
Thanks for the report. Does changing v1 to v1.3.1 (the previous release) fix the issue for you? |
@sondrelg How strange. Yes! That completely fixed it! ...What's happened from v1.3.1 to v1.3.2? |
Specifically, the error only happened for Windows and version 3.8. MacOS and Linux on 3.8 worked and 3.9 and 3.10 on all OS's worked. |
We mostly just quoted env vars in the latest release. I'll add a test case for Windows later to see if I can reproduce. Would you be able to share the relevant parts of your workflow to make that easier? |
@sondrelg It's a public repo, which makes it easier. Here's the link: https://github.com/adam-grant-hendry/qtpygraph |
@sondrelg Feel free to look at my workflows |
Here it is: python-poetry/install.python-poetry.org#46 @adam-grant-hendry If you remove the shell default it will work: |
Interesting...that's been part of what was recommended previously for this action (i.e. to use |
Of course there's a regression specifically for 3.8 just as we remove it from the matrix 😅 It's a bit of a pain to have 20+ permutations of the basic install test, but I suppose this is a prime example of why it's worth having. Yes @adam-grant-hendry, IIRC, removing the Either way, I suppose we could just switch to |
Surprisingly, CI doesn't fail when including windows 3.8 (here) 🤔 |
If you add this to the test.yml it will fail |
There is this already https://github.com/snok/install-poetry/blob/main/.github/workflows/test.yml#L58:L60 Are you saying the location of the default specification matters? |
I'm perfectly fine sticking with Not sure I can say I know much about the |
Looks like yours is specific to a job, whereas mine and @miigotu have ours for the entire workflow. Is that correct? |
EDIT: nvm I'm really tired. Saw that line totally wrong. The linked issue is exact same though, pretty sure its the same bug. |
NVM his is git bash also: https://github.com/adam-grant-hendry/qtpygraph/actions/runs/3202205327/jobs/5230946897#step:6:19 |
I wonder if it is him setting: |
So far I've tried:
but so far nothing reproduces |
In the latest push to #95 I've added the @adam-grant-hendry, would you mind testing with |
I was having the same issue than @adam-grant-hendry in my workflow (windows-latest) using:
and (after trying to update to the latest version) with:
PS: This 2nd setup worked on Ubuntu and MacOS runners After reading this thread and seeing the tests workflows @sondrelg shared, I used instead this config on windows:
And the error didn't occur anymore 🤷♂️ |
We need to find the cause though. Can you try updating just one or the other of those? Aka is the problem here, or in poetry itself? |
@miigotu: It worked on the EDIT: Idem with poetry version |
Then perhaps the changes made to https://github.com/snok/install-poetry/blob/main/main.sh#L38:L40 is the reason. The thing we need to get to the bottom of this is a reproducible example of a failing workflow for v1.3.2. So far we haven't been able to reproduce the issue. Any ideas as to why not @GuillaumeFalourd? |
I've got a workflow reproducing the error here using this workflow implementation. EDIT: Error occurred with both Python versions 3.8 and 3.10 |
After making some tests in a fork, it seems the problem is coming from this commit, by adding the Just removing this line from the EDIT: I also tested it on windows with more python and poetry versions here successfully. |
Great, thanks for that! I'll do a little bit more testing, then see if we can release a fix in a few hours 👍 |
…install-poetry#94. Also cleaned up poetry version pinning in release.yml
* Updated svgelements to 1.8.4 (fixes #537) * Updated other deps * Pinned snok/install-poetry to 1.3.1 for Windows test to address snok/install-poetry#94 * Cleaned up poetry version pinning in release.yml
Having had time to look at python-poetry/install.python-poetry.org#46 @miigotu, I think they're saying git bash on windows runners are affected, so I think this is an upstream bug. The script target for this github action was changed a while back, but I hadn't released a new version until v1.3.2, so that's why this is happening. Perhaps we should do a simple
What do you think? |
For some reason, Windows-2022 is now failing for me on Python 3.8 only:
The text was updated successfully, but these errors were encountered: