Skip to content

[3.7] fix CI on macOS due to infrastructure changes #96493

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

Merged
merged 7 commits into from
Sep 2, 2022

Conversation

gpshead
Copy link
Member

@gpshead gpshead commented Sep 1, 2022

  • Backport ctypes test_macholib fix from b29d0a5, but ultimately skip the test as it passing appears to require a ctypes macOS 11+ feature backport.
  • annotate test_zipfile's test_bad_password @requires_zlib.

This PR is based off of #96489 as that includes a change that fixes the check_source action for this branch so that build CI actually runs.


I don't know why, but macOS in 3.7 CI is failing to build the zlib
module these days so it's exposing this test that didn't have the
proper @requires_zlib annotation.

Getting it to build with zlib and other things that are now wrongly
"missing" in the 3.7 CI setup would be nice, but probably involves
invasive backporting of parts of
b29d0a5
by a macOS domain expert.

Not worth it for sustaining engineering CI re-enabling purposes unless a fix ever lands in those areas.

This includes checking in an initial Abigail ABI definition for 3.7.
This is required for the 3.7 tree to pass on modern macOS.
I don't know why, but macOS in 3.7 CI is failing to build the zlib
module these days so it's exposing this test that didn't have the
proper `@requires_zlib` annotation.

Getting it to build with zlib and other things that are now wrongly
"missing" in the 3.7 CI setup would be nice, but probably involves
invasive backporting of parts of
python@b29d0a5
by a macOS domain expert.

Not worth it.
gpshead and others added 4 commits September 1, 2022 15:07
This test also appears to require changes to
Lib/ctypes/macholib/dyld.py to work in the existing macOS CI config.
I'm just skipping it, backporting that would be a feature.
Not going to happen in 3.7.

There may be a way to configure macOS CI to use an older macOS and
toolchain instead as an alternate option.  Someone else can figure
that out if so.  This branch only lives for another 9 months per
https://peps.python.org/pep-0537/
@gpshead gpshead marked this pull request as ready for review September 1, 2022 23:07
@gpshead gpshead requested a review from ned-deily September 1, 2022 23:13
@ned-deily
Copy link
Member

There are other changes needed in configure.ac and setup.py to find the default macOS-supplied third-party libraries like zlib since macOS 11. We don't claim to support macOS 11 with 3.7. A workaround is to prove another version of zlib and other similar libraries using a third-party distributor like Homebrew or MacPorts. Skipping the test here to pass CI is fine. Thanks for the PR!

@ned-deily ned-deily merged commit 6fde293 into python:3.7 Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip issue skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants