Commit 6acf73d
Fix CI: gate MATLAB-runtime tests on engine availability; raise MATLAB floor to 0.8.1 (#83)
The Core and Downgrade jobs have been red because the MATLAB runtime is not
available on CI runners:
- Core (julia 1 / lts): matlab_runtime_tests.jl calls solve(prob, ode45()),
which opens a MATLAB MSession. On any runner without a usable MATLAB engine
(all GitHub-hosted runners, and self-hosted runners without a licensed
engine) MSession throws UndefRefError, erroring the test. The interface and
JET tests, which exercise this package's own logic without an engine, pass.
Gate the engine-dependent solve calls on an actual capability probe
(MATLAB.libmx_size > 0 plus a real MSession(0) attempt): run them where a
working MATLAB engine exists (and assert they succeed), skip with an @info
notice where it does not. The package logic tests still run unconditionally.
- Downgrade (lts): the MATLAB compat floor "0.8" resolves MATLAB v0.8.0, whose
__init__ unconditionally runs `which matlab` and errors when MATLAB is absent,
so MATLABDiffEq cannot even precompile. v0.8.1 introduced the deps.jl /
check_deps build mechanism with a CI fallback (libmx_size = 0) that loads
gracefully without MATLAB. Raise the floor to "0.8.1" (drops only the broken
v0.8.0 patch) so Downgrade resolves to a loadable MATLAB.
Verified locally on Julia 1.12 (the "julia 1" channel) with CI=true and no
MATLAB present: Core tests pass (interface 40/40, jet 34/34, runtime tests
skipped with the @info notice). MATLAB v0.8.1 confirmed to load gracefully
(libmx_size == 0) on Julia 1.10 with CI=true and no MATLAB installed.
Co-authored-by: ChrisRackauckas-Claude <accounts@chrisrackauckas.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent b1cc7a7 commit 6acf73d
2 files changed
Lines changed: 61 additions & 34 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
4 | 8 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
19 | 21 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 22 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
34 | 58 | | |
35 | | - | |
36 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
37 | 64 | | |
0 commit comments