You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CI runs Linux only: MLX backend and the Apple Silicon numerical path are never tested #246
Every job in .github/workflows/ci.yml is runs-on: ubuntu-latest — there is no
platform matrix. Two consequences:
pamica/tests/mlx_tests/ has never run in CI. MLX is the recommended Apple
GPU path per AGENTS.md (~15-25 ms/it, ~7x torch-CPU, faster than an RTX 4090
at EEG scale) and Phase D: Multi-model support for AMICAMLXNG (Apple GPU) #81 extended it to multi-model. It is covered only by local
runs on a maintainer's machine.
The Accelerate-vs-OpenBLAS numerical path is untested, so macOS-only
failures are structurally invisible.
Consequence 2 is not hypothetical. test_mir_history_survives_keep_best_restore
was green on #241's PR CI and failed immediately after the merge locally. The
cause was not a stale base (#241's base was one version-bump commit old): the
~1e-6 trajectory shift moved the stopping iteration from 55 to 54, and the
assertion only held when the stop landed on a multiple of mir_step. On Linux
the stop landed elsewhere and CI never saw it. Adding CI on dev pushes would not have caught this — only a macOS runner would.
Four more files gate on darwin/native-engine and are silently skipped in CI: test_native_engine.py, test_fortran_adapter.py, test_rank_policy.py, test_dimsweep_threads.py.
Proposed fix
Add a macos-26 job (macOS 26, arm64, GA). Standard runners are free and
unmetered for public repositories, and pAMICA is public, so this costs nothing.
Note macos-14 is deprecated and its plain label is Intel x64; macos-latest
currently points to macos-26. Avoid -large/-xlarge variants, which are
billed even for public repos.
Scope to decide:
Full suite on macOS, or a targeted job (MLX + native engine + the
numerically-sensitive convergence tests)?
Whether to also add push: branches: [dev] so post-merge drift on the
integration branch is caught (worth doing, but note it would not have caught
the failure above).
Explicitly not proposed
A self-hosted runner on a maintainer's Mac. sccn/pAMICA is public, and GitHub
advises self-hosted runners only for private repos: a fork PR can execute
arbitrary code on the runner, which is not sandboxed between jobs. The hosted macos-26 image covers the same ground with no exposure. Self-hosted remains
the only option for CUDA, which no hosted runner provides.
#247 closed the first half: ci.yml's test-macos job installs the mlx extra, asserts a real Apple GPU device, builds the native binary with Accelerate, and runs the full "not slow" suite including pamica/tests/mlx_tests/, so the MLX and Accelerate-BLAS gaps are covered. Still open: the mne wrapper job stays Linux-only, test_fortran_adapter.py's three tests remain CI-skipped everywhere (AMICA_FORTRAN_BIN is never set), the slow Fortran bit-exact-parity tests still do not run on macOS (the bundled amica15mac is x86_64, needs Rosetta), and CI does not trigger on direct pushes to dev. Keeping open, scoped to these four items.
Activity
Add a macOS Apple Silicon CI job
Assert the Apple GPU; correct the macOS job comments
Add a macOS Apple Silicon CI job (#247)
neuromechanist commentedon Aug 22, 2026
#247 closed the first half: ci.yml's test-macos job installs the mlx extra, asserts a real Apple GPU device, builds the native binary with Accelerate, and runs the full "not slow" suite including pamica/tests/mlx_tests/, so the MLX and Accelerate-BLAS gaps are covered. Still open: the mne wrapper job stays Linux-only, test_fortran_adapter.py's three tests remain CI-skipped everywhere (AMICA_FORTRAN_BIN is never set), the slow Fortran bit-exact-parity tests still do not run on macOS (the bundled amica15mac is x86_64, needs Rosetta), and CI does not trigger on direct pushes to dev. Keeping open, scoped to these four items.
Widen CI: dev pushes, mne on macOS, weekly slow run (#290)