Skip to content

Fix ocasional hybrid test failure#1255

Merged
TorkelE merged 4 commits intomasterfrom
fix_hybrid_test
Apr 25, 2025
Merged

Fix ocasional hybrid test failure#1255
TorkelE merged 4 commits intomasterfrom
fix_hybrid_test

Conversation

@TorkelE
Copy link
Member

@TorkelE TorkelE commented Apr 25, 2025

Increased the timespan of one test. Previously it could actually fail very occasionally. The test is still fast (<1 second). Have run it 10000 times, still no failure.

Copy link
Member

@isaacsas isaacsas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please ensure any JumpProblem’s that are used in sampling tests take the stable rng as input.

@TorkelE
Copy link
Member Author

TorkelE commented Apr 25, 2025

ready

Copy link
Member

@isaacsas isaacsas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we re-enable the hybrid remake tests now? I think that is supposedly fixed in the latest MTK.

@TorkelE
Copy link
Member Author

TorkelE commented Apr 25, 2025

I will update it here, and see what happens. Happy to merge if the uncommented tests work?

@isaacsas
Copy link
Member

Sure, or can save for a follow up to get this merged. Your choice.

@TorkelE
Copy link
Member Author

TorkelE commented Apr 25, 2025

Shoudl be up soon (just need to double check that test to ensure it is actually correct, if it is it will be quick)

@TorkelE
Copy link
Member Author

TorkelE commented Apr 25, 2025

Still gets errors for the remake bit, will just merge this then.

@TorkelE TorkelE merged commit d2b8957 into master Apr 25, 2025
16 checks passed
@TorkelE TorkelE deleted the fix_hybrid_test branch April 25, 2025 15:49
@isaacsas
Copy link
Member

That is unfortunate since the issue was marked as fixed and SciML/ModelingToolkit.jl#3571 was closed. We should get a new MWE showing errors together then.

@TorkelE
Copy link
Member Author

TorkelE commented Apr 25, 2025

Yeah, I will have a closer look at exactly what is going on, whenever MTK didn't fix anything, or I missed something in the test. I did run all the updates and things failed, and at that point it seemed like a decent amount of effort/time which I did not have today.

@isaacsas
Copy link
Member

No worries, and thanks for looking into it!

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