-
Notifications
You must be signed in to change notification settings - Fork 7
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
Workflows failing in main #280
Comments
It's not necessarily related to "the workflow". Of course is the workflow being failing, but as it would fail if the tests were failing. The problem is Poetry, in particular |
Since they are classified as corrupted, Poetry is failing the installation. Easiest potential solution: attempt lockfile regeneration with |
Thanks for the explanation @alecandido. |
It seems that he didn't work @alecandido. |
Btw, which version of Poetry are you using? You moved all the hashes at the bottom of the lockfile, but I believe this is not the behavior of the current Poetry, i.e. 1.4, but I'm not sure is even the behavior of the former 1.3... EDIT: for me |
Yeah, my bad I'm still using poetry 1.2.2 :( |
Nothing changed: I reproduced the problem locally, and without Furo there is no issue (just after running The version of Poetry is just a detail, to avoid future inconvenients, but it seems unrelated to this specific problem. |
The problem is confirmed also with the latest version of Furo, |
Furo uses a peculiar build backend https://github.com/pradyunsg/furo/blob/55b32f0dd5ac9a055629a8fbb8914e9c62a8b072/pyproject.toml#L1-L3 (by the same author, that is a senior contributor to Python packaging in general), it might have some incompatibilities with Poetry, I'm investigating https://github.com/pradyunsg/sphinx-theme-builder |
It seems that there is a known problem with the hashes, but it is known since more than one year, not sure why we're affected only now |
A hypothesis is that, since we are running the Poetry installation action in the workflow with default options, we just stepped into usage of Poetry 1.4. Poetry 1.4 introduces the new installation "back-end" (i.e. a packaging front-end, but never mind), replacing the former usage of Now, this in principle should have no relation with the hashes, but you never know... |
It seems we have two possibilities:
|
I tested yesterday evening, and indeed is working with 1.3.2 (until this it was only an hypothesis). Actually, I'd still like to test it with 1.4.0, since it is not clear to me why we started failing only now, while 1.4.0 rolled out 20 days ago (and latest Furo is from December, but we are also using a version from September). So, the first option I can tell it's working, but I'm not yet sure the second is actually an option. In any case, I haven't checked yet Poetry issues, to see if other people encountered the same problem and have a more detailed explanation. Has someone done it? |
As (partially) expected from the timing, the installation works even with Poetry 1.4.0. I'm still not sure which one is the problem caused by 1.4.1, but it was reasonable it should've been related to that, since it rolled out yesterday https://github.com/python-poetry/poetry/releases/tag/1.4.1 Reading the changelog, the likeliest change responsible for the break should be:
So, my current hypothesis is that there is something broken with Furo Current advice: stick to Poetry 1.4.0. The options are:
Given that the problem will be the same for all packages using Poetry and Furo, so all, I would rather choose 1., and update it as soon as the problem will be solved. |
Actually, I forgot, but a better/alternative solution might be to deactivate the modern installation in the same workflow (instead of changing version), with a global config. Just run poetry config installer.modern-installation false before |
Here the issue (actually a discussion) on Furo |
After merging #270, there is an error in the workflows when creating the project.
See for example here. It seems to be related to furo.
@Edoardo-Pedicillo @alecandido could you please have a look?
The text was updated successfully, but these errors were encountered: