-
-
Notifications
You must be signed in to change notification settings - Fork 779
Add a debug contrib pack #5155
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
Add a debug contrib pack #5155
Conversation
|
We just reformatted the code with |
|
IIRC, we already have a bunch of actions like that in It may require some end to end tests to be updated though. And overall I like the idea of including it by default - that may be possible with |
|
@blag, can you reformat with black and rebase on / merge in master? |
|
@Kami Yes, we have the |
amanda11
left a comment
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 - but just a query on copyright header statement...
|
I've added a few more actions if people would like to review them. |
|
|
|
Edit: Nope, posted this comment on the wrong PR. |
amanda11
left a comment
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
This PR starts a contributed
debugpack that is useful for debugging StackStorm itself.Right now it only has a few actions:
pythonpathreturns thePYTHONPATHand the value ofsys.pathpython_versionreturns the current Python version in a dictionary/object:{ "version": "...", // from Python's sys.version_info "details": { "major": ..., // from Python's sys.version_info.major "minor": ..., // from Python's sys.version_info.minor "micro": ..., // from Python's sys.version_info.micro "releaselevel": ..., // from Python's sys.version_info.releaselevel "serial": ..., // from Python's sys.version_info.serial } }print_ctxprints the passed-in context dictionary tostdoutI'm sure more ideas will spring up from time to time, and this pack is a good place to add them.
We will need to add some tests, and I think we will eventually want to install this pack by default to help users.
Edit: Updated description with additional actions