Skip to content

SciML CI conformance audit & remediation tracker (downgrade, docs-CI, CompatHelper, …) #56

Closed

Description

@ChrisRackauckas-Claude

SciML CI conformance audit & remediation tracker

Complete audit of how SciML repos conform to the shared reusable-workflow CI system in SciML/.github (workflows + inputs documented in the README). Surveyed 2026-06-05: 133 non-monorepo Julia repos + 11 monorepos. Each section is independently actionable — an agent can take one category and work the checklist. General rules for every PR are at the bottom.


⚠️ BLOCKER: @v1 is stale — fix this first

The whole rollout consumes SciML/.github/...@v1, but v1 is stuck at an old commit (4ccf4d5) that lacks the project-model sublibrary workflow and the four reusable workflows merged below. The moving-tag automation (major-version-tag.yml) is misfiring — runs for v1.0.0/v1.1.0 failed, v1.2.0's run is stuck queued, so v1 never advanced. Even v1.2.0 predates the four new workflows.

Action (release owner): cut a fresh tag from current master (has everything) and ensure v1 moves to it; investigate/repair major-version-tag.yml (the GITHUB_TOKEN tag-push or the queued run). Until v1 points at current master, every @v1 caller below — and the 11 sublibrary-CI migration PRs — will fail or no-op.

Recently merged infra (now on master, pending the retag above)


A. Not on centralized tests.yml (re-assessed 2026-06-05 — mostly N/A)

These wrappers are legitimately custom because of non-apt system deps; forcing them onto tests.yml would break their setup. Do not migrate:

  • deSolveDiffEq.jl — has working Tests.yml (r-lib/setup-r + Rscript install.packages("deSolve") + LD_LIBRARY_PATH). Keep.
  • FEniCS.jl — CI.yml runs in the cmhyett/julia-fenics container. Keep.
  • Pyomo.jl — the one genuine gap: no test workflow at all. Needs Python + pip install pyomo (the tests.yml apt-packages hook covers apt, not pip), so it needs a small custom CI job, not a centralized caller.

(Non-packages excluded: ColPrac, SciMLDocs, ModelingToolkitWorkshop_JuliaCon2024.)

B. downgrade disabled or missing (24 + 2) — largest gap

Downgrade.yml exists but is gated if: false ("waiting on dependency updates") in 24 repos, and absent in 2.

⚠️ Do NOT just delete if: false — they fail. The point is to verify [compat] lower bounds are real. Per repo:

  1. Reproduce locally: pin every [compat] dep to its lower bound (mirror julia-actions/julia-downgrade-compat), delete Manifest.toml, Pkg.resolve(), Pkg.test().
  2. Read failures (usually MethodError/UndefVarError — a feature missing in the old version).
  3. Raise the lower bound in [compat] to the earliest version that has what the code uses. Do not loosen/skip tests.
  4. Iterate to green; remove if: false. PR = the [compat] bumps + re-enabled workflow.

Start with one (e.g. DASSL.jl or ExponentialUtilities.jl) to set the pattern, then fan out.

Automated-fix attempt (2026-06-05) — result: only 1/24 auto-fixable

Ran a two-pass automated converge+test pipeline (reproduce julia-downgrade-compat on 1.10 → auto-raise the lowest [compat] floors until it resolves → run the full suite at those floors → draft PR if green). After fixing harness bugs (skip stdlibs, merge [weakdeps], registry update, sequential to avoid depot races):

  • PR opened (tested green): 1 — ODEInterfaceDiffEq#100 (thin wrapper, low runtime coupling).
  • TEST_FAIL: 19 — floors now resolve, but the suite fails at runtime (e.g. ExponentialUtilities: MethodError trunc(::Type{UInt64}, ::DoubleFloats.Double64)). The resolved floor of some dep is still too old for how the package uses it.
  • NO_CONVERGE: 4 — DiffEqFlux, MethodOfLines, NeuralPDE, SciMLSensitivity (deep transitive conflicts the auto-bumper can't resolve).

Conclusion: re-enabling downgrade here is NOT mechanically automatable. The auto-tool fixes resolution, but each repo then needs test-driven iterative bound-tightening (run suite → read the MethodError/feature-missing → bump that specific dep's floor → repeat) — real per-repo engineering, which is exactly why these were disabled. Tooling + per-repo logs retained (dg/ in the working tree).

Environment-blocked (not floor-fixable):

  • MathML — needs Statistics 1.11.1 (Julia ≥1.11); downgrade runs on 1.10 → bump its downgrade julia-version, don't touch floors.
  • MATLABDiffEq — needs MATLAB installed; can't be CI-tested without it.

Non-compat failures (file as bugs, not downgrade):

  • IRKGaussLegendre — UndefVarError: PolInterp! (real code/test error).
  • FunctionProperties — suite fails at the original floors (0 bumps) = pre-existing 1.10 failure.

B1 — disabled (if: false)

  • DASSL.jl
  • DiffEqBayes.jl
  • DiffEqCallbacks.jl
  • DiffEqFlux.jl
  • DiffEqGPU.jl
  • DiffEqNoiseProcess.jl
  • DiffEqParamEstim.jl
  • DifferenceEquations.jl
  • ExponentialUtilities.jl
  • FunctionProperties.jl
  • IRKGaussLegendre.jl
  • JumpProcesses.jl
  • LabelledArrays.jl
  • MathML.jl
  • MATLABDiffEq.jl
  • MethodOfLines.jl
  • ModelingToolkitNeuralNets.jl
  • ModelingToolkitStandardLibrary.jl
  • NeuralPDE.jl
  • ODEInterfaceDiffEq.jl
  • PDESystemLibrary.jl
  • SBMLToolkit.jl
  • SciMLSensitivity.jl
  • Surrogates.jl

B2 — missing entirely (add Downgrade.yml → downgrade.yml@v1, then run the recipe)

  • OptimalUncertaintyQuantification.jl
  • SciMLLogging.jl

B3 — downstream disabled

  • PureKLU.jl — Downstream.yml is if: false; investigate and re-enable.

C. Formatting — Runic (with exemptions)

Spellcheck has no gaps. Runic: the only non-monorepo previously flagged was Catalyst.jl — now exempt (see below), so no required Runic additions remain.

Runic exemptions (do NOT add runic.yml / do NOT reformat):

  • Catalyst.jl and JumpProcesses.jl — maintainer (Sam Isaacson) keeps them on their own JuliaFormatter (Format) setup. Documented in the README.

D. Docs CI — RESOLVED (was a false positive)

The original "12 repos with docs but no Documentation CI" was a detection artifact — the audit matched only the literal filename Documentation.yml. On inspection, all 12 already build & deploy docs via differently-named workflows (docs.yml, ci.yml, GPU.yml, Documenter.yml, …): ComponentArrays, ConcreteStructs, DiffEqFlux, DiffEqGPU, HighDimPDE, NeuralPDE, OrgMaintenanceScripts, ReservoirComputing, RootedTrees, SciMLSensitivity, Static, SymbolicAnalysis. No action needed (optional: migrate inline docs builds to documentation.yml@v1 for consistency — low priority, not a gap).

E. CompatHelper still present — monorepos (6)

CompatHelper is retired (Dependabot's Julia ecosystem drives [compat] bumps). Recipe: delete CompatHelper.yml; ensure .github/dependabot.yml has a julia block for each dir with a Project.toml (root + each lib/*).

  • ModelingToolkit.jl
  • DataDrivenDiffEq.jl
  • Optimization.jl
  • NonlinearSolve.jl
  • LinearSolve.jl
  • Corleone.jl

(Non-monorepos are already clean: 0 CompatHelper, 0 typos-ignores.)


F. Monorepo sublibrary CI migration → then retire sublibrary-tests.yml

Goal: one sublibrary workflow (the project model). 11 monorepos migrating to sublibrary-project-tests.yml@v1. PRs: OrdinaryDiffEq#3718, ModelingToolkit#4594, BoundaryValueDiffEq#499, NonlinearSolve#954, Corleone#77, DataDrivenDiffEq#611, RecursiveArrayTools#605, LinearSolve#1006, NeuralLyapunov#187, DiffEqProblemLibrary#192, Optimization#1216.

v1 retag is now done (v1.3.0). Sequence to converge on one workflow:

  • Resolve the one ODE-specific gap: sublibrary-tests.yml pins JULIA_DEPOT_PATH=~/.julia for self-hosted depot consistency; the project-model path (tests.yml) does not. Either port a depot-pin/runner-aware option into tests.yml, or confirm via a real self-hosted GPU run (the #3718 caveat) that it isn't needed.
  • Verify CI on all 11 migration PRs and merge them (7 still reference sublibrary-tests.yml@v1: OrdinaryDiffEq, ModelingToolkit, Optimization, NonlinearSolve, DiffEqProblemLibrary, BoundaryValueDiffEq, Corleone).
  • Only after no repo references it: delete sublibrary-tests.yml from SciML/.github (and prune the now-unused default group-matrix path in compute_affected_sublibraries.jl if desired — keep --projects-matrix). Removing a reusable workflow is breaking, so confirm zero consumers org-wide first.

G. Adopt reusable TagBot (org-wide)

tagbot.yml@v1 now exists; every repo still carries a bespoke TagBot.yml. Recipe: replace each with a tagbot.yml@v1 caller (keep the issue_comment/workflow_dispatch triggers); monorepos matrix over lib/* with subdir: lib/<pkg>. Mechanical; do in batches. (Lower priority than B/D/E.)

H. Adopt Dependabot auto-merge (optional)

dependabot-automerge.yml@v1 now exists. Add a DependabotAutoMerge.yml caller to repos where you want green Dependabot PRs (Actions/compat bumps) to merge automatically. Requires the repo to have auto-merge enabled + required status checks.

I. Adopt docs-preview-cleanup (docs repos)

docs-preview-cleanup.yml@v1 now exists. Add a DocPreviewCleanup.yml (on pull_request: [closed]) to repos that deploy Documenter PR previews, to keep gh-pages from bloating.


General rules for every remediation PR

  • Branch off the default branch; never commit to master/main directly.
  • Open as draft; body: "ignore until reviewed by @ChrisRackauckas".
  • Run the relevant check locally and show it passing before claiming it works. Don't infer from inspection.
  • Never skip/disable tests, loosen tolerances, or add typos-ignores to make a check pass — fix the underlying issue.
  • Respect the Runic exemptions (Catalyst.jl, JumpProcesses.jl).
  • Run Runic on non-exempt SciML repos before committing.
  • Co-author: Co-Authored-By: Chris Rackauckas <[email protected]>.

Audit compiled by Claude for @ChrisRackauckas.

Activity

  1. changed the title [-]CI uniformization rollout: re-enable disabled downgrade + fill remaining gaps[/-] [+]SciML CI conformance audit & remediation tracker (downgrade, docs-CI, CompatHelper, …)[/+] on Jun 5, 2026
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