-
Notifications
You must be signed in to change notification settings - Fork 81
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
ci: macos-latest is changing to macos-14 ARM runners #3092
Conversation
On all PRs, the packaging-test.yml,
Fortunately, it's a well-localized segfault; it's always in test_1345_avro_reader.py. In fact, removing that one file makes the test pass. I used that fact to get the wheel that it built as an artifact and run it on my Mac (ARM M2). With the wheel built by GitHub Actions ( from awkward.forth import ForthMachine64
tmp = ForthMachine64("123") However, if I build awkward-cpp on my Mac in the usual way, the above does not cause a segfault, nor does the whole test_1345_avro_reader.py. So there's something special about the way that GitHub Actions ( Also, other C++ code in libawkward is fine, even with the GitHub Actions-built wheel. For instance, So I've got two problems:
@henryiii, do you have any idea what might be going on here, at least to get me into a state where I can build awkward-cpp the same way that it's built on GitHub Actions?
|
The segfault in MacOS you, @matthewfeickert, and @jonas-eschle were talking about the MacOS upgrade on GitHub on April 23. Maybe it didn't roll out until the next day? Maybe this new segfault is unrelated? |
macos-12 is a quick fix. Yes, this is due to the rollout of macos-latest moving from macos-12 to macos-14 (ARM). Interestingly, though, it's not the ARM move, but macOS 13 that breaks it. Probably Xcode 15. |
Also, just staring at
awkward/awkward-cpp/src/libawkward/forth/ForthMachine.cpp Lines 227 to 270 in b0c462c
awkward/awkward-cpp/src/python/forth.cpp Lines 164 to 188 in b0c462c
awkward/awkward-cpp/src/libawkward/builder/ArrayBuilder.cpp Lines 15 to 16 in b0c462c
awkward/awkward-cpp/src/python/content.cpp Lines 195 to 200 in b0c462c
other than the fact that the In their header files, they're both declared with https://github.com/scikit-hep/awkward/blob/main/awkward-cpp/include/awkward/forth/ForthMachine.h https://github.com/scikit-hep/awkward/blob/main/awkward-cpp/include/awkward/builder/ArrayBuilder.h (I'm just saving these here, to investigate again later.) |
Do you have the latest Xcode? I think Xcode 15, which is in both images, is likely the change that causes the segfault. |
I had been trying to figure out what my compiler is. I have the I'm doing Spotlight search and not finding Xcode. How do I find that? Xcode is not in the Launchpad, either. I think I minimally installed Xcode to be able to compile from the command line, but I don't have the full GUI. |
As a quick fix, it would let us merge PRs and maybe even release awkward-cpp (which I was planning to do on Tuesday).
If this is a bug in the Xcode compiler, or GitHub's configuration of it because of As it is, I'd want to merge this working test (and update the test requirements) so that the other PRs can use it. |
It looks like I have Xcode 15: % pkgutil --pkg-info=com.apple.pkg.CLTools_Executables
package-id: com.apple.pkg.CLTools_Executables
version: 15.3.0.0.1.1708646388
volume: /
location: /
install-time: 1709827747 That date-stamp is March 7, 2024. I bought this laptop in September 2022 and only installed things like that once, though I let Also, % gcc --version
Apple clang version 15.0.0 (clang-1500.3.9.4)
Target: arm64-apple-darwin23.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin |
At least for now, I'm going to merge this so that the other PRs can use it. We'll have to revisit it because just using the older version isn't a solution that we can rely on long-term. |
Committed via https://github.com/asottile/all-repos
The previous meaning was macos-12, now it is switching to macos-14.