-
Notifications
You must be signed in to change notification settings - Fork 446
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 PYTHONBREAKPOINT as exposed config variable #688
Add PYTHONBREAKPOINT as exposed config variable #688
Conversation
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.
Can you please add an entry to the CHANGELOG.md file? https://docs.tutor.overhang.io/tutor.html#contributing Also, please squash your commits.
5e64d26
to
3e0cc4d
Compare
PYTHONBREAKPOINT has been exposed as a Tutor configuration variable in the dockerfile available to be changed in config.yml. It has also been added as an empty variable in default.yml as required by the test suite. The docs have also been changed to recommend using breakpoint and explaining how PYTHONBREAKPOINT can be modified to use a custom debugger. An entry in CHANGELOG has been added about this change.
3e0cc4d
to
5331ca5
Compare
@regisb I am a little confused by your feedback. The goal of openedx-unsupported/wg-developer-experience#45 was to default to Now, I do realize that a Docker build ARG might not be the best way to do this, since it requires a rebuild -- perhaps setting PYTHONBREAKPOINT in the |
I understand your confusion @kdmccormick, as there was a one-letter typo in my previous comment... Let me recap:
|
👍🏻
I'll respect your discretion here but it is not clear to me where the line is between "expose a config setting" and "just let users override it with a plugin". Do you have a general philosophy that @Carlos-Muniz and I can use in the future?
Okay, so I imagine the Dockerfile line would just be: ENV PYTHONBREAKPOINT=ipdb.set_trace (@Carlos-Muniz ^)
How would a user do this (other than manually setting |
I've had this conversation multiple times in a few recent issues; here are a few pointers: Basically, the policy is "do not introduce a new setting for a small percentage of users". I realize that I need to better articulate this policy and make it clearer to contributors. This will be resolved in #683.
Either the "openedx-dev-dockerfile-post-python-requirements" or "openedx-dockerfile-final" patch can be used to override this environment variable in a more sustainable way. |
@regisb I've addressed your comments and can squash if there are no further concerns. |
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.
Thanks for this PR Carlos! and sorry about the back-and-forth comments...
Criteria
PYTHONBREAKPOINT
as a Tutor configuration variableENV PYTHONBREAKPOINT={{ PYTHONBREAKPOINT }}
in the openedx dockerfilebreakpoint()
. Explains thatPYTHONBREAKPOINT
can be modified in order to use a custom debugger.Testing
tutor images build openedx
tutor dev dc build
tutor dev run lms bash
PYTHONBREAKPOINT
:env | grep PYTHONBREAKPOINT
And
make test
Closes openedx-unsupported/wg-developer-experience#45