Skip to content
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

Execution of server side tests is broken by media comp support #23

Open
s-edwards opened this issue Aug 30, 2013 · 1 comment
Open

Execution of server side tests is broken by media comp support #23

s-edwards opened this issue Aug 30, 2013 · 1 comment
Labels

Comments

@s-edwards
Copy link
Member

The media comp library added to support image processing works with in-browser execution, but does not work on the server-side python installation, effectively breaking server-side checking of python code. We need an effective way to use Jython to perform the server side checks (should be fairly easy). We may also want to investigate whether we should provide server-side access to either Jython or native Python for testing assignment submissions (but how would we choose, or would we leave it up to the person creating the assignment?).

@allevato
Copy link
Member

The Environment model represents the beginnings of how I was trying to design this. The idea was that an Environment was a representation of the runtime that should be used to execute the code, by providing minor code transformations (basically being able to prepend a "prelude" to the code before executing; this was to support the implicit media comp import), and later to support different ways of running the code server-side (hadn't gotten that far yet).

Environments could be set on a per-repository basis (for the scratchpad and examples), on a per-assignment basis (repos created from that assignment would automatically inherit the assignment's environment), and on a per-course basis (assignments would automatically inherit the course environment). So an instructor could choose "Jython + Media Comp" or "Python 3" as the environment for their course and it would just percolate down to everything else automatically.

So, the basic ideas are already in place, but the details of the implementation need to be fleshed out a lot more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants