-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
CI Pin Cython<3
in some builds due to observed regressions
#27266
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
Conversation
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
[scipy-dev] [pypy] [azure parallel] Signed-off-by: Julien Jerphanion <git@jjerphan.xyz>
I was trying to work out if 1.3.0 was built with cython 3 or not. I think the answer is that 1.3.0 was not built with cython 3 because 1.3.0 was released on 30th June and cython 3.0 was released on 17th July. If this is true then I'd wait with merging this until (a reasonable amount) before the next release. That way we can see if the regression(s) get fixed in cython/work-around'ed in scikit-learn. That way we have a chance of not having to go back to an older version. What do you think? |
Yes, that's it. One can check against the feedstock logs (for instance, this one).
I am OK with either waiting or merging and then reverting this PR. |
Ok, both sound good. Maybe the only unknown is how we keep track of the task of reverting/merging :D |
I am gently hijacking this PR to double-check that indeed Cython 3 is the main cause of the CircleCI builds timing out as mentioned in #27086 (comment) Edit: it seems like Cython 3 is indeed the main cause since on the doc build,
|
Feel free to pursue this PR. Thinking again, I think we have no benefit in using Cython 3 so I think we better use Cython < 3 generally for now. |
Yeah I was wondering about that too. The consensus at the meeting today was that it is better to keep some builds with The main thing I am wondering about is about whether we need to change FYI (we were wondering about this at the meeting): |
I removed the pyproject.toml related changes making this PR more of a CI one to speed-up some builds, especially the doc build. I would say/hope that there is a good chance that Cython 3 fixes regressions before the release of scikit-learn 1.4. If it's not the case, I guess we can revisit changing pyproject.toml. |
pyproject.toml
Outdated
@@ -3,8 +3,6 @@ | |||
requires = [ | |||
"setuptools", | |||
"wheel", | |||
"Cython>=0.29.33", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we need to keep at least "Cython"
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops indeed
Cython<3
due to observed regressionsCython<3
in some builds due to observed regressions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM (+1 to not touch pyproject.toml for now)
Merging this one, thanks! There is an approval and I think that other comments amounts to another +1. Further improvements/tweaks can be done in a separate PR. |
…learn#27266) Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
…learn#27266) Co-authored-by: Loïc Estève <loic.esteve@ymail.com>
Reference Issues/PRs
Related to #27086.
What does this implement/fix? Explain your changes.
This forces using Cython<3 for everything except pylatest CI checks.
Any other comments?
Do you think that the updates to the environment specifications are adequate?