Skip to content

Migrate FunctionProperties QA to SciMLTesting 2.4 - #74

Merged
ChrisRackauckas merged 1 commit into
SciML:mainfrom
ChrisRackauckas-Claude:agent/scimltesting-2.4-functionproperties
Jul 22, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:mainfrom
ChrisRackauckas-Claude:agent/scimltesting-2.4-functionproperties

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Summary

  • require SciMLTesting 2.4 and use its strict QA defaults
  • remove the QA source-path override and redundant explicit-import setting
  • add runnable definition-site examples for public property predicates and enforce doctests/link checks

Validation

  • Pkg.test() (Julia 1.10): 272/272 passed
  • strict SciMLTesting 2.4 QA (Julia 1.10): 19/19 passed
  • Documenter build with doctests, cross-reference checks, document checks, and link checking passed
  • Runic check and git diff --check passed

Ignore until reviewed by @ChrisRackauckas.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
@ChrisRackauckas-Claude
ChrisRackauckas-Claude force-pushed the agent/scimltesting-2.4-functionproperties branch from bfc6ba5 to 3e61fe2 Compare July 22, 2026 13:40
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review July 22, 2026 14:48
@ChrisRackauckas
ChrisRackauckas merged commit f3a5550 into SciML:main Jul 22, 2026
10 of 11 checks passed
ChrisRackauckas added a commit that referenced this pull request Jul 23, 2026
…est (#76)

The SciML reusable docs workflow defaults `coverage: true`, which runs
`julia --project=docs --code-coverage=user docs/make.jl`. Coverage
instrumentation inserts side-effecting per-line counter writes into every
compiled method, so `Base.infer_effects` reports every function -- including
the `_effects_capable` probe and the doctest's `x -> x^2 + 1` -- as not
effect-free. `ispure` therefore soundly returns `false` under coverage, which
fails the `ispure(x -> x^2 + 1, 2.0) == true` doctest in src/effects.jl and
terminates the docs build.

This is not a runtime regression: `ispure` returns `true` in any normal
(non-instrumented) run, which is how the library is actually used. The doctest
was newly enabled in #74 (doctest = true), which is when the docs build began
failing. Coverage from a doctest-only build is meaningless, so turn it off for
the docs job; the doctest then evaluates real behavior and passes without any
warnonly/skip.

Verified locally: with --code-coverage=user, `ispure(x -> x^2 + 1, 2.0)`
returns false; without it, Documenter `doctest(FunctionProperties)` passes 1/1.

Co-authored-by: ChrisRackauckas-Claude <accounts@chrisrackauckas.com>
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