Skip to content

Drop removed JET option target_defined_modules from sublibrary QA tests - #4561

Merged
ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix/qa-jet-target-defined-modules
Sep 22, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix/qa-jet-target-defined-modules

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Ignore until reviewed by @ChrisRackauckas.

What changed and why

JET 0.12 removed the target_defined_modules configuration option (present through JET 0.11.6, gone in 0.12.0/0.12.1). Twelve sublibrary QA tests still passed jet_kwargs = (; target_defined_modules = true) to SciMLTesting.run_qa, SciMLTesting 2.13.1 forwards jet_kwargs verbatim to JET.test_package, and the QA environments allow JET = "0.9, 0.10, 0.11, 0.12". So on a fresh resolve every one of these QA groups now dies with JETConfigError before any analysis runs. This is a pre-existing failure on master (reproduced on 2a3a2d17c), independent of any open PR.

This PR deletes that kwarg from the twelve lib/*/test/qa/qa.jl files. No replacement is needed: SciMLTesting's default jet_kwargs is (; target_modules = (pkg,), mode = :typo), which is the same package-scoped :typo analysis the other sublibraries (e.g. StochasticDiffEqImplicit, StochasticDiffEqLeaping) already spell out explicitly, and it is valid on every JET version the compat allows. Twelve files, twelve deleted lines, nothing else.

Affected: OrdinaryDiffEqExplicitTableaus, OrdinaryDiffEqImplicitTableaus, OrdinaryDiffEqRosenbrockTableaus, StochasticDiffEqCore, StochasticDiffEqHighOrder, StochasticDiffEqIIF, StochasticDiffEqLevyArea, StochasticDiffEqLowOrder, StochasticDiffEqMilstein, StochasticDiffEqROCK, StochasticDiffEqRODE, StochasticDiffEqWeak.

Failing before (unmodified master @ 2a3a2d17c, Julia 1.13.0)

GROUP=StochasticDiffEqCore_QA julia +1.13.0 --startup-file=no --project -e 'using Pkg; Pkg.test()':

  [c3a54625] + JET v0.12.1
  [09d9d899] SciMLTesting v2.13.1
...
Quality Assurance: Error During Test at ~/.julia/packages/JET/vOTu0/src/JETBase.jl:1312
  Test threw exception
  Expression: (JET.report_package)(StochasticDiffEqCore; toplevel_logger = nothing, mode = typo, target_defined_modules = true)
  JETConfigError: Given unexpected configuration: `target_defined_modules = true`
  Stacktrace:
     [1] validate_configs(valid_keys::Set{Symbol}, jetconfigs::Dict{Symbol, Any})
       @ JET ~/.julia/packages/JET/vOTu0/src/abstractinterpret/abstractanalyzer.jl:383
  ...
    [13] run_qa(pkg::Module; ... jet_kwargs::@NamedTuple{target_defined_modules::Bool}, ...)
Test Summary:                                  | Pass  Error  Total     Time
QA (Aqua and JET)                              |   20      1     21  1m06.1s
  Quality Assurance                            |   20      1     21    56.3s
ERROR: LoadError: Some tests did not pass: 20 passed, 0 failed, 1 errored, 0 broken.

Passing after (this branch, Julia 1.13.0, same command per group)

GROUP=StochasticDiffEqCore_QA:

  [c3a54625] + JET v0.12.1
...
Test Summary:     | Pass  Total     Time
QA (Aqua and JET) |   21     21  1m37.1s
     Testing StochasticDiffEqCore tests passed
     Testing OrdinaryDiffEq tests passed

All twelve affected QA groups run locally (GROUP=<Sublib>_QA, exit 0, zero Error During Test/Test Failed lines):

Group Result
OrdinaryDiffEqExplicitTableaus_QA Quality Assurance | 21 / 21
OrdinaryDiffEqImplicitTableaus_QA Quality Assurance | 21 / 21
OrdinaryDiffEqRosenbrockTableaus_QA Quality Assurance | 21 / 21
StochasticDiffEqCore_QA QA (Aqua and JET) | 21 / 21
StochasticDiffEqHighOrder_QA QA (Aqua and JET) | 21 / 21
StochasticDiffEqIIF_QA QA (Aqua and JET) | 21 / 21
StochasticDiffEqLevyArea_QA QA (Aqua and JET) | 21 / 21
StochasticDiffEqLowOrder_QA QA (Aqua and JET) | 18 pass, 3 broken / 21
StochasticDiffEqMilstein_QA QA (Aqua and JET) | 17 pass, 4 broken / 21
StochasticDiffEqROCK_QA QA (Aqua and JET) | 17 pass, 4 broken / 21
StochasticDiffEqRODE_QA QA (Aqua and JET) | 18 pass, 3 broken / 21
StochasticDiffEqWeak_QA QA (Aqua and JET) | 17 pass, 4 broken / 21

The broken counts are the pre-existing ei_broken ExplicitImports entries in those five qa.jl files, untouched here.

Also run before pushing: julia +1.12 --project=@runic -m Runic --check <12 files> (clean) and typos <12 files> (clean).

Not verified

  • Julia LTS / pre QA jobs (the sublibrary runtests.jl skips QA on pre-release Julia anyway).
  • StochasticDiffEqImplicit and StochasticDiffEqLeaping are unchanged (they already use target_modules); their QA groups were not re-run.

🤖 Generated with Claude Code

https://claude.ai/code/session_011zATW7VHYDA8rNUr5JR73e

…ests

JET 0.12 removed the `target_defined_modules` configuration, and the QA
environments allow `JET = "0.9, 0.10, 0.11, 0.12"`, so every QA group that
passed `jet_kwargs = (; target_defined_modules = true)` now fails with
`JETConfigError: Given unexpected configuration: target_defined_modules = true`
before any analysis runs. SciMLTesting's default `jet_kwargs` is already
`(; target_modules = (pkg,), mode = :typo)`, the same scoping the other
sublibraries spell out explicitly, so the kwarg is deleted rather than replaced.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Claude Fable 5.1 <[email protected]>
Claude-Session: https://claude.ai/code/session_011zATW7VHYDA8rNUr5JR73e
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