Repository navigation
Re-enable Spike2 real-data tests on platforms with sonpy wheels - #1914
Conversation
Both TestSpike2RecordingInterface and the spike2 case of
test_metadata_key_is_accepted_and_forwarded were guarded by
this_python_version > version.parse("3.9"), always true under
requires-python = ">=3.10". Skip instead only where sonpy has no
wheel: Linux and macOS below Python 3.14.
Refs catalystneuro#1797
Follow-up to catalystneuro#1855
Co-authored-by: Cursor <cursoragent@cursor.com>
|
@AxelNoun neo 0.14.6 is out and
The neo bump is no longer needed here as #2239 already did it. CI tests 3.11 and 3.14 now instead of 3.10 and 3.13, so once this leaves draft the tests also run on Linux and macOS 3.14, not only on Windows. Do you want to update the description before I mark it ready for review, or should I go ahead? |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1914 +/- ##
=======================================
Coverage 92.10% 92.10%
=======================================
Files 251 251
Lines 22637 22637
=======================================
Hits 20850 20850
Misses 1787 1787
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
The sonpy 1.9.12 macOS wheel is tagged universal2 but its extension only contains x86_64 code, so the spike2 extra now skips it on non-x86_64 machines. Update the gallery warning and its skip reason to match. Claude helped me with this change.
|
Thanks for pushing the rest, and for the x86_64 fix. For the record, the macOS 3.14 failure was I pushed one more commit (113fcc4) that updates the Spike2 gallery warning and its skip reason in One thing I left as is: on Apple Silicon, |
|
@AxelNoun thanks for tracking down the macOS failure and for rewriting the description! I did the Apple Silicon message here as Merged, thanks for seeing this through. |
Recreates #1886, which was closed automatically on 2026-08-12 when the fork hosting its branch was detached during an account cleanup on my side. Prior context and discussion: #1855
Refs #1797. Follow-up to #1855, as agreed there.
The problem. #1855 fixed the
spike2extra but left the real-data tests dead on purpose: their guard (this_python_version > version.parse("3.9")) is always true underrequires-python = ">=3.10", and re-enabling them would hit Neo'sCedRawIO, broken againstsonpy>=1.9.12(NeuralEnsemble/python-neo#1890). There are two such guards:TestSpike2RecordingInterfaceand thespike2case oftest_metadata_key_is_accepted_and_forwarded.The fix. NeuralEnsemble/python-neo#1891 fixed
CedRawIO, andmainrequiresneo>=0.14.6since #2239. This PR:sonpyrequirement of thespike2extra to the same combinations. The only macOS wheel of sonpy 1.9.12 is taggeduniversal2, but its extension contains only x86_64 code, so on Apple Silicon it installs and then fails withincompatible architecture (have 'x86_64', need 'arm64e' ...);changelog_entries/1914.bugfix.md.Verification. On CI at
6381471, the Spike2 tests ran without failures on Windows 3.11 and 3.14 and on Ubuntu 3.14, and failed on macOS 3.14 (arm64) with the error above, which led to the x86_64 restriction. The test workflows have not run on the current head yet.Locally, on Windows 11 x86_64 with Python 3.14, neo 0.14.6 and sonpy 1.9.12 from PyPI, and
spike2/m365_1sec.smrxfrom gin:TestSpike2RecordingInterfaceandtest_metadata_key_is_accepted_and_forwarded[spike2]give 16 passed, andTestAssertions::test_spike2_import_assertionsis skipped (it only runs where sonpy is not installable). I also evaluated the extra marker and both skip conditions for macOS arm64 and x86_64 and Linux aarch64 and x86_64 on Python 3.14: they agree, and sonpy is installed and tested only on x86_64.Claude helped me with this PR.