-
Notifications
You must be signed in to change notification settings - Fork 3k
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 regression with Python 3.10 on macOS >= 11; with reproduction repository #5791
Comments
Dear Mehdi, thanks for your quick reply. I already exercised this detail and explicitly tested using all of Python 3.10.3, 3.10.4, and 3.10.5. The behavior was the same. With kind regards, |
@amotl Hi! It does not look like a bug to me in the first place, your pipelines report |
Dear Mikhail, thank you for taking the time to look into this. Response
I also don't think it qualifies as a bug for GHA, because everything works flawlessly when doing the same things on CI/GHA without using Buildout. @idgserpro suggested at buildout/buildout#609 (comment) that it even might be an issue with the
I saw that. However, I didn't follow up on trying to fix anything on that yet, because everything works fine without Buildout. So, I assume everything is perfectly well configured on the GHA images, and only Buildout messes it up.
I would not know how to do so. Any hints? Further thoughtsIt would need some amount of dedication to trace that issue down to the real root cause, which is most probably something within Buildout or setuptools, but only triggered on the most recent releases of the corresponding GHA runner images I think the best way forward is currently to follow @idgserpro's recommendation and try out the patch they outlined at pypa/setuptools#2514 (comment) to see if that might improve the situation. At least, it is a very good candidate to get an idea about where this issue might be originating from, like If I had free wishesThe best thing to enable us to investigate those blurry issues in a self-service manner would be the possibility to address/request GHA images by version tag when running jobs, like With kind regards, Footnotes |
I did not investigate what happens in your code under the hood, but usual dev dir selection solved the problem for me. |
Dear Mikhail, thank you very much for coming up with a solution so quickly. I just exercised your suggestion at crate-workbench/test-buildout-python310#2 and want to confirm it works flawlessly. Now that I never ever typed that line you are suggesting into a GHA workflow definition, I am now learning that I will probably need to put that into my muscle memory, right? Or, otherwise, may I humbly ask you to elaborate more on this detail, for example whether something on that changed only recently? With kind regards, |
Hi again Mikhail. Now that the issue to invoke the GCC compiler for building C extensions of Python modules on GHA/macOS>=11/Python310 has been addressed, I am returning to my post at crate-workbench/test-buildout-python310#1 (comment), where I said:
So, while I believe 2. can be recognized as resolved by fixing it through adding the line However, that might be a specific question to the maintainers of the If you still feel you can help us on shedding more light onto this detail of our observations, we would be very grateful. For example, if your outcome might be that the Appreciating your help very much. With kind regards, [1] https://pypi.org/project/greenlet/#files |
@amotl Hi, I did not investigate the code much, but something is clearly broken there in the tools detection part. In the mean time you can still switch to the command-line only tools.
if you perform this command during runtime toy'll see it returns you the correct gcc's path, while during the build it does not. |
@amotl as there is nothing we can help you with anymore, I am going to close the issue, but feel free to reopen it if you have more questions. |
Dear Mikhail, thank you very much for your support! I also think this issue aggregated many useful details which may help others to resolve some specific issues they are facing. I also agree that, if at all, improvements or fixes would have to go into Buildout instead, because everything works flawlessly on GHA runners within vanilla Python environments. With kind regards, |
Description
Dear people of GitHub and Microsoft,
first things first: Thanks a stack for running the whole GHA machinery. It is indespensible!
We think we discovered a flaw when doing builds on macOS >= 11, when Python 3.10 and Buildout is involved, and a Python package dependency will be installed that needs to compile a C extension, like, for example, SQLAlchemy. We already reported the issue to the Buildout project at buildout/buildout#609, as we believe that is the right place where this should go to.
However, we are almost certainly sure that the same build worked without errors on
Wed Jun 1 14:20:45 2022 +0200
, when crate/crate-python#391 was merged. This patch, submitted 20 days ago, succeeded without errors, where at the same repository, another build with the same set of dependencies failed on behalf of crate/crate-python#428 just 4 days ago. In both cases, the designated runner image wasmacos-latest
.So, there might also be a regression on GHA's side, no? In any case, we wanted to report it here mainly as a reference for others to attach to. In this spirit, @iceman reported at buildout/buildout#609 (comment):
Apologies for the lengthy report, we hope we have been precise enough to describe our observations. Last but not least, you may be happy to hear that there is a minimal reproduction case repository at test-buildout-python310, where crate-workbench/test-buildout-python310#1 swiftly outlines the problem.
With kind regards,
Andreas.
P.S.: The macOS-11 images in question, released around and after Jun 1, 2022, but before Jun 17, 2022, are:
Platforms affected
Virtual environments affected
Image version and build link
Failure
Image versions
macos-11/20220614.2
macos-12/20220615.1
Reproduction repository
A minimal reproduction case.
Original repository
Where the regression was discovered.
Is it a regression?
We believe so. The last known good configuration was:
Image version
macos-11/20220530.2
Latest successful build
Expected behavior
The build should complete, as before with
macos-11/20220530.2
. Otherwise, it will be nice if we can explore the details about the potential change to share with the community in order to give them a chance to get a grasp what would need to be adjusted on their end.Actual behavior
The build croaks, as outlined at crate-workbench/test-buildout-python310#1 and buildout/buildout#609.
Repro steps
There is a minimal reproduction case repository at test-buildout-python310, where crate-workbench/test-buildout-python310#1 swiftly outlines the problem.
The text was updated successfully, but these errors were encountered: