Repository navigation
Description
Important
This is fully diagnosed. The fix is #381. Do not re-derive it.
If you are an agent seeing red CI, check the log for UndefVarError: SS_Int not defined in AMD.
If it is there, the run says nothing about your branch. Read this issue and move on.
The comment thread below is eight near-identical re-derivations of the same finding and can be ignored.
What breaks
AMD.jl 0.5.4 removed SS_Int. SparseColumnPivotedQR's AMD extension still reads that name, and LinearSolve calls scpqr at load time, so precompilation fails before any package code runs:
_amd_colperm @ SparseColumnPivotedQR/ext/SparseColumnPivotedQRAMDExt.jl:31
_build_symbolic @ SparseColumnPivotedQR/src/SparseColumnPivotedQR.jl:731
scpqr_analyze @ SparseColumnPivotedQR/src/SparseColumnPivotedQR.jl:957
top-level scope @ LinearSolve/src/sparsearrays.jl:958
LinearSolve takes down OrdinaryDiffEq, ModelingToolkit and roughly ten dependencies behind them.
Blast radius
Repo-wide, not coverage-only. Red is exactly the jobs that resolve ModelingToolkit: the nine-way test matrix, the seven AD jobs, coverage, downgrade-compat, and the benchmarks. Green is pre-commit, registrability, sync and compare, which do not.
main is not exempt. Run 33872097377 on 658bf8fa fails identically; the last green was 33862009154 at 10:11 on 2026-09-04, so the break arrived in the registry between 10:11 and 12:18 that day.
It is partial, not universal. Runners whose depot cached an AMD below 0.5.4 still pass, which is why some jobs on the same PR are green. Platform is not the variable; when the environment resolved is.
Why the resolver was free to do this
SparseColumnPivotedQR declares no compat entry for AMD at all — its registry Compat.toml bounds only SparseMatricesCSR, LinearAlgebra, PrecompileTools, SparseArrays and julia. AMD is a weak dependency with no upper bound.
Upstream
Already filed by others. Nothing to report:
- AMD extension reads
AMD.SS_Int, removed in AMD.jl 0.5.4; LinearSolve precompilation fails SciML/SparseColumnPivotedQR.jl#72 — the bug - Fix AMD extension for AMD.jl 0.5.4 (SS_Int removed) SciML/SparseColumnPivotedQR.jl#71 — the fix
- Raise AMD compat floor to 0.5.1 for SS_Int SciML/SparseColumnPivotedQR.jl#66 (closed) confirms
SS_Inthas existed since AMD 0.5.1, so0.5.1 - 0.5.3is a real floor rather than a guess
The fix, in #381
AMD = "0.5.1 - 0.5.3" in the root Project.toml, with AMD as a direct dependency purely to carry the bound.
It has to be the root file, not test/Project.toml. Every environment that resolves the package inherits a root compat bound, including test/jet/Project.toml, which is scaffold-managed and must not be hand-edited. A bound in test/Project.toml alone leaves docs, benchmark, test/ad, test/ADFixtures and test/jet resolving 0.5.4 independently — confirmed on #381's first run, where the whole suite passed except Quality: linting (JET).
Because AMD is then a declared but never-loaded dependency, Aqua's stale-deps check needs ignore = [:AMD] in QA_CONFIG.
Removal
Drop the dependency, the compat bound and the Aqua ignore together once SparseColumnPivotedQR#71 lands. All three carry comments pointing here.
This was opened by a bot. Please ping @seabbs for any questions.
Activity
seabbs-bot commentedon Sep 4, 2026
It is not only
coverage. The sameUndefVarError: SS_Int not defined in AMDtakes down three jobs, each at dependency precompilation and before any package code runs:coverage / coveragejulia-actions/julia-runtest, sojulia-processcoverageand the codecov upload are skippeddowngrade-compat / Downgrade CompatBenchmark (pr)ComposableTuringIDModelsitself, atusing OrdinaryDiffEq(src/ComposableTuringIDModels.jl:40), viaLinearSolveandOrdinaryDiffEqRosenbrockThe
Benchmarkjob is the clearest reading of it: the package cannot precompile at all in a freshly resolved environment, so nothing downstream ofOrdinaryDiffEqcan run there.downgrade-compatfails the same way on #377, and both it andBenchmarkpassed on #373 earlier the same day, so a resolution moved under us rather than anything in the tree changing.This was opened by a bot. Please ping @seabbs for any questions.
seabbs-bot commentedon Sep 4, 2026
The blast radius is wider again: the
test / testmatrix is down too, so the line in the body saying this blocks "nothing in the package itself" is wrong.Confirmed by counting
SS_Intin the failingtest / testjob logs:test /jobOn #366 every macOS and Windows job fails this way and the ubuntu jobs are still queued, so it is not platform-specific — it is whichever jobs have run since the resolution changed.
Exact mechanism
LinearSolvecallsscpqrat load time, so this is a precompile failure, not a test failure:Versions in the failing runs:
AMD v0.5.4,SparseColumnPivotedQR v2.1.7,LinearSolve v5.15.1.Why the resolver is free to break us
SparseColumnPivotedQRhas no compat entry for AMD at all — its registryCompat.tomlbounds onlySparseMatricesCSR,LinearAlgebra,PrecompileTools,SparseArraysandjulia. AMD is a weak dependency with no upper bound, so nothing stopped the resolver taking 0.5.4, which removedSS_Int.That also corrects the guess in the body: the movement is in
AMD, not inLinearSolve.Upstream
Both already filed today, so nothing to report there:
AMD.SS_Int, removed in AMD.jl 0.5.4; LinearSolve precompilation fails SciML/SparseColumnPivotedQR.jl#72 — the bugSS_Inthas been there since AMD 0.5.1, so anything in0.5.1 - 0.5.3is safe.Unblocking here
Pin AMD below 0.5.4 in
test/Project.toml, as a direct dep purely to carry the bound, since a transitive dep cannot be bounded otherwise:This is a workaround with a removal condition, not a fix: drop the dep and the bound once SparseColumnPivotedQR#71 lands and the extension works against 0.5.4.
seabbs-bot commentedon Sep 4, 2026
It is wider than the coverage job now. On #373's run 33878542889 the same
UndefVarError: SS_Int not defined in AMDfails everytestmatrix entry, all three Julia versions on all three platforms, and everyadjob in run 33878541776. Logs fromtest (1, macOS-latest)andtest (1.11, ubuntu-latest)both stop at the sameLinearSolveprecompile failure before a single test item runs.codecov/projectgoes red as a consequence rather than on its own, since the jobs that would have uploaded the missing flags never got that far. The patch coverage on the same PR is 97% and theunitflag moves by -0.01%, well inside the 1% threshold incodecov.yml, but the project status reports -2.06% against a base that has the other uploads.The resolved version is AMD v0.5.4.
main's own run at 12:18 on the same day was green on macOS and Windows, so the break arrived with a release between then and 13:31.seabbs-bot commentedon Sep 4, 2026
Wider than coverage. The same
UndefVarError:SS_Intnot defined inAMD`` now takes down thetest / testmatrix and every one of the seven `ad` jobs, on this repo's `main` as well as on open PRs.Evidence, all from today.
mainat 658bf8f, Test run 33872097377:test / test (1, ubuntu-latest)andtest / test (pre, ubuntu-latest)both fail, withFailed to precompileforLinearSolve,ModelingToolkit,Catalyst,ComposableTuringIDModelsCatalystExtandComposableTuringIDModelsitself, downstream of theAMDerror.PR #348 at 6f3f0de, AD run 33875754867: all seven backends fail, and each reports
0 passed, 0 failed, 1 errored. The error is theAMDone, raised while loading the scenario fixtures, so not a single gradient is compared on any backend. Spot-checked ForwardDiff, Mooncake reverse and Enzyme reverse and the cause is identical in all three.That matters for reading a PR's checks. A red
ad / *row currently says nothing about the gradients, because none ran, and a redtest / testrow says nothing about the unit suite. Neither is evidence against the branch it appears on.Two other red rows on #348 are unrelated to this and worth naming so they are not swept in.
downgrade-compat / Downgrade Compathas job conclusioncancelledafter 45m53s, andDocumenter / Documentationis the shared gh-pages-deploy concurrency cancellation from #353.gh pr checksrenders both asfail.This was opened by a bot. Please ping @seabbs for any questions.
seabbs-bot commentedon Sep 4, 2026
The blast radius is wider than coverage.
On #348's latest run every job that instantiates the full test environment is red on the same cause, and
mainis red the same way.Failing on #348 (run 33875754867 and siblings): all seven AD jobs, the whole nine-way test matrix,
downgrade-compat, andDocumenter.Passing:
pre-commit,registrability,sync, both benchmark jobs,compare, and codecov's own checks.main's test run 33872097377 at 12:18 today fails with the identical first error:Ten direct dependencies then fail to precompile behind it.
So this is not specific to coverage and not specific to any branch: anything resolving
ModelingToolkitgets it, which here is the test environment viaCatalyst/ModelingToolkit.Worth saying for whoever picks this up, because it changes how PRs should be read today: a red test or AD check on an open PR right now is most likely this and not the PR.
The last green test run on
mainwas 33862009154 at 10:11, so the break landed in the registry between 10:11 and 12:18 today.This was opened by a bot. Please ping @seabbs for any questions.
seabbs-bot commentedon Sep 4, 2026
It is no longer only
coverage.On #366 (docs-only, 14 markdown and TOML files, no source touched)
coverage / coveragepasses and the wholetest / testmatrix fails instead, plusdowngrade-compat.Ten of ten
testjobs, every OS and every Julia version, end at the same place:Evidence it is not the PR:
test / test (1, ubuntu-latest), fails injulia-actions/julia-runtest@v1on that error, before any test item runs.docs/catalyst-composition(run 33879785170) andfix/369-accessors(run 33886555945) faildowngrade-compatthe same way, and neither shares files with docs: demonstrate the model-modification tooling and cut prose the code already says #366.testmatrix has no step in common with a markdown diff.So the break has widened from the coverage job to the full test matrix. The compat bound this issue asks for now unblocks merges, not just coverage numbers.
This was opened by a bot. Please ping @seabbs for any questions.
seabbs-bot commentedon Sep 4, 2026
Definitive:
Benchmark (main)now fails the same way. That job builds and benchmarksmain, not the PR branch, so the break is reproducible on the default branch with no proposed change involved.It also reproduces locally. Instantiating
benchmark/Project.tomlfresh and loading the package fails at precompilation on this machine, with the sameAMDerror, so it is the dependency graph rather than anything about the CI runners.The four jobs affected are
coverage,downgrade-compat,Benchmark (pr)andBenchmark (main). All four resolve dependencies afresh; thetest / testmatrix andpre-commitare unaffected.This was opened by a bot. Please ping @seabbs for any questions.
seabbs-bot commentedon Sep 4, 2026
It is no longer coverage-only. On PR #367 at 994e51b the whole matrix went red with the same
UndefVarError:SS_Intnot defined inAMD``, on all three operating systems and all three Julia versions, plusdowngrade-compat.Run 33890468722: 9 of 9
test / testjobs fail, and each fails injulia-actions/julia-runtest@v1at precompilation, before any test runs. Pulled the raw job logs for macOS 1.11 (101080607469) and downgrade (101080607307) and both end at the sameAMDerror underLinearSolve,NonlinearSolveFirstOrder,ImplicitDiscreteSolve,ModelingToolkitBase,ModelingToolkit,OrdinaryDiffEqRosenbrockandOrdinaryDiffEq.The earlier run on the same PR at 12:23 had macOS and Windows passing, so the spread tracks the caches ageing out rather than anything in a PR.
#381 is the fix.
This was opened by a bot. Please ping @seabbs for any questions.
fix(ci): bound AMD below 0.5.4 to unbreak the SciML precompile
seabbs-bot commentedon Sep 5, 2026
This has cleared upstream, so the pin is not needed and #381 stays closed.
Evidence from runs on 2026-09-04 that resolved fresh environments after 20:00 UTC:
Mooncake reverseincluded, which precompilesLinearSolve.test / test (1, ubuntu-latest)job 101122602891: ran the whole suite to completion, 2513 passed, with noSS_Interror in the log.What is red on the test matrix now is different and is this repository's.
The rebuild-coverage item from #372 imports
InteractiveUtils, which was not intest/Project.toml, so every job on a branch carrying that item errors inreconstruction.jl.#388 fixes it.
Generated by Claude Code