-
Notifications
You must be signed in to change notification settings - Fork 40
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
Possible fix for your broken unittests #1573
Comments
What's strange is that the rest of the builds seem to be pinned at |
@tblanarik! Great to hear from you! Thanks for the possible fix, great sleuthing. PR would be great. @galbramc, the pin to |
Yeah, I couldn't locate the pin of |
Hey guys! Yes the jenkins scripts were setup to install |
@galbramc - I wonder if that's actually going to break the rest of the tests 😆 , since pint 0.19.1 contains breaking changes. Since I don't have access to the scripts, I'm wondering if you'd be willing to try pinning all of the Jenkins scripts to 0.18 and rerunning? In my own fork, I ran your unittests using GitHub Actions, Python 3.9 (which I think your Jenkins is set to) and the following requirements: pint==0.18
adce==1.3.3.2
cvxopt==1.3.0
numpy==1.23.1
plotly==5.9.0
scipy==1.8.1
matplotlib==3.5.2 and you can see the tests passing on both Ubuntu and Windows, using cvxopt at least (no mosek) Alternatively, is it reasonable to make the Jenkins script a part of the repo, to have more 👀 on it? There must have been some difference between the scripts since only the Finally - perhaps you don't really mind if the unittests are broken and this is just noise to you. I can go away in that case 😆 |
What is preventing us from fixing gpkit and/or the unit tests so it works with the latest pint? |
well, latest pint is currently broken per hgrecco/pint#1507, right? |
Are we storing any pickles in the repo? Are pickles supposed to be loadable forever or simply be treated as temporary data? Do we just need to recreate the pickled files for the newer pint? Btw, shouldn't you be getting ready for a ride on a rocket! |
ohhhh, good point. yep that's probably a simple fix. And yes definitely - but I'm also on a campaign to get inbox zero before launch :) |
Inbox zero is far more challenging mission! My girlfriend and I would watch the launch if you had picked a more reasonable time of day :) |
The question of loading pickles forever is where I was going to ask you guys what your approach was. If it's that you want GPKit to just always work with the latest releases of packages, awesome 👍. But if you wanted to maintain some kind of backwards compatibility for particular reasons, then this might be a more complicated fix. Since I'm only just exploring this project for the first time, I don't know a lot about how people are using it / what sort of support for older packages you care to provide 😁 |
I don't know if you've come across this yet, but I think the following breaking change to
pint
is also responsible for your broken unittests:You can be reasonably sure because the last test that succeeds (794) shows:
Successfully installed pint-0.18
while the first to break shows:
Successfully installed pint-0.19.1
In addition, the stacktrace shows this is happening while unpickling
solar_13.p
:I haven't had a chance to look around the project much yet (I just started by trying to run the unittests), but it seems like the fix is maybe just to update rtd_requirements.txt to read:
If/when I am confident, I can also submit a PR to that effect.
The text was updated successfully, but these errors were encountered: