Skip to content

coverage CI fails repo-wide on an upstream AMD/LinearSolve precompile break #379

Closed

Description

@seabbs-bot

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:

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

  1. seabbs-bot commented on Sep 4, 2026

    @seabbs-bot
    CollaboratorAuthor

    It is not only coverage. The same UndefVarError: SS_Int not defined in AMD takes down three jobs, each at dependency precompilation and before any package code runs:

    Job Where it breaks
    coverage / coverage julia-actions/julia-runtest, so julia-processcoverage and the codecov upload are skipped
    downgrade-compat / Downgrade Compat the same test step
    Benchmark (pr) precompiling ComposableTuringIDModels itself, at using OrdinaryDiffEq (src/ComposableTuringIDModels.jl:40), via LinearSolve and OrdinaryDiffEqRosenbrock

    The Benchmark job is the clearest reading of it: the package cannot precompile at all in a freshly resolved environment, so nothing downstream of OrdinaryDiffEq can run there.

    downgrade-compat fails the same way on #377, and both it and Benchmark passed 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.

  2. seabbs-bot commented on Sep 4, 2026

    @seabbs-bot
    CollaboratorAuthor

    The blast radius is wider again: the test / test matrix is down too, so the line in the body saying this blocks "nothing in the package itself" is wrong.

    Confirmed by counting SS_Int in the failing test / test job logs:

    PR occurrences in a failing test / job
    #348 10
    #366 12
    #373 10
    #377 10

    On #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

    LinearSolve calls scpqr at load time, so this is a precompile failure, not a test failure:

    _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
    

    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

    SparseColumnPivotedQR has 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, so nothing stopped the resolver taking 0.5.4, which removed SS_Int.

    That also corrects the guess in the body: the movement is in AMD, not in LinearSolve.

    Upstream

    Both already filed today, so nothing to report there:

    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:

    AMD = "0.5.1 - 0.5.3"

    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.

  3. seabbs-bot commented on Sep 4, 2026

    @seabbs-bot
    CollaboratorAuthor

    It is wider than the coverage job now. On #373's run 33878542889 the same UndefVarError: SS_Int not defined in AMD fails every test matrix entry, all three Julia versions on all three platforms, and every ad job in run 33878541776. Logs from test (1, macOS-latest) and test (1.11, ubuntu-latest) both stop at the same LinearSolve precompile failure before a single test item runs.

    codecov/project goes 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 the unit flag moves by -0.01%, well inside the 1% threshold in codecov.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.

  4. seabbs-bot commented on Sep 4, 2026

    @seabbs-bot
    CollaboratorAuthor

    Wider than coverage. The same UndefVarError: SS_Intnot defined inAMD`` now takes down the test / test matrix and every one of the seven `ad` jobs, on this repo's `main` as well as on open PRs.

    Evidence, all from today.

    main at 658bf8f, Test run 33872097377: test / test (1, ubuntu-latest) and test / test (pre, ubuntu-latest) both fail, with Failed to precompile for LinearSolve, ModelingToolkit, Catalyst, ComposableTuringIDModelsCatalystExt and ComposableTuringIDModels itself, downstream of the AMD error.

    PR #348 at 6f3f0de, AD run 33875754867: all seven backends fail, and each reports 0 passed, 0 failed, 1 errored. The error is the AMD one, 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 red test / test row 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 Compat has job conclusion cancelled after 45m53s, and Documenter / Documentation is the shared gh-pages-deploy concurrency cancellation from #353. gh pr checks renders both as fail.

    This was opened by a bot. Please ping @seabbs for any questions.

  5. seabbs-bot commented on Sep 4, 2026

    @seabbs-bot
    CollaboratorAuthor

    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 main is red the same way.

    Failing on #348 (run 33875754867 and siblings): all seven AD jobs, the whole nine-way test matrix, downgrade-compat, and Documenter.
    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:

    UndefVarError: `SS_Int` not defined in `AMD`
    Failed to precompile LinearSolve
    Failed to precompile ModelingToolkit
    

    Ten direct dependencies then fail to precompile behind it.
    So this is not specific to coverage and not specific to any branch: anything resolving ModelingToolkit gets it, which here is the test environment via Catalyst/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 main was 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.

  6. seabbs-bot commented on Sep 4, 2026

    @seabbs-bot
    CollaboratorAuthor

    It is no longer only coverage.
    On #366 (docs-only, 14 markdown and TOML files, no source touched) coverage / coverage passes and the whole test / test matrix fails instead, plus downgrade-compat.

    Ten of ten test jobs, every OS and every Julia version, end at the same place:

    ERROR: LoadError: UndefVarError: `SS_Int` not defined in `AMD`
    ERROR: LoadError: Failed to precompile LinearSolve [7ed4a6bd-45f5-4d41-b270-4a48e9bafcae]
    ERROR: LoadError: The following 10 direct dependencies failed to precompile
    

    Evidence it is not the PR:

    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.

  7. seabbs-bot commented on Sep 4, 2026

    @seabbs-bot
    CollaboratorAuthor

    Definitive: Benchmark (main) now fails the same way. That job builds and benchmarks main, 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.toml fresh and loading the package fails at precompilation on this machine, with the same AMD error, so it is the dependency graph rather than anything about the CI runners.

    The four jobs affected are coverage, downgrade-compat, Benchmark (pr) and Benchmark (main). All four resolve dependencies afresh; the test / test matrix and pre-commit are unaffected.

    This was opened by a bot. Please ping @seabbs for any questions.

  8. seabbs-bot commented on Sep 4, 2026

    @seabbs-bot
    CollaboratorAuthor

    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, plus downgrade-compat.

    Run 33890468722: 9 of 9 test / test jobs fail, and each fails in julia-actions/julia-runtest@v1 at precompilation, before any test runs. Pulled the raw job logs for macOS 1.11 (101080607469) and downgrade (101080607307) and both end at the same AMD error under LinearSolve, NonlinearSolveFirstOrder, ImplicitDiscreteSolve, ModelingToolkitBase, ModelingToolkit, OrdinaryDiffEqRosenbrock and OrdinaryDiffEq.

    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.

  9. added a commit that references this issue on Sep 4, 2026
    3b72121
  10. seabbs-bot commented on Sep 5, 2026

    @seabbs-bot
    CollaboratorAuthor

    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:

    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 in test/Project.toml, so every job on a branch carrying that item errors in reconstruction.jl.
    #388 fixes it.


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions