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
Great! Not sure you saw it @prady0t , there's an MLX tracker at data-apis/array-api-compat#450, which links several sub-issues.
I think it'd be best to use this tracker, and follow a similar style: run tests and note failures per group of functions (ideally, with repro examples from the test suite), then sort triage the failures into roughly three buckets: "submit fixes to MLX itself", "test suite needs improving", and "hard, leave to the end".
Activity
ev-br commentedon Aug 4, 2026
PR welcome, I'd say. A minimal workaround to unblock running the test suite with MLX would be best.
prady0t commentedon Aug 5, 2026
MLX is missing
__array_namespace_info__, this prevents pytest from collecting tests. Is this being tackled in the compat layer?I tried running tests by skipping the
__array_namespace_info__attribute.But there were a few more blockers:
Calls to
xp.__array_namespace_info__().devices()were put inside try block, returningNonewhen exception (our MLX case)We should put this line inside the try block too to avoid test suite failures when the device is not an accepted argument (our MLX case):
array-api-tests/array_api_tests/dtype_helpers.py
Line 206 in 4b42caf
After these changes, I ran with
ARRAY_API_TESTS_SKIP_DTYPES=float64(since float64 is not supported), and the tests are running now.ev-br commentedon Aug 5, 2026
Great! Not sure you saw it @prady0t , there's an MLX tracker at data-apis/array-api-compat#450, which links several sub-issues.
I think it'd be best to use this tracker, and follow a similar style: run tests and note failures per group of functions (ideally, with repro examples from the test suite), then sort triage the failures into roughly three buckets: "submit fixes to MLX itself", "test suite needs improving", and "hard, leave to the end".
ev-br commentedon Aug 5, 2026
It'd be great to do a breadth-first kind of summary of what are these 409 failures, similar to data-apis/array-api-compat#452
For deciding what to submit upstream and in which order, the general guidance is data-apis/array-api-compat#452 (comment)