-
Notifications
You must be signed in to change notification settings - Fork 187
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
Prevent launching or construction of WorkChain
and CalcJob
base class
#2564
Prevent launching or construction of WorkChain
and CalcJob
base class
#2564
Conversation
|
||
run_and_check_success(Wf) | ||
# def test_run(self): |
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.
Is this huge number of lines replaced with comments expected?
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.
No, I forgot to uncomment, I will fix it
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.
Should be fixed now
57beac6
to
0cefc70
Compare
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.
ok for me even if I'm not sure on what's going on with the tests
I canceled them since I will have to rebase this anyway after the others are merged, and so I am not blocking the build queue |
…lass The `WorkChain` and `CalcJob` classes are base classes that are meant to be sub classed as they miss the necessary functionality to successfully run. However, it was still possible to launch these base classes through the launchers or straight up constructing them. They would immediately fail when launched, but they would create a node in the provenance graph nonetheless. To prevent this from happening, a check is placed in the constructors to make sure that it is actually a sub class that is being constructed.
0cefc70
to
cc02f2b
Compare
Fixes #2493 and fixes #2474
The
WorkChain
andCalcJob
classes are base classes that are meant tobe sub classed as they miss the necessary functionality to successfully
run. However, it was still possible to launch these base classes through
the launchers or straight up constructing them. They would immediately
fail when launched, but they would create a node in the provenance graph
nonetheless. To prevent this from happening, a check is placed in the
constructors to make sure that it is actually a sub class that is being
constructed.