Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Tapir on Julia 1.11 #2368

Closed
wants to merge 1 commit into from
Closed

Conversation

penelopeysm
Copy link
Member

Tapir doesn't work with Julia 1.11. In fact, it will never work with 1.11, since the package has been renamed (unless Mooncake updates are backported to Tapir). This PR disables Tapir as an AD backend on Julia 1.11.

@penelopeysm
Copy link
Member Author

penelopeysm commented Oct 21, 2024

Since CI only tests Julia 1.7 (min version) and Julia 1.11 (latest version), this PR has the interesting effect of excluding Tapir entirely from CI. This problem should be fixed once #2341 is merged, though; and if we want to be very safe we could explicitly test 1.10 as well.

Copy link

codecov bot commented Oct 21, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 46.09%. Comparing base (24e6870) to head (7b8806d).

Additional details and impacted files
@@             Coverage Diff             @@
##           master    #2368       +/-   ##
===========================================
+ Coverage    0.00%   46.09%   +46.09%     
===========================================
  Files          22       22               
  Lines        1533     1575       +42     
===========================================
+ Hits            0      726      +726     
+ Misses       1533      849      -684     

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

@@ -284,7 +284,7 @@ adbackends = [
Turing.AutoForwardDiff(; chunksize=0), Turing.AutoReverseDiff(; compile=false)
]

# Tapir isn't supported for older Julia versions, hence the check.
# Tapir isn't supported for older Julia versions or for 1.11, hence the check.
install_tapir = isdefined(Turing, :AutoTapir)
Copy link
Member

Choose a reason for hiding this comment

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

@penelopeysm, let's replace all references to Tapir with Mooncake so we don't need to maintain this legacy testing code.

Copy link
Member Author

Choose a reason for hiding this comment

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

I did that as part of #2341 😄 But (correct me if I'm wrong) as long as Mooncake is failing on 1.11, we actually need to keep this conditional import around, because Mooncake doesn't specify that it doesn't work on 1.11.

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, hold on, I literally just saw that Mooncake is now fixed for 1.11 🎉 Let's see if this can be simplified.

@penelopeysm
Copy link
Member Author

Ooh please don't merge. May be superseded by #2341; I'll try to get that to pass CI today.

@penelopeysm penelopeysm marked this pull request as draft October 21, 2024 13:11
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11440413334

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+46.4%) to 46.419%

Totals Coverage Status
Change from base Build 11314008798: 46.4%
Covered Lines: 726
Relevant Lines: 1564

💛 - Coveralls

@penelopeysm
Copy link
Member Author

Closing in favour of #2341 as CI should pass on that PR now

@penelopeysm penelopeysm deleted the py/disable-tapir-1.11 branch October 22, 2024 16:08
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.

3 participants