-
Notifications
You must be signed in to change notification settings - Fork 17
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
update pyyaml dependency #220
Comments
@sphuber in the second linked comment, you already ran the plumpy tests with pyyaml 5.2 (but the logs are no longer available). would you be able to restart them and have a quick look to see whether you can get an idea of the issue? |
@chrisjsewell just saw aiidateam/aiida-core#4730 (review) - did you end up having a look at it? do you have an idea of what the problem might be? |
https://github.com/aiidateam/plumpy/actions/runs/1097403034 |
@sphuber Looks like the actions are in a runaway situation? The runs have exceeded 4 hours of runtime now. |
Yeah, as I indicated in the comment that @ltalirz linked, the problem with updating |
Ok, thanks @sphuber ! I think this will require someone to run the plumpy tests locally to figure out which test is hanging and where. Any takers @muhrin @sphuber @chrisjsewell ? |
@ltalirz I will have a look. |
Provides clue to the incompatibility with PyYAML>=5.2 and the reasons for hanging tests described in #220 .
@csadorf seems the tests are still hanging. What made you think that this was the culprit? |
Odd, this change made the tests pass for me locally. |
Provides clue to the incompatibility with PyYAML>=5.2 and the reasons for hanging tests described in #220 .
in case it helps, here is the pyyaml changelog https://github.com/yaml/pyyaml/blob/ee37f4653c08fc07aecff69cfd92848e6b1a540e/CHANGES#L41 If I remember well, the issue first appeared with pyyaml 5.2 (@sphuber correct me if I'm wrong), i.e. perhaps it would make sense to start with testing that upgrade instead of going to 5.4 immediately. If I'm reading the changelog correctly, then most of the changes are actually trying to correct bugs/inconsistencies introduced in 5.1 Since it updates the default loader in a couple of other places ( P.S. If the issue is indeed machine-dependent (@csadorf are you sure?), it could be somehow related to this "fix for systems with sys.maxunicode <= 0xffff" |
@ltalirz Indeed, I did not realize that at the time I had tested locally with version 5.2. I've now constrained the dependency to '<5.3' in my test branch which should now allow the tests to complete. @sphuber Can you have another look at https://github.com/aiidateam/plumpy/compare/fix/pyyaml-dependency-csadorf , please? The mypy check fails for some reason that I had not time to investigate yet. |
Tests do indeed pass now: https://github.com/aiidateam/plumpy/runs/3288571087 |
Great! I see you also changed the default loader in one place. Do you still need to comment out the state line? I'm wondering where the test is actually hanging; I guess it's not in the |
No, the line needs to be commented out. It took me some time to pinpoint this down to that line and I figured that an experienced plumpy developer might be able to provide me with an idea of what might be going wrong based on that information. |
So to summarize, when using Still, we need to be able to upgrade to |
Yes (and also for the availability of the python 3.9 build on conda, which is not present for pyyaml 5.2). Still, good to go step by step. |
Sure. But to answer @csadorf 's question the particular line that you had to comment out to make the tests run doesn't give me any hints. Still not sure what the problem could be. |
The problem with the One solution is to serialize the value before returning it, but since it is an enum, we might as well just call However, for that version, there is another test that hangs |
@sphuber Feel free to push directly to my branch if you like. |
pyyaml 5.1.2 is outdated and, on conda-forge, no build for python 3.9 is available (thus preventing AiiDA from being installed in a python 3.9 conda environment).
see previous discussion in aiidateam/aiida-core#4730 (comment)
and aiidateam/aiida-core#4730 (comment)
The text was updated successfully, but these errors were encountered: