-
Notifications
You must be signed in to change notification settings - Fork 14
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
[patch] Use ImportAlarm from pyiron_snippets #1455
Conversation
OSX failure:
|
I took a look at the test file and I don't see anything related to |
Yeah, that did the trick. @jan-janssen I guess there is some stochastic failure in |
.github/workflows/unittests.yml
Outdated
@@ -6,7 +6,6 @@ on: | |||
push: | |||
branches: [ main ] | |||
pull_request: | |||
branches: [ main ] |
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.
Why was this removed?
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.
Because I wanted to make sure this PR passes unittests. With the branch specified like that, unit tests don't run on stacked PRs.
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.
It's in the commit message: Run unittests on stacked PRs too
@@ -46,6 +45,9 @@ | |||
|
|||
from pyiron_base.jobs.job.toolkit import Toolkit, BaseTools | |||
|
|||
# Expose snippets references in base API for backwards compatibility | |||
from pyiron_snippets.import_alarm import ImportAlarm |
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.
I find this confusing - should not we do the major change and just enforce the switch to using the ImportAlarm
only from pyiron_snippets
?
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.
I propose to leave this PR with the slightly-confusing-but-backwards-compatible redirection here, but I stacked an additional, compatibility breaking patch in #1458.
I agree that this might be slightly confusing, but I don't think it's explicitly wrong. So what I'd like to do is get go through and approve each part of the stack individually, then we can merge the whole thing in at once. The mild confusingness will thus still exist at a particular commit, but not be included in any releases.
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.
I've converted this PR to a draft until we settle on a solution for the compatibility.
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.
From my perspective a major bump and fully removing the ImportAlarm
from base would be the preferred solution. Or alternative if we want to be graceful we could replace the ImportAlarm
class in pyiron_base
with an error message to notify the user they have to upgrade.
I'm completely comfortable with both these solutions -- @pmrv do you have a strong opinion here? If we're going to bump the minor version for this though, let's wait and stack in the rest of the stuff that can come from snippets ( |
PRs before |
PRs before the deprecate stuff can be removed from the API |
|
My comment is anyhow outdated; the changes to the API don't occur until #1458, the comments were just made before that PR existed and I thought those changes might get made here. So this PR doesn't need to be draft anymore. |
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.
Looks good to me
No description provided.