Skip to content

Attempt to fix Julia v1.12#295

Merged
leburgel merged 4 commits intomasterfrom
lb/fix_julia_v0.12
Nov 21, 2025
Merged

Attempt to fix Julia v1.12#295
leburgel merged 4 commits intomasterfrom
lb/fix_julia_v0.12

Conversation

@leburgel
Copy link
Member

@leburgel leburgel commented Nov 20, 2025

Gets rid of the segfaults that Zygote was throwing under Julia v1.12. It seems like the fix was a lot less scary than the error. Based on Jutho's digging here JuliaLang/julia#59138, I just put all the @warns we have inside an ignore_derviatives. Turns out there was really only one stray @warn, and explicitly ignoring it seems to have solved the problem. Still, Zygote is having all kinds of issues for Julia v1.12 (that we now no longer seem to suffer from), and it doesn't seem like any of these will be fixed soon (if at all).

While this all feels a bit sketchy, since we're still quite a way from moving to a different AD engine I suggest to merge this and re-enable Julia v1.12 if tests pass here. If nothing else it will make tagging a whole lot easier, since the automerge decisions on the General registry are now running on Julia v1.12. In fact, my only real motivation for this PR is to fix the registration of v0.7.0 which can't be automerged because we restricted the Julia version.

If we agree and this is merged, I'll update the registration PR to get v0.7.0 released.

@leburgel leburgel marked this pull request as draft November 20, 2025 21:38
@codecov
Copy link

codecov bot commented Nov 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/algorithms/ctmrg/gaugefix.jl 97.22% <100.00%> (+0.02%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@leburgel leburgel changed the title Attempt to fix Julia v0.12 Attempt to fix Julia v1.12 Nov 21, 2025
@leburgel leburgel marked this pull request as ready for review November 21, 2025 08:06
@Yue-Zhengyuan
Copy link
Member

The 1.11 tests are still listed in the pending checks as "Expected". Will they automatically go away, or we need some manual clean-up?

Other than this I'm OK to merge the PR.

@leburgel
Copy link
Member Author

The 1.11 tests are still listed in the pending checks as "Expected". Will they automatically go away, or we need some manual clean-up?

This is because they're set as 'required' in the repository settings. Specifying which workflows are required to pass is a very annoying manual thing to do. Once things pass here I'll remove the v1.11 versions from the required ones and add the v1 versions again instead.

@leburgel leburgel merged commit e98b8d9 into master Nov 21, 2025
1 check passed
@leburgel leburgel deleted the lb/fix_julia_v0.12 branch November 21, 2025 10:06
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