Skip to content

Use the own keyword of VecPtr on PETSc.jl 0.5.4 - #330

Merged
singhharsh1708 merged 1 commit into
SciML:mainfrom
singhharsh1708:ci-julia1133
Oct 28, 2026
Merged

singhharsh1708 merged 1 commit into
SciML:mainfrom
singhharsh1708:ci-julia1133

Conversation

@singhharsh1708

Copy link
Copy Markdown
Member

CI on main started failing on the Julia 1 jobs after PETSc.jl 0.5.4 was released. The last passing run resolved PETSc v0.5.3 and the failing run resolved v0.5.4, with PETSc_jll at 3.25.4 in both. PETSc.jl 0.5.4 makes own a keyword of VecPtr, and the positional form now emits a one-time deprecation warning. This package called PETSc.VecPtr(pl, ptr, false) in 25 places, so that warning shows up in every test that captures logs or counts warnings. The Julia 1.10 jobs resolve PETSc 0.4.14 and were not affected. The same failures reproduce on Julia 1.12.7 with PETSc 0.5.4, so the Julia version is not the cause.

This adds PETScCompat.VecPtr(pl, ptr), which uses the keyword on PETSc 0.5.4 and later and the positional form on earlier versions, where the keyword does not exist. All 25 call sites use it. No other function deprecated in 0.5.4 is called from src or ext. The version is bumped to 0.14.1.

The five affected top-level testsets pass (1195/1195) on Julia 1.12.7 with PETSc 0.5.4 and on Julia 1.10.12 with PETSc 0.4.14, and the MPI group passes on 2 ranks locally. All 17 jobs pass on the fork CI: https://github.com/singhharsh1708/PETScDiffEq.jl/actions/runs/40454910703

AI Disclosure: Claude assisted with the code. Testing and review by @singhharsh1708.

@singhharsh1708
singhharsh1708 merged commit c93db97 into SciML:main Oct 28, 2026
31 of 33 checks passed
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.

1 participant