Repository navigation
fix(ci): bound AMD below 0.5.4 to unbreak the SciML precompile - #381
seabbs-bot wants to merge 1 commit into
Conversation
AMD 0.5.4 removed `SS_Int`. `SparseColumnPivotedQR`'s AMD extension still reads it and `LinearSolve` calls `scpqr` at load time, so the whole SciML stack fails to precompile before any package code runs. `SparseColumnPivotedQR` declares no compat for AMD, so the resolver was free to take 0.5.4. AMD becomes a direct dependency only to carry the bound; nothing here uses it. Closes #379 once upstream lands.
Try this Pull Request!Option 1: Julia Package ManagerOpen Julia and type: import Pkg
Pkg.activate(temp=true)
Pkg.add(url="https://github.com/EpiAware/ComposableTuringIDModels.jl", rev="fix/amd-pin")
using ComposableTuringIDModelsOption 2: Local CheckoutIf you have the repo locally: git checkout fix/amd-pin
julia --project=. -e "using Pkg; Pkg.instantiate()" |
There was a problem hiding this comment.
This PR adds AMD as a direct test-env dependency and bounds it to 0.5.1–0.5.3 to work around a broken 0.5.4 that breaks the SciML precompile via SparseColumnPivotedQR/LinearSolve. The fix only touches test/Project.toml; docs/Project.toml pulls in the same SciML stack (Catalyst, ModelingToolkit, OrdinaryDiffEq) and is unpinned, which lines up with the currently failing Documenter check. The added comment also embeds issue/PR numbers, which the org's own comment-history standard says not to do.
Automated first pass by seabbs-review-bot (Claude sonnet), triggered by: first pass. Not a human review. Comment @seabbs-review-bot to ask for another pass: @seabbs any time, the author's agent once it has pushed changes. Add the no-review label to opt this PR out. Ping @seabbs with any questions.
| # stack fails to precompile. See EpiAware/ComposableTuringIDModels.jl#379 and | ||
| # SciML/SparseColumnPivotedQR.jl#72. | ||
| # Drop the dep and this bound once SparseColumnPivotedQR#71 lands. | ||
| AMD = "0.5.1 - 0.5.3" |
There was a problem hiding this comment.
issue docs/Project.toml depends on the same SciML stack (Catalyst, ModelingToolkit, OrdinaryDiffEq) but has no AMD dep/bound. It will resolve AMD 0.5.4 and hit the exact precompile failure described here — which is consistent with the Documenter/Documentation check currently failing on this PR. Add the same AMD dep and "0.5.1 - 0.5.3" compat entry to docs/Project.toml.
| # is free to take 0.5.4, which removed `SS_Int`. Its AMD extension still reads | ||
| # that name, and `LinearSolve` calls `scpqr` at load time, so the whole SciML | ||
| # stack fails to precompile. See EpiAware/ComposableTuringIDModels.jl#379 and | ||
| # SciML/SparseColumnPivotedQR.jl#72. |
There was a problem hiding this comment.
issue This comment cites #379, SciML/SparseColumnPivotedQR.jl#72 and #71. Org standard 8 ("Comments and docs carry no development history") says comments carry no issue or PR numbers — that record belongs to git blame/the PR, not the source. Keep the technical why (AMD unused directly, no compat from SparseColumnPivotedQR, 0.5.4 dropped SS_Int) and drop the issue references and the "once SparseColumnPivotedQR#71 lands" removal note.
Codecov Report✅ All modified and coverable lines are covered by tests.
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
The bound in `test/Project.toml` covered only the test environment. `docs`, `benchmark`, `test/ad`, `test/ADFixtures` and `test/jet` each resolve AMD independently and took 0.5.4, which is why #381's first run passed the whole suite except `Quality: linting (JET)`. A root compat bound reaches all of them, including `test/jet/Project.toml`, which is scaffold-managed and must not be hand-edited. AMD is then declared but never loaded, so Aqua's stale-deps check needs to ignore it. Both come out with the dependency once upstream lands.
Unblocks every open PR. The red across the repo has one cause, and it is not in this package.
What breaks
AMD.jl0.5.4 removedSS_Int.SparseColumnPivotedQR's AMD extension still reads that name, andLinearSolvecallsscpqrat load time, so precompilation of the whole SciML stack fails before any package code runs:Confirmed in the failing
test / testlogs on #348, #366, #373 and #377. It also takes downcoverage,downgrade-compatandBenchmark. On #366 every macOS and Windows job fails this way, so it is not platform-specific — it is whichever jobs have run since the resolution moved.mainis not exempt — it is already red. Test run 33872097377 on658bf8fafails on the same first error. The last green run was 33862009154 on2b9b89e2at 10:11 today, so the break arrived in the registry between 10:11 and 12:18.The split across jobs is exactly which of them resolve
ModelingToolkit: the seven AD jobs, the nine-way test matrix,downgrade-compatandDocumenterare red, whilepre-commit,registrability,sync, both benchmarks,compareand codecov are green.Why the resolver was free to do this
SparseColumnPivotedQRdeclares no compat entry for AMD at all. Its registryCompat.tomlbounds onlySparseMatricesCSR,LinearAlgebra,PrecompileTools,SparseArraysandjulia. AMD is a weak dependency with no upper bound.The bound
AMD = "0.5.1 - 0.5.3"in the rootProject.toml, with AMD as a direct dependency purely to carry it. SciML/SparseColumnPivotedQR.jl#66 (closed) confirmsSS_Inthas been present since 0.5.1, so the floor is real rather than arbitrary.Why the root file and not
test/Project.tomlThe first version of this PR bounded only the test environment. That was not enough:
docs,benchmark,test/ad,test/ADFixturesandtest/jeteach resolve AMD independently. The first CI run showed it exactly — the whole suite passed (1972 unit tests, every other quality item) exceptQuality: linting (JET), which runs in its own environment and had taken 0.5.4.A root compat bound is inherited by every environment that resolves the package. That includes
test/jet/Project.toml, which is scaffold-managed and must not be hand-edited, so bounding each environment separately was not an option there.The Aqua consequence
AMD is declared but never loaded, so
Aqua.test_stale_depswould flag it.QA_CONFIG.aquanow passesstale_deps = (; ignore = [:AMD]). That ignore is part of the same workaround and comes out with the dependency.Verified, not assumed
A scratch environment holding the same
LinearSolve 5.15.1andSparseColumnPivotedQR 2.1.7as the failing CI runs, with only AMD changed, loads cleanly. The real test environment then resolves to AMD 0.5.3 and loadsModelingToolkitandOrdinaryDiffEq, both of which sit onLinearSolve.Upstream
Already filed by others, so nothing to report:
AMD.SS_Int, removed in AMD.jl 0.5.4; LinearSolve precompilation fails SciML/SparseColumnPivotedQR.jl#72 — the bugThis is a workaround with a removal condition, not a fix. Drop the dep and the bound once #71 lands. Tracked in #379.
This was opened by a bot. Please ping @seabbs for any questions.