-
Notifications
You must be signed in to change notification settings - Fork 8
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
Improve instructions for dev env #86
base: master
Are you sure you want to change the base?
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.
The improvements to the documentation and setup scripts are very helpful. These changes look good to me!
dba8e01
to
8fa21a4
Compare
a17bda4
to
9b66af0
Compare
dc1dc32
to
10769db
Compare
This wrapper will only take effect if DEBUG is False and the sandboxing submodule isn't cloned.
10769db
to
21e23d7
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.
Nice changes overall, but I'm a bit confused about some of them (specifically the switch to settings.USE_SANDBOXING
).
@@ -273,5 +281,5 @@ def run_submission(submission_id): | |||
submission.channel_group_name, {"type": "submission.updated"} | |||
) | |||
|
|||
if os.path.exists(submission_wrapper_path): | |||
with contextlib.suppress(FileNotFoundError): |
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.
Whats the reasoning behind this change?
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.
Generally, with file IO stuff, checking if a file exists before deleting it is considered an antipattern (just because some other process can delete the file in between checking if it exists and deleting it). Usually, it's better to try deleting the file and ignore any problems that occur (like if the file doesn't exist).
This is also why we have the exist_ok
parameters with stuff like os.path.mkdirs
/Path.mkdir
.
Just a bunch of patches and stuff I had to do to get local submissions & venv's working working.
It also improves the documentation, and adds a script or two.