Skip to content

Make FlexiChains the default chain type (?)#2743

Open
penelopeysm wants to merge 7 commits intomainfrom
py/fc
Open

Make FlexiChains the default chain type (?)#2743
penelopeysm wants to merge 7 commits intomainfrom
py/fc

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

❌ Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.77%. Comparing base (33e1a22) to head (fb765ce).

Files with missing lines Patch % Lines
ext/TuringMCMCChainsExt.jl 0.00% 10 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2743      +/-   ##
==========================================
- Coverage   86.34%   85.77%   -0.57%     
==========================================
  Files          22       23       +1     
  Lines        1435     1441       +6     
==========================================
- Hits         1239     1236       -3     
- Misses        196      205       +9     

☔ 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 penelopeysm force-pushed the py/fc branch 2 times, most recently from c09ba13 to 76c1ccb Compare January 2, 2026 22:51
@penelopeysm penelopeysm marked this pull request as ready for review March 13, 2026 11:19
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