-
-
Notifications
You must be signed in to change notification settings - Fork 750
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
Fixes: #4875 monkeypatch st2 sensor earlier #4976
Conversation
…com/StackStorm/st2 into monkey_patch_sensorcontainer_sooner
Yeah monkey patching should always be the very first thing. Before imports. Awesome work |
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 looks good to me. monkey_patch()
should definitely come before imports wherever required. There is one typo in a comment.
Co-authored-by: Jacob Floyd <cognifloyd@gmail.com>
It looks like these are all in the |
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.
LGTM, good catch (we had a couple of similar issues like that in the past) 👍
Any chance we could some how add a test case for it?
@Kami Do you have any suggestions for how to add a test case for this? The only thing I can think of is adding one that fails if we see a recursion error? |
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.
💯
Tests are nice, but I'm good if we merge it as is, because it's tricky to test it with monkey-patch thing added.
Co-authored-by: Eugen C. <stackstorm@armab.io>
Co-authored-by: Eugen C. <stackstorm@armab.io>
Fixes: #4975
Fixes: #4832