-
Notifications
You must be signed in to change notification settings - Fork 48
feat: warn when the BigFrames version is more than a year old #1455
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
Conversation
Doctest failures are
These appear to be the usual remote functions flakiness. |
bigframes/version.py
Outdated
__release_date__, "%Y-%m-%d" | ||
) > datetime.timedelta(days=365): | ||
msg = f"Your BigFrames version {__version__} is beyond the support period. Please update to the lastest version." | ||
warnings.warn(msg) |
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.
Let's use a custom category in bigframes.exceptions
, so that folks can filter these out if they really want to.
Also, doing this at import time isn't the best, as sometimes the import might be done before the user actually sees it (e.g. on notebook startup if colab adds some bigframes-specific hooks, for example). Can we move this to session creation?
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.
Sure. Moved the check to session.init
bigframes/version.py
Outdated
if datetime.datetime.today() - datetime.datetime.strptime( | ||
__release_date__, "%Y-%m-%d" | ||
) > datetime.timedelta(days=365): | ||
msg = f"Your BigFrames version {__version__} is beyond the support period. Please update to the lastest version." |
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.
This feels a bit too precise. Support policies can change. Let's just say it's greater than 1 year old.
No description provided.