-
Notifications
You must be signed in to change notification settings - Fork 63
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
Make should_show_banner
work with julia 1.11 and nightly
#1758
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1758 +/- ##
==========================================
- Coverage 87.62% 87.62% -0.01%
==========================================
Files 117 117
Lines 30112 30121 +9
==========================================
+ Hits 26386 26393 +7
- Misses 3726 3728 +2 ☔ View full report in Codecov by Sentry. |
@benlorenz are you happy with this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry I somehow missed this while away. I don't really like that we are depending on internal line numbers and struct members but if it works I guess that is fine for now.
Maybe we could add a try/catch
block around this to make sure this doesn't cause the packages to fail to load if some internals change in an incompatible way?
I think most of us would prefer a cleaner version, but I think no one has found one so far. I like the idea of wrapping it around |
I can do the try/catch thing next week once I am back in office |
e186a88
to
be6d4ac
Compare
I now added a try-catch construct around everything, that just returns If there are no objections until tomorrow afternoon, I will proceed with merging this, and releasing a 0.41.11 on top of the 0.41.10 release with this backported to get this into Oscar 1.1. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
) * Make `should_show_banner` work with julia 1.11 and nightly * Enable banner tests on now working versions * Add try-catch (cherry picked from commit b6081d2)
I compared the backtraces of the
__init__
call in the cases ofusing OtherPackage
andusing Package
in 1.11.0-rc1, and the only difference is one single line number. So I added some code to the function that exploits this difference in the most robust way I can think of.I think we should backport this change to AA 0.41.x afterwards, so that people using Oscar 1.1 with julia 1.11 in the near future (e.g. if julia 1.11 gets released before Oscar 1.2) don't get bloated with banners and instead use this updated code to suppress almost all of them (but one).
cc @benlorenz @lkastner