]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.7] fix CI on macOS due to infrastructure changes (GH-96493)
authorGregory P. Smith <greg@krypto.org>
Fri, 2 Sep 2022 03:46:48 +0000 (20:46 -0700)
committerGitHub <noreply@github.com>
Fri, 2 Sep 2022 03:46:48 +0000 (23:46 -0400)
commit6fde29377fd57fea13a54dd847b7cf171c2df6d1
treeb64264aa94edc13e41afb10368fc0f00b97cd052
parent9d58933c20cd49c9a78d54483f27add6cb18138d
[3.7] fix CI on macOS due to infrastructure changes (GH-96493)

* Add ABI and generated files checks to CI.

This includes checking in an initial Abigail ABI definition for 3.7.

* Backport ctypes test_macholib fix from b29d0a5a7811418c0a1082ca188fd4850185e290.

This is required for the 3.7 tree to pass on modern macOS.

* annotate test_bad_password @requires_zlib.

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
https://github.com/python/cpython/commit/b29d0a5a7811418c0a1082ca188fd4850185e290
by a macOS domain expert.

Not worth it.

* disable MachOTest.test_find unless macOS 11+ support is backported.

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/

* LOL at my typo

Co-authored-by: Ned Deily <nad@python.org>
Lib/ctypes/test/test_macholib.py
Lib/test/test_zipfile.py