Skip to content

Declare the BDF LHL test's dependencies so the test can run - #4375

Closed
ChrisRackauckas-Claude wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-bdf-scimloperators-testdep
Closed

ChrisRackauckas-Claude wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix-bdf-scimloperators-testdep

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Ignore until reviewed by @ChrisRackauckas.

What changed and why

lib/OrdinaryDiffEqBDF/test/lhl_factorization_tests.jl (added by #4266) has two undeclared dependencies, so the testset has never actually run:

  1. It does using SciMLOperators: WOperator, jacobian_stale, but SciMLOperators is in neither [deps] nor [extras] of lib/OrdinaryDiffEqBDF/Project.toml. The file fails to load, and downgrade-sublibraries / test (lib/OrdinaryDiffEqBDF) is red on master and on every PR branched from it.
  2. Once it loads, FIRK refuses a reduction it cannot reuse fails. The ArgumentError it expects is raised in the in-repo lib/OrdinaryDiffEqFIRK/src/firk_operators.jl:153, but OrdinaryDiffEqFIRK is not in BDF's [sources], so the test environment resolves the registered OrdinaryDiffEqFIRK v2.7.0 — which predates that change — instead of the repo's v2.8.0.

Fix: add SciMLOperators to [extras], [compat] and [targets].test, and add OrdinaryDiffEqFIRK = {path = "../OrdinaryDiffEqFIRK"} to [sources]. Project.toml only; no code or test changes.

Verification

GROUP=Core Pkg.test() on lib/OrdinaryDiffEqBDF, clean master 13da423dd, Julia 1.12.4.

Before — the testset cannot load:

LHL Factorization Tests: Error During Test at SafeTestsets.jl:30
  Got exception outside of a @test
  LoadError: ArgumentError: Package SciMLOperators not found in current path.
Test Summary:           | Error  Total  Time
LHL Factorization Tests |     1      1  1.1s
exit=1

With only the SciMLOperators entry — it loads, and the real failure appears:

FIRK refuses a reduction it cannot reuse: Test Failed at .../lhl_factorization_tests.jl:64
  Expression: solve(PROB, RadauIIA5(linsolve = LHLFactorization()))
    Expected: ArgumentError
  No exception thrown
Test Summary:           | Pass  Fail  Total     Time
LHL Factorization Tests |   17     1     18  1m01.2s
exit=1

(resolved OrdinaryDiffEqFIRK v2.7.0 — the registered one)

After — both entries, same command:

  [5960d6e9] OrdinaryDiffEqFIRK v2.8.0 `../OrdinaryDiffEqFIRK`
LHL Factorization Tests | 18  18  38.6s
exit=0

Whole GROUP=Core group green; typos on the changed file clean.

Not verified

Only BDF's Core group was run. The QA group, other sublibraries, GPU lanes and downstream packages were not.

Note for the reviewer

Worth deciding whether the in-repo-path question generalises: any sublibrary test that exercises unreleased behaviour of a sibling sublibrary needs that sibling in [sources], otherwise it silently tests the registered version and the assertion passes or fails for the wrong reason.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WiHL8AqRSy2VQZF6j68ovM

`lhl_factorization_tests.jl` (SciML#4266) does `using SciMLOperators`, which is
in neither `[deps]` nor `[extras]`, so the file cannot load and the whole
testset errors out. Once it loads, `FIRK refuses a reduction it cannot
reuse` still fails: the `ArgumentError` it expects lives in the in-repo
`OrdinaryDiffEqFIRK`, but `[sources]` does not list it, so the test env
resolves the registered v2.7.0 instead of the repo's v2.8.0.

Add `SciMLOperators` to the test target and point `OrdinaryDiffEqFIRK` at
the in-repo path. Project.toml only; no code or test changes.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude <[email protected]>
Claude-Session: https://claude.ai/code/session_01WiHL8AqRSy2VQZF6j68ovM
@ChrisRackauckas

Copy link
Copy Markdown
Member

Closing as superseded: already on master or replaced by later work.


🤖 Posted by an AI agent — harness: Claude Code, model: claude-opus-5[1m]. Chris asked for these closures directly.

https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants