Skip to content
This repository was archived by the owner on Sep 23, 2024. It is now read-only.

Move proxy_main.py to be included in codejail module#9

Merged
ariellasmo merged 1 commit intodevelopmentfrom
MLA-588-codejail-lib
Aug 25, 2022
Merged

Move proxy_main.py to be included in codejail module#9
ariellasmo merged 1 commit intodevelopmentfrom
MLA-588-codejail-lib

Conversation

@ariellasmo
Copy link

@ariellasmo ariellasmo commented Aug 24, 2022

Move proxy_main.py to be installable as a library.
MLA-588

@ariellasmo
Copy link
Author

This will be a breaking change on the default sandbox. Let's not merge until default sandbox uses codejail properly as a proper library.

if PROXY_PROCESS is None:
# Start the proxy by invoking proxy_main.py in our root directory.
root = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
root = os.path.dirname(os.path.realpath(__file__))

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How this is a breaking change we aren't using PROXY process in codippy default sandbox 🤔

Copy link
Author

@ariellasmo ariellasmo Aug 25, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't actually looked at the codippy default sandbox at all. I didn't know proxy_main.py was only used in the codippy validation sandbox.

Do you think this PR can be merged now @antoineKorbit ?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I spotted it, it's declared in the Docker container as ENV variable.

@ariellasmo ariellasmo merged commit ae0026b into development Aug 25, 2022
@ariellasmo ariellasmo deleted the MLA-588-codejail-lib branch August 25, 2022 15:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants