Repository navigation
Restore the upcrossing callback expectation - #4256
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
ChrisRackauckas-Claude wants to merge 1 commit into
Conversation
Co-Authored-By: Chris Rackauckas <[email protected]>
Member
Author
|
Superseded by the merged behavior fix in #4319, which restores the example’s stated first-crossing behavior by accepting either event direction. Closing this alternative expectation-only patch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Please ignore this PR until reviewed by @ChrisRackauckas.
What changed
Restore the community callback regression's expected termination time to
3pi / 2. The callback deliberately terminates only for a+1signed event (an upcrossing); since its condition isu[3] = cos(t), the first qualifying event is the upcrossing at3pi / 2, not the downcrossing atpi / 2.Root cause
#3914 deliberately preserved the test's upcrossing-only behavior with
any(isone, events)and verified termination near3pi / 2. Later, a351aa2 changed only the expected time topi / 2, based on the incompatible assumption that the affect ran for every crossing. A source/test bisect from current master to its parentbde2e13420670b588950d5507ce32d6ecf8af41cidentifieda351aa2a6b7d64459731f4e8b415ce043a3168baas the first bad commit. Direct current-master and9d92d1c7220ab2fbb2a8f141a27ddd95db904789controls both produced the same termination time, confirming this is a stale expectation rather than a solver change between those commits.This was exposed in https://github.com/SciML/OrdinaryDiffEq.jl/actions/runs/31772115802/job/94680127903.
Failing before / passing after
Before:
After, with the same tight tolerance:
The full group then reported:
Local verification
GROUP=Downstream2 julia +1.12 --project=lib/DiffEqBase -e 'using Pkg; Pkg.test()': passed in 1239.92 s; Community Callback 16/16 and Distributed Ensemble 4/4.GROUP=QA julia +1.12 --project=lib/DiffEqBase -e 'using Pkg; Pkg.test()': Aqua 9/9; final outputTesting DiffEqBase tests passed.julia +1.12 --startup-file=no -m Runic --check lib/DiffEqBase/test/downstream/community_callback_tests.jl: passed.typos lib/DiffEqBase/test/downstream/community_callback_tests.jl: passed.git diff --check: passed.Current master has the independent SciMLBase hook load failure addressed by #4253. Local runtime and group validation temporarily included only its guard commit 399453a; that prerequisite commit was removed before this focused branch was committed and pushed.
Docs, GPU, and prerelease Julia jobs were not run because this is a test-only correction for the Julia 1.12 DiffEqBase Downstream2 job.