Skip to content

Conversation

@penelopeysm
Copy link
Member

@penelopeysm penelopeysm commented Jan 2, 2026

Mostly interested in seeing what breaks, I ran some tests offline then got bored.

As far as source code changes go, I only needed to change the definition of DEFAULT_CHAIN_TYPE and twiddle with some imports. So in principle this is pretty much done.

Most changes were really in the test suite, using chn[@varname(x)] instead of chn[:x]. In fact, that isn't even necessary, but I just consider it good practice.

The only changes that I found to be mandatory were changing things like chn[Symbol("m[1]")] to chn[@varname(m[1])], which is a Positive Change, and also other things that relied too heavily on the exact internal structure of MCMCChains, which is also a Positive Change, or a Neutral Change in the cases where I had to rely on the internal structure of FlexiChains.

This PR should definitely target breaking, but that would cause version conflicts with FlexiChains, since FlexiChains has a compat entry that pins Turing to its current minor version. That can be fixed by moving FlexiChainsTuringExt into Turing proper, so that that compat entry can be removed.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2026

Turing.jl documentation for PR #2743 is available at:
https://TuringLang.github.io/Turing.jl/previews/PR2743/

@codecov
Copy link

codecov bot commented Jan 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 55.10%. Comparing base (8b84230) to head (76c1ccb).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2743      +/-   ##
==========================================
- Coverage   55.34%   55.10%   -0.24%     
==========================================
  Files          20       20              
  Lines        1254     1254              
==========================================
- Hits          694      691       -3     
- Misses        560      563       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@penelopeysm
Copy link
Member Author

penelopeysm commented Jan 2, 2026

The remaining test failures are also seen on main (it helps that I accidentally pushed this PR to main and reverted it...) and is because of #2744

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